aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.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/filesys/wfs.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/filesys/wfs.go')
-rw-r--r--weed/filesys/wfs.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index c6d9080a1..ba5eb4b6b 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -43,6 +43,7 @@ type Option struct {
DataCenter string
EntryCacheTtl time.Duration
Umask os.FileMode
+ ReadOnly bool
MountUid uint32
MountGid uint32