diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2014-05-07 20:13:43 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-05-29 09:25:46 -0700 |
commit | cc0378d39f4082f51d5ef6e02b3007fe9e78cb31 (patch) | |
tree | f5c82bece9cf1a2fd79685ef2d89bcd2a5b8428f /xlators/mount | |
parent | 58b9edee87bba3ffe812cf15f171926be017575b (diff) |
user servicable snapshots
Change-Id: Idbf27dbe088e646a8ab81cedc5818413795895ea
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Signed-off-by: Anand Subramanian <anands@redhat.com>
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-on: http://review.gluster.org/7700
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mount')
-rw-r--r-- | xlators/mount/fuse/src/fuse-resolve.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-resolve.c b/xlators/mount/fuse/src/fuse-resolve.c index 76b1d9a72cc..fc04d2c8efa 100644 --- a/xlators/mount/fuse/src/fuse-resolve.c +++ b/xlators/mount/fuse/src/fuse-resolve.c @@ -47,6 +47,11 @@ fuse_resolve_loc_touchup (fuse_state_t *state) } else if (loc->inode) { ret = inode_path (loc->inode, NULL, &path); uuid_copy (loc->gfid, loc->inode->gfid); + if (path) { + loc->name = strrchr (path, '/'); + if (loc->name) + loc->name++; + } } if (ret) gf_log (THIS->name, GF_LOG_TRACE, |