diff options
author | Andreas Loibl <andreas.loibl@check24.de> | 2020-02-20 14:05:35 +0100 |
---|---|---|
committer | Andreas Loibl <andreas.loibl@check24.de> | 2020-02-20 14:11:33 +0100 |
commit | a0e08901a87700f967c26f146f54e2301f5d0594 (patch) | |
tree | 5288d25718fd15d38fc7c467dcf97143b609addb | |
parent | 45e81aae791da9d013aba2286af44826227c05ec (diff) |
mount.glusterfs: don't strip / from subdir-mounts
Change-Id: Ib07c31dc6669aa9d9f84a21e6160237290ed9afb
Fixes: bz#1804786
-rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 99513b4e8c3..ac4d94cb743 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -776,6 +776,7 @@ main () [ $(echo $volume_str_temp | grep -c "/") -eq 1 ] && [ "$volume_id_temp" != "snaps" ] && { volume_id=$volume_id_temp; + [ ${first_char} = '/' ] && volume_id=/$volume_id; subdir_mount=$(echo "$volume_str_temp" | cut -f2- -d '/'); } } |