From e73d6c9526078951bd5f3cc848b1bc61573d948c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 21 Oct 2020 23:48:07 -0700 Subject: [PATCH] able to print partial file id address https://github.com/chrislusf/seaweedfs/issues/1552 --- weed/shell/command_volume_fsck.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weed/shell/command_volume_fsck.go b/weed/shell/command_volume_fsck.go index 4b3568acb..4031cd237 100644 --- a/weed/shell/command_volume_fsck.go +++ b/weed/shell/command_volume_fsck.go @@ -102,6 +102,12 @@ func (c *commandVolumeFsck) Do(args []string, commandEnv *CommandEnv, writer io. totalOrphanChunkCount += uint64(len(orphanFileIds)) totalOrphanDataSize += orphanDataSize + if *verbose { + for _, fid := range orphanFileIds { + fmt.Fprintf(writer, "%sxxxxxxxx\n", fid) + } + } + if *applyPurging && len(orphanFileIds) > 0 { if vinfo.isEcVolume { fmt.Fprintf(writer, "Skip purging for Erasure Coded volumes.\n")