summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server-handshake.c
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2012-03-06 14:35:45 +0530
committerAnand Avati <avati@redhat.com>2012-03-18 01:00:01 -0700
commit6bf0a809c99ec33fee73e6ebebb58baa2614f977 (patch)
treeb98ac8abdb614d3baa47eb3730a2a0c9ff2c6cda /xlators/protocol/server/src/server-handshake.c
parent93022c0cc6c22b3a30ded3e109a3fe0a0dce8ca0 (diff)
protocol/server: send forget on the renamed inode
If rename is given on a file "a" to "b" ("b" is already existing file), then after rename, the inode for "b" would still be in the inode table and would not get forget (for fuse client, the fuse kernel module would send, but on server forget will not come on that inode), thus leading to inode leak even when the mount point is empty. To avoid that before doing inode rename, unlink the previous inode that "b" is pointing to and send forget on that, if "b" is the last dentry for that inode. Change-Id: Ie4dcc39ea190ee8f28029b4d7661df576d9cf319 BUG: 799833 Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Reviewed-on: http://review.gluster.com/2874 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/protocol/server/src/server-handshake.c')
0 files changed, 0 insertions, 0 deletions