SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
cat entry content
Chris Lu6bab20d862cd
diff --git a/weed/command/filer_cat.go b/weed/command/filer_cat.goindex a46098b041..09f5e97fec 100644--- a/weed/command/filer_cat.go+++ b/weed/command/filer_cat.go@@ -108,6 +108,11 @@ func runFilerCat(cmd *Command, args []string) bool {return err}+ if len(respLookupEntry.Entry.Content) > 0 {+ _, err = writer.Write(respLookupEntry.Entry.Content)+ return err+ }+filerCat.filerClient = clientreturn filer.StreamContent(&filerCat, writer, respLookupEntry.Entry.Chunks, 0, math.MaxInt64)diff --git a/weed/shell/command_fs_cat.go b/weed/shell/command_fs_cat.goindex 3c5e136637..a5731240d4 100644--- a/weed/shell/command_fs_cat.go+++ b/weed/shell/command_fs_cat.go@@ -52,6 +52,11 @@ func (c *commandFsCat) Do(args []string, commandEnv *CommandEnv, writer io.Writereturn err}+ if len(respLookupEntry.Entry.Content) > 0 {+ _, err = writer.Write(respLookupEntry.Entry.Content)+ return err+ }+return filer.StreamContent(commandEnv.MasterClient, writer, respLookupEntry.Entry.Chunks, 0, math.MaxInt64)})