|
@ -5,6 +5,7 @@ import ( |
|
|
"github.com/seaweedfs/seaweedfs/weed/filer" |
|
|
"github.com/seaweedfs/seaweedfs/weed/filer" |
|
|
"google.golang.org/protobuf/proto" |
|
|
"google.golang.org/protobuf/proto" |
|
|
"io" |
|
|
"io" |
|
|
|
|
|
"sort" |
|
|
|
|
|
|
|
|
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" |
|
|
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" |
|
|
"github.com/seaweedfs/seaweedfs/weed/util" |
|
|
"github.com/seaweedfs/seaweedfs/weed/util" |
|
@ -49,6 +50,11 @@ func (c *commandFsMetaCat) Do(args []string, commandEnv *CommandEnv, writer io.W |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
chunks := respLookupEntry.Entry.Chunks |
|
|
|
|
|
sort.Slice(chunks, func(i, j int) bool { |
|
|
|
|
|
return chunks[i].Offset < chunks[j].Offset |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
filer.ProtoToText(writer, respLookupEntry.Entry) |
|
|
filer.ProtoToText(writer, respLookupEntry.Entry) |
|
|
|
|
|
|
|
|
bytes, _ := proto.Marshal(respLookupEntry.Entry) |
|
|
bytes, _ := proto.Marshal(respLookupEntry.Entry) |
|
|