summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2013-08-02 16:00:28 +0530
committerAnand Avati <avati@redhat.com>2013-08-22 23:31:09 -0700
commitf4cffcc7ef52ccab3b08cb9be5bf16f046f5493a (patch)
tree95bce663a8ca0e788ff35bd2cfa759e21c98f8dc /xlators/mount/fuse
parent094b06c520498477804ef9ff8166ec0541d98c21 (diff)
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>
Diffstat (limited to 'xlators/mount/fuse')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c5
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 e84a50998da..c93b17df971 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);
}