aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@uber.com>2021-04-04 21:40:58 -0700
committerChris Lu <chris.lu@uber.com>2021-04-04 21:40:58 -0700
commit0f64f5b9c8bea153171c8070f423b9910820bbb1 (patch)
treef647a537329d858e355572a3282a516dac6ce986 /weed/command/mount_std.go
parent6eee200c13b98088ebc6bb540b78fc7fe136a401 (diff)
downloadseaweedfs-0f64f5b9c8bea153171c8070f423b9910820bbb1.tar.xz
seaweedfs-0f64f5b9c8bea153171c8070f423b9910820bbb1.zip
mount: add readOnly option
fix https://github.com/chrislusf/seaweedfs/issues/1961
Diffstat (limited to 'weed/command/mount_std.go')
-rw-r--r--weed/command/mount_std.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index f6f7b1d55..8e5b7a483 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -203,6 +203,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
VolumeServerAccess: *mountOptions.volumeServerAccess,
Cipher: cipher,
UidGidMapper: uidGidMapper,
+ ReadOnly: *option.readOnly,
})
// mount