aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_configure.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-06-04 01:03:41 -0700
committerChris Lu <chris.lu@gmail.com>2021-06-04 01:03:41 -0700
commitab606dec2aa07f3092d4d8ab5764a6641d914831 (patch)
treed659d71cdc1198a3b97116a78991c0ccebcb1c9b /weed/shell/command_fs_configure.go
parentf15d7a57f549eb85749e91e8979b3a94e7f82219 (diff)
downloadseaweedfs-ab606dec2aa07f3092d4d8ab5764a6641d914831.tar.xz
seaweedfs-ab606dec2aa07f3092d4d8ab5764a6641d914831.zip
filer: add path-specific option to enforce readonly
Diffstat (limited to 'weed/shell/command_fs_configure.go')
-rw-r--r--weed/shell/command_fs_configure.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go
index 02cd7ac69..52fcae1c6 100644
--- a/weed/shell/command_fs_configure.go
+++ b/weed/shell/command_fs_configure.go
@@ -54,6 +54,7 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
ttl := fsConfigureCommand.String("ttl", "", "assign writes with this ttl")
diskType := fsConfigureCommand.String("disk", "", "[hdd|ssd|<tag>] hard drive or solid state drive or any tag")
fsync := fsConfigureCommand.Bool("fsync", false, "fsync for the writes")
+ isReadOnly := fsConfigureCommand.Bool("readOnly", false, "disable writes")
volumeGrowthCount := fsConfigureCommand.Int("volumeGrowthCount", 0, "the number of physical volumes to add if no writable volumes")
isDelete := fsConfigureCommand.Bool("delete", false, "delete the configuration by locationPrefix")
apply := fsConfigureCommand.Bool("apply", false, "update and apply filer configuration")
@@ -84,6 +85,7 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
Fsync: *fsync,
DiskType: *diskType,
VolumeGrowthCount: uint32(*volumeGrowthCount),
+ ReadOnly: *isReadOnly,
}
// check collection