
File
Specifies the file where the directio flag is assigned.
Example
In this example, the command sets the directio flag on the file named datafile in directory
/mnt/gfs.
gfs_tool setflag directio /mnt/gfs/datafile
The following command checks whether the directio flag is set for /mnt/gfs/datafile. The
output has been elided to show only the relevant information.
[root@tng3-1 gfs]# gfs_tool stat /mnt/gfs/datafile
mh_magic = 0x01161970
...
Flags:
directio
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
GFS Directory Attribute
31
Comentários a estes Manuais