diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2014-06-22 17:57:38 +0200 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2014-06-22 17:57:38 +0200 |
commit | 97707c7b564381f0cdf683c77a6450434cb9b556 (patch) | |
tree | f76b5946be073346c9caaf1ffae8e184ef7860d7 | |
parent | 944cfdbe6cff4e8025a730228b48c1a21b4a2e33 (diff) |
libdiskfs: expose the ST_NOATIME flag
Expose ST_NOATIME as flag (if available in glibc) if diskfs is set in noatime
mode.
* libdiskfs/file-statfs.c (diskfs_S_file_statfs): Set ST_NOATIME if
_DISKFS_NOATIME is set.
-rw-r--r-- | libdiskfs/file-statfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/file-statfs.c b/libdiskfs/file-statfs.c index 817b0115..9d97ce66 100644 --- a/libdiskfs/file-statfs.c +++ b/libdiskfs/file-statfs.c @@ -41,6 +41,8 @@ diskfs_S_file_statfs (struct protid *file, statbuf->f_flag |= ST_NOEXEC; if (diskfs_synchronous) statbuf->f_flag |= ST_SYNCHRONOUS; + if (_diskfs_noatime) + statbuf->f_flag |= ST_NOATIME; diskfs_set_statfs (statbuf); |