From a0e08901a87700f967c26f146f54e2301f5d0594 Mon Sep 17 00:00:00 2001 From: Andreas Loibl Date: Thu, 20 Feb 2020 14:05:35 +0100 Subject: mount.glusterfs: don't strip / from subdir-mounts Change-Id: Ib07c31dc6669aa9d9f84a21e6160237290ed9afb Fixes: bz#1804786 --- xlators/mount/fuse/utils/mount.glusterfs.in | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators') 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 '/'); } } -- cgit