Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn gfs_tool setflag inherit_directio affect new_files_directio?

affect gfs_tool
0
10 Posted

Why doesn gfs_tool setflag inherit_directio affect new_files_directio?

0
10

If I do: [root@node-01#] gfs_tool setflag inherit_directio my_directory [root@node-01#] gfs_tool gettune my_directory It displays: new_files_directio = 0 Here’s what’s going on: inherit_directio and new_files_directio are two separate things. If you look at the man page, inherit_directio operates on a single directory whereas new_files_directio is a filesystem-wide “settune” value. If you do: gfs_tool setflag inherit_directio my_directory You’re telling the fs that ONLY your directory and all new files within that directory should have this attribute, which is why your tests are acting as expected, as long as you’re within that directory. It basically sets an attribute on an in-memory inode for the directory. If instead you were to do: gfs_tool settune mount-point new_files_directio 1 The value new_files_directio value would change for the whole mount point, not just that directory. Of course, you’re seeing what gfs_tool gettune my_directory is reporting for the global flag.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123