|
@ -33,7 +33,6 @@ type FilerOptions struct { |
|
|
dataCenter *string |
|
|
dataCenter *string |
|
|
enableNotification *bool |
|
|
enableNotification *bool |
|
|
disableHttp *bool |
|
|
disableHttp *bool |
|
|
dirBucketsPath *string |
|
|
|
|
|
|
|
|
|
|
|
// default leveldb directory, used in "weed server" mode
|
|
|
// default leveldb directory, used in "weed server" mode
|
|
|
defaultLevelDbDirectory *string |
|
|
defaultLevelDbDirectory *string |
|
@ -53,7 +52,6 @@ func init() { |
|
|
f.dirListingLimit = cmdFiler.Flag.Int("dirListLimit", 100000, "limit sub dir listing size") |
|
|
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.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.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{ |
|
|
var cmdFiler = &Command{ |
|
@ -111,7 +109,6 @@ func (fo *FilerOptions) startFiler() { |
|
|
DataCenter: *fo.dataCenter, |
|
|
DataCenter: *fo.dataCenter, |
|
|
DefaultLevelDbDir: defaultLevelDbDirectory, |
|
|
DefaultLevelDbDir: defaultLevelDbDirectory, |
|
|
DisableHttp: *fo.disableHttp, |
|
|
DisableHttp: *fo.disableHttp, |
|
|
DirBucketsPath: *fo.dirBucketsPath, |
|
|
|
|
|
Port: *fo.port, |
|
|
Port: *fo.port, |
|
|
}) |
|
|
}) |
|
|
if nfs_err != nil { |
|
|
if nfs_err != nil { |
|
|