commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 41/87: libdiskfs: expose the ST_NOATIME flag


From: Samuel Thibault
Subject: [hurd] 41/87: libdiskfs: expose the ST_NOATIME flag
Date: Sun, 09 Nov 2014 11:05:02 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 97707c7b564381f0cdf683c77a6450434cb9b556
Author: Pino Toscano <address@hidden>
Date:   Sun Jun 22 17:57:38 2014 +0200

    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.
---
 libdiskfs/file-statfs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libdiskfs/file-statfs.c b/libdiskfs/file-statfs.c
index 817b011..9d97ce6 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);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]