diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-21 23:48:07 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-21 23:48:07 -0700 |
| commit | e73d6c9526078951bd5f3cc848b1bc61573d948c (patch) | |
| tree | 120824216011bf6755b532a3866b29e4250da720 | |
| parent | 720b1d9b88130b7faa466f734807c1c1237611d3 (diff) | |
| download | seaweedfs-e73d6c9526078951bd5f3cc848b1bc61573d948c.tar.xz seaweedfs-e73d6c9526078951bd5f3cc848b1bc61573d948c.zip | |
able to print partial file id
address https://github.com/chrislusf/seaweedfs/issues/1552
| -rw-r--r-- | weed/shell/command_volume_fsck.go | 6 |
1 files changed, 6 insertions, 0 deletions
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") |
