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
add some error messages for args
chrislu5520b81551bb
diff --git a/weed/shell/command_volume_unmount.go b/weed/shell/command_volume_unmount.goindex 7a649bb0e7..3e0a768d52 100644--- a/weed/shell/command_volume_unmount.go+++ b/weed/shell/command_volume_unmount.go@@ -41,6 +41,12 @@ func (c *commandVolumeUnmount) Do(args []string, commandEnv *CommandEnv, writerif err = volUnmountCommand.Parse(args); err != nil {return nil}+ if *nodeStr == "" {+ return fmt.Errorf("-node option is required")+ }+ if *volumeIdInt == 0 {+ return fmt.Errorf("-volumeId option is required")+ }if err = commandEnv.confirmIsLocked(args); err != nil {return