Source-Changes-HG archive

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

[src/trunk]: src/lib/libperfuse Send GETATTR to filesystem for removed but st...



details:   https://anonhg.NetBSD.org/src/rev/3be66e695165
branches:  trunk
changeset: 331351:3be66e695165
user:      manu <manu%NetBSD.org@localhost>
date:      Sat Aug 09 03:17:11 2014 +0000

description:
Send GETATTR to filesystem for removed but still-open files, as
it is the expected behavior (bug caught by glusterFS regression tests)

diffstat:

 lib/libperfuse/ops.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ea1096a24fff -r 3be66e695165 lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c      Sat Aug 09 00:18:58 2014 +0000
+++ b/lib/libperfuse/ops.c      Sat Aug 09 03:17:11 2014 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: ops.c,v 1.63 2014/01/06 08:56:34 manu Exp $ */
+/*  $NetBSD: ops.c,v 1.64 2014/08/09 03:17:11 manu Exp $ */
 
 /*-
  *  Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -1554,7 +1554,7 @@
        struct fuse_attr_out *fao;
        int error = 0;
        
-       if (pnd->pnd_flags & PND_REMOVED)
+       if ((pnd->pnd_flags & PND_REMOVED) && !(pnd->pnd_flags & PND_OPEN))
                return ENOENT;
 
        node_ref(opc);



Home | Main Index | Thread Index | Old Index