Skip to content

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.

shell: fix fs.configure

Chris Lu4c7248253629
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go
index d530b2585b..1600fddec9 100644
--- a/weed/shell/command_fs_configure.go
+++ b/weed/shell/command_fs_configure.go
@@ -77,13 +77,15 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
return filer.StreamContent(commandEnv.MasterClient, &buf, respLookupEntry.Entry.Chunks, 0, math.MaxInt64)
- }); err != nil {
+ }); err != nil && err != filer_pb.ErrNotFound {
return err
}
fc := filer.NewFilerConf()
- if err = fc.LoadFromBytes(buf.Bytes()); err != nil {
- return err
+ if buf.Len() > 0 {
+ if err = fc.LoadFromBytes(buf.Bytes()); err != nil {
+ return err
+ }
}
if *locationPrefix != "" {