commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 01/28: libdiskfs: Fix timestamp update on file close


From: Samuel Thibault
Subject: [hurd] 01/28: libdiskfs: Fix timestamp update on file close
Date: Wed, 16 Nov 2016 08:30:25 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 902f0a78b43c75bdb125a8f1c11a3fbf2595ce35
Author: Samuel Thibault <address@hidden>
Date:   Thu Oct 27 17:53:41 2016 +0200

    libdiskfs: Fix timestamp update on file close
    
    * libdiskfs/node-nrele.c (diskfs_nrele): Call diskfs_set_node_times when
    there are no hard refs any more, like diskfs_nput does.
---
 libdiskfs/node-nrele.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libdiskfs/node-nrele.c b/libdiskfs/node-nrele.c
index a96d134..ed418a1 100644
--- a/libdiskfs/node-nrele.c
+++ b/libdiskfs/node-nrele.c
@@ -40,6 +40,10 @@ diskfs_nrele (struct node *np)
     {
       locked = TRUE;
       pthread_mutex_lock (&np->lock);
+      /* This is our cue that something akin to "last process closes file"
+        in the POSIX.1 sense happened, so make sure any pending node time
+        updates now happen in a timely fashion.  */
+      diskfs_set_node_times (np);
       diskfs_lost_hardrefs (np);
       if (!np->dn_stat.st_nlink)
        {

-- 
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]