aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_configure.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2021-12-23 17:23:26 -0800
committerchrislu <chris.lu@gmail.com>2021-12-23 17:23:26 -0800
commit7bf48ee135a06bbcdc06a05cd7ff4292d8d21514 (patch)
tree4be0d6c0844b642ea9db4b148b3a1c1375686bd4 /weed/shell/command_fs_configure.go
parent6de331b014ac83c1b2f8d127f164ede560535d8d (diff)
parent6ead7758cea182bcc4c5b7c4dc87c81420d1659b (diff)
downloadseaweedfs-7bf48ee135a06bbcdc06a05cd7ff4292d8d21514.tar.xz
seaweedfs-7bf48ee135a06bbcdc06a05cd7ff4292d8d21514.zip
Merge branch 'master' of https://github.com/chrislusf/seaweedfs
Diffstat (limited to 'weed/shell/command_fs_configure.go')
-rw-r--r--weed/shell/command_fs_configure.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go
index 25761d580..ece805db3 100644
--- a/weed/shell/command_fs_configure.go
+++ b/weed/shell/command_fs_configure.go
@@ -55,6 +55,9 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
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")
+ dataCenter := fsConfigureCommand.String("dataCenter", "", "assign writes to this dataCenter")
+ rack := fsConfigureCommand.String("rack", "", "assign writes to this rack")
+ dataNode := fsConfigureCommand.String("dataNode", "", "assign writes to this dataNode")
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")
@@ -77,6 +80,9 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
DiskType: *diskType,
VolumeGrowthCount: uint32(*volumeGrowthCount),
ReadOnly: *isReadOnly,
+ DataCenter: *dataCenter,
+ Rack: *rack,
+ DataNode: *dataNode,
}
// check collection