|
@ -63,6 +63,7 @@ type FilerOptions struct { |
|
|
diskType *string |
|
|
diskType *string |
|
|
allowedOrigins *string |
|
|
allowedOrigins *string |
|
|
exposeDirectoryData *bool |
|
|
exposeDirectoryData *bool |
|
|
|
|
|
joinExistingFiler *bool |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func init() { |
|
|
func init() { |
|
@ -95,6 +96,7 @@ func init() { |
|
|
f.diskType = cmdFiler.Flag.String("disk", "", "[hdd|ssd|<tag>] hard drive or solid state drive or any tag") |
|
|
f.diskType = cmdFiler.Flag.String("disk", "", "[hdd|ssd|<tag>] hard drive or solid state drive or any tag") |
|
|
f.allowedOrigins = cmdFiler.Flag.String("allowedOrigins", "*", "comma separated list of allowed origins") |
|
|
f.allowedOrigins = cmdFiler.Flag.String("allowedOrigins", "*", "comma separated list of allowed origins") |
|
|
f.exposeDirectoryData = cmdFiler.Flag.Bool("exposeDirectoryData", true, "whether to return directory metadata and content in Filer UI") |
|
|
f.exposeDirectoryData = cmdFiler.Flag.Bool("exposeDirectoryData", true, "whether to return directory metadata and content in Filer UI") |
|
|
|
|
|
f.joinExistingFiler = cmdFiler.Flag.Bool("joinExistingFiler", false, "enable if new filer wants to join existing cluster") |
|
|
|
|
|
|
|
|
// start s3 on filer
|
|
|
// start s3 on filer
|
|
|
filerStartS3 = cmdFiler.Flag.Bool("s3", false, "whether to start S3 gateway") |
|
|
filerStartS3 = cmdFiler.Flag.Bool("s3", false, "whether to start S3 gateway") |
|
@ -262,6 +264,7 @@ func (fo *FilerOptions) startFiler() { |
|
|
DownloadMaxBytesPs: int64(*fo.downloadMaxMBps) * 1024 * 1024, |
|
|
DownloadMaxBytesPs: int64(*fo.downloadMaxMBps) * 1024 * 1024, |
|
|
DiskType: *fo.diskType, |
|
|
DiskType: *fo.diskType, |
|
|
AllowedOrigins: strings.Split(*fo.allowedOrigins, ","), |
|
|
AllowedOrigins: strings.Split(*fo.allowedOrigins, ","), |
|
|
|
|
|
JoinExistingFiler: *fo.joinExistingFiler, |
|
|
}) |
|
|
}) |
|
|
if nfs_err != nil { |
|
|
if nfs_err != nil { |
|
|
glog.Fatalf("Filer startup error: %v", nfs_err) |
|
|
glog.Fatalf("Filer startup error: %v", nfs_err) |
|
|