diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2013-08-02 16:00:28 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-08-22 23:31:09 -0700 |
commit | f4cffcc7ef52ccab3b08cb9be5bf16f046f5493a (patch) | |
tree | 95bce663a8ca0e788ff35bd2cfa759e21c98f8dc | |
parent | 094b06c520498477804ef9ff8166ec0541d98c21 (diff) | |
download | glusterfs-f4cffcc7ef52ccab3b08cb9be5bf16f046f5493a.tar.gz glusterfs-f4cffcc7ef52ccab3b08cb9be5bf16f046f5493a.tar.xz glusterfs-f4cffcc7ef52ccab3b08cb9be5bf16f046f5493a.zip |
mount/fuse: do not forget the root inode
In batch forgetting of inodes, nodeid should be checked and if it is for
root, then it should not be sent forget.
Change-Id: I99bd91ba70d8be4df88ddac005e38c449f4ed7d9
BUG: 990744
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-on: http://review.gluster.org/5471
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index e84a50998d..c93b17df97 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -586,8 +586,11 @@ fuse_batch_forget(xlator_t *this, fuse_in_header_t *finh, void *msg) "%"PRIu64": BATCH_FORGET %"PRIu64"/%"PRIu32, finh->unique, finh->nodeid, fbfi->count); - for (i = 0; i < fbfi->count; i++) + for (i = 0; i < fbfi->count; i++) { + if (ffo[i].nodeid == 1) + continue; do_forget(this, finh->unique, ffo[i].nodeid, ffo[i].nlookup); + } GF_FREE(finh); } |