From 60f12e0eaf11a42f3f5ee8978ba540bbb6c8aadb Mon Sep 17 00:00:00 2001 From: vmallika Date: Wed, 8 Oct 2014 12:26:37 +0530 Subject: glusterd/snapshot: mount snapshot volume with read-only option Snapshot volumes are readonly. If you mount the volume to the client it doesn't allow writes, but its attributes are rw which contradicts the functionality. mount script should set read-only attributes for snapshot volumes. Change-Id: I056253abd8dfe7b2b43a064fbdbd9c16b8eca679 BUG: 1132946 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/8518 Tested-by: Gluster Build System Reviewed-by: Avra Sengupta Reviewed-by: Rajesh Joseph Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- xlators/mount/fuse/utils/mount.glusterfs.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators') diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index c8c32c66eb6..d491cc33c89 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -638,6 +638,11 @@ EOF exit 32; fi + #Snapshot volumes are mounted read only + case $volume_id in + /snaps/* ) read_only=1 + esac + check_recursive_mount "$mount_point"; update_updatedb; -- cgit