diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-02-24 14:34:14 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-02-24 14:34:14 -0800 |
| commit | d8dec2323bde1a5ab787b719a240969852004456 (patch) | |
| tree | 9f8ad5b46fb713b7b951c5515ca2670a02672fc6 /weed/command/filer.go | |
| parent | b06b7ca6e6257c16e006adeb8910864068b432b3 (diff) | |
| download | seaweedfs-d8dec2323bde1a5ab787b719a240969852004456.tar.xz seaweedfs-d8dec2323bde1a5ab787b719a240969852004456.zip | |
s3: move buckets folder configuration to filer
Diffstat (limited to 'weed/command/filer.go')
| -rw-r--r-- | weed/command/filer.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index ea8392fac..0156fe1b9 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -33,6 +33,7 @@ type FilerOptions struct { dataCenter *string enableNotification *bool disableHttp *bool + dirBucketsPath *string // default leveldb directory, used in "weed server" mode defaultLevelDbDirectory *string @@ -52,6 +53,7 @@ func init() { f.dirListingLimit = cmdFiler.Flag.Int("dirListLimit", 100000, "limit sub dir listing size") f.dataCenter = cmdFiler.Flag.String("dataCenter", "", "prefer to write to volumes in this data center") f.disableHttp = cmdFiler.Flag.Bool("disableHttp", false, "disable http request, only gRpc operations are allowed") + f.dirBucketsPath = cmdFiler.Flag.String("dir.buckets", "/buckets", "folder to store all buckets") } var cmdFiler = &Command{ @@ -109,6 +111,7 @@ func (fo *FilerOptions) startFiler() { DataCenter: *fo.dataCenter, DefaultLevelDbDir: defaultLevelDbDirectory, DisableHttp: *fo.disableHttp, + DirBucketsPath: *fo.dirBucketsPath, Port: *fo.port, }) if nfs_err != nil { |
