From 2f2e417b683c99a3bab5bab18db5ef28f930622c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 21 Nov 2018 15:12:47 -0800 Subject: [PATCH] detailed export --- weed/command/filer_export.go | 12 +++++++++++- weed/filesys/wfs.go | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/weed/command/filer_export.go b/weed/command/filer_export.go index c1a5dce7f..8a709ed1f 100644 --- a/weed/command/filer_export.go +++ b/weed/command/filer_export.go @@ -169,6 +169,16 @@ func printout(level int, entry *filer2.Entry) error { print("| ") } } - println(entry.FullPath.Name()) + print(entry.FullPath.Name()) + for _, chunk:=range entry.Chunks{ + print("[") + print(chunk.FileId) + print(",") + print(chunk.Offset) + print(",") + print(chunk.Size) + print(")") + } + println() return nil } diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index a3e16a996..5d27bd6cd 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -120,7 +120,7 @@ func (wfs *WFS) ReleaseHandle(fullpath string, handleId fuse.HandleID) { wfs.pathToHandleLock.Lock() defer wfs.pathToHandleLock.Unlock() - glog.V(4).Infof("%s releasing handle id %dcurrent handles lengh %d", fullpath, handleId, len(wfs.handles)) + glog.V(4).Infof("%s releasing handle id %d current handles length %d", fullpath, handleId, len(wfs.handles)) delete(wfs.pathToHandleIndex, fullpath) if int(handleId) < len(wfs.handles) { wfs.handles[int(handleId)] = nil