This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
fs_mount_options [2020/06/12 16:19] Ira Weiny [Details] |
fs_mount_options [2020/08/03 03:54] Ira Weiny [ext4 and ext2] |
||
---|---|---|---|
Line 14: | Line 14: | ||
As of kernel 5.8 additional DAX enabling options are available on some file systems, specifically: | As of kernel 5.8 additional DAX enabling options are available on some file systems, specifically: | ||
- | ===== ext4 and ext2 ===== | + | ===== ext2 ===== |
When mounting the filesystem, use the "-o dax" option on the command line or add 'dax' to the options in /etc/fstab. This works to enable DAX on all files within the filesystem. It is equivalent to the '-o dax=always' behavior below. | When mounting the filesystem, use the "-o dax" option on the command line or add 'dax' to the options in /etc/fstab. This works to enable DAX on all files within the filesystem. It is equivalent to the '-o dax=always' behavior below. | ||
Line 118: | Line 118: | ||
- | === Seeing if a file is using dax === | + | === Detecting if a file is using dax === |
The current enabled state (S_DAX) is set when a file inode is instantiated in memory by the kernel. It is set based on the underlying media support, the value of FS_XFLAG_DAX and the file system's dax mount option. | The current enabled state (S_DAX) is set when a file inode is instantiated in memory by the kernel. It is set based on the underlying media support, the value of FS_XFLAG_DAX and the file system's dax mount option. |