[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
- [hurd] branch upstream updated (341f43d -> 385d9bf), Samuel Thibault, 2016/11/16
- [hurd] 06/28: libdiskfs: fix removal of socket nodes, Samuel Thibault, 2016/11/16
- [hurd] 01/28: libdiskfs: Fix timestamp update on file close,
Samuel Thibault <=
- [hurd] 04/28: wire console display pages, Samuel Thibault, 2016/11/16
- [hurd] 02/28: libdiskfs: Make utimes RPC flush pending timestamp updates, Samuel Thibault, 2016/11/16
- [hurd] 11/28: startup: Dump processes if we cannot find the kernel., Samuel Thibault, 2016/11/16
- [hurd] 03/28: Fix typo, Samuel Thibault, 2016/11/16
- [hurd] 12/28: boot: Use the smallest possible name when inserting rights., Samuel Thibault, 2016/11/16
- [hurd] 15/28: boot: restore terminal state on exit, Samuel Thibault, 2016/11/16
- [hurd] 18/28: boot: Tidy up the argument parser., Samuel Thibault, 2016/11/16
- [hurd] 24/28: eth-multiplexer: Avoid local definitions., Samuel Thibault, 2016/11/16
- [hurd] 28/28: libpager: fix returning error on data_unlock, Samuel Thibault, 2016/11/16
- [hurd] 08/28: proc: Fix new task notifications., Samuel Thibault, 2016/11/16