commit-hurd
[Top][All Lists]
Advanced

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

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


From: Samuel Thibault
Subject: [hurd] 01/01: Fix timestamp update on file close
Date: Thu, 27 Oct 2016 16:02:46 +0000

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

sthibault pushed a commit to branch master
in repository hurd.

commit bf2d2b275ee101f0185fc757cf4e34124a5e0778
Author: Samuel Thibault <address@hidden>
Date:   Thu Oct 27 16:01:59 2016 +0000

    Fix timestamp update on file close
    
    patches/time-fix.patch: Closes: Bug#842271.
---
 debian/changelog              |  7 +++++++
 debian/patches/series         |  1 +
 debian/patches/time-fix.patch | 24 ++++++++++++++++++++++++
 3 files changed, 32 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7514cc4..3833338 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+hurd (1:0.8.git20161023-2) UNRELEASED; urgency=medium
+
+  * patches/time-fix.patch: Fix timestamp update on file close.
+    Closes: Bug#842271.
+
+ -- Samuel Thibault <address@hidden>  Thu, 27 Oct 2016 15:55:40 +0000
+
 hurd (1:0.8.git20161023-1) unstable; urgency=medium
 
   [ Samuel Thibault ]
diff --git a/debian/patches/series b/debian/patches/series
index 6380222..90d99c6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -29,3 +29,4 @@ using_std.patch
 netdde_log.patch
 libports-iterate-refcount.patch
 exec_filename_rpctrace.patch
+time-fix.patch
diff --git a/debian/patches/time-fix.patch b/debian/patches/time-fix.patch
new file mode 100644
index 0000000..38bef3f
--- /dev/null
+++ b/debian/patches/time-fix.patch
@@ -0,0 +1,24 @@
+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.
+
+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]