From 21fadf5582bf24ed0f4ccb57a3329aa3296bb47f Mon Sep 17 00:00:00 2001 From: qzh <951012707@qq.com> Date: Mon, 27 Apr 2026 13:20:46 +0800 Subject: [PATCH] fix(shell): correct volume.list -writable filter unit and comparison (#9231) * fix(shell): correct volume.list -writable filter unit and comparison * fix(shell): correct volume.list -writable filter unit and comparison --- weed/shell/command_volume_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/shell/command_volume_list.go b/weed/shell/command_volume_list.go index a07861b9c..53b7007b0 100644 --- a/weed/shell/command_volume_list.go +++ b/weed/shell/command_volume_list.go @@ -199,7 +199,7 @@ func (c *commandVolumeList) isNotMatchDiskInfo(readOnly bool, collection string, if *c.readonly && !readOnly { return true } - if *c.writable && (readOnly || volumeSize == -1 || c.volumeSizeLimitMb >= uint64(volumeSize)) { + if *c.writable && (readOnly || volumeSize == -1 || (c.volumeSizeLimitMb > 0 && uint64(volumeSize) >= c.volumeSizeLimitMb*util.MiByte)) { return true } if *c.collectionPattern != "" {