3.8.3. GFS Directory Attribute

3.8.3. GFS Directory Attribute

The gfs_tool command can be used to assign (set) a direct I/O attribute flag, inherit_directio, to a GFS directory. Enabling the inherit_directio flag on a directory causes all newly created regular files in that directory to automatically inherit the directio flag. Also, the inherit_directio flag is inherited by any new subdirectories created in the directory. The inherit_directio flag can also be cleared.

Usage

Setting the inherit_directio flag

gfs_tool setflag inherit_directio Directory

Clearing the inherit_directio flag

gfs_tool clearflag inherit_directio Directory
Directory

Specifies the directory where the inherit_directio flag is set.

Example

In this example, the command sets the inherit_directio flag on the directory named /mnt/gfs/data.

gfs_tool setflag inherit_directio /mnt/gfs/data

This command displays the flags that have been set for the /mnt/gfs/data directory. The full output has been truncated.

[root@tng3-1 gfs]# gfs_tool stat /mnt/gfs/data
...
Flags:
  inherit_directio

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.