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
volume.check.disk add param volumeId
Konstantin Lebedev67476d830a00
diff --git a/weed/shell/command_volume_check_disk.go b/weed/shell/command_volume_check_disk.goindex 53284096d8..daa64c1bd3 100644--- a/weed/shell/command_volume_check_disk.go+++ b/weed/shell/command_volume_check_disk.go@@ -45,6 +45,7 @@ func (c *commandVolumeCheckDisk) Do(args []string, commandEnv *CommandEnv, writefsckCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError)slowMode := fsckCommand.Bool("slow", false, "slow mode checks all replicas even file counts are the same")verbose := fsckCommand.Bool("v", false, "verbose mode")+ volumeId := fsckCommand.Uint("volumeId", 0, "the volume id")applyChanges := fsckCommand.Bool("force", false, "apply the fix")nonRepairThreshold := fsckCommand.Float64("nonRepairThreshold", 0.3, "repair when missing keys is not more than this limit")if err = fsckCommand.Parse(args); err != nil {@@ -70,6 +71,9 @@ func (c *commandVolumeCheckDisk) Do(args []string, commandEnv *CommandEnv, write}for _, replicas := range volumeReplicas {+ if *volumeId > 0 && replicas[0].info.Id != uint32(*volumeId) {+ continue+ }slices.SortFunc(replicas, func(a, b *VolumeReplica) bool {return fileCount(a) > fileCount(b)})