SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
[shell] volume copy add param noLock (#6871)
Konstantin Lebedev958d88cb8562
diff --git a/weed/shell/command_volume_copy.go b/weed/shell/command_volume_copy.goindex be00cb18f6..5c7cc33b00 100644--- a/weed/shell/command_volume_copy.go+++ b/weed/shell/command_volume_copy.go@@ -41,11 +41,14 @@ func (c *commandVolumeCopy) Do(args []string, commandEnv *CommandEnv, writer io.volumeIdInt := volCopyCommand.Int("volumeId", 0, "the volume id")sourceNodeStr := volCopyCommand.String("source", "", "the source volume server <host>:<port>")targetNodeStr := volCopyCommand.String("target", "", "the target volume server <host>:<port>")+ noLock := volCopyCommand.Bool("noLock", false, "do not lock the admin shell at one's own risk")if err = volCopyCommand.Parse(args); err != nil {return nil}- if err = commandEnv.confirmIsLocked(args); err != nil {+ if *noLock {+ commandEnv.noLock = true+ } else if err = commandEnv.confirmIsLocked(args); err != nil {return}