|
@ -55,6 +55,7 @@ type FilerOptions struct { |
|
|
debug *bool |
|
|
debug *bool |
|
|
debugPort *int |
|
|
debugPort *int |
|
|
localSocket *string |
|
|
localSocket *string |
|
|
|
|
|
showUIDirectoryDelete *bool |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func init() { |
|
|
func init() { |
|
@ -82,6 +83,7 @@ func init() { |
|
|
f.debug = cmdFiler.Flag.Bool("debug", false, "serves runtime profiling data, e.g., http://localhost:<debug.port>/debug/pprof/goroutine?debug=2") |
|
|
f.debug = cmdFiler.Flag.Bool("debug", false, "serves runtime profiling data, e.g., http://localhost:<debug.port>/debug/pprof/goroutine?debug=2") |
|
|
f.debugPort = cmdFiler.Flag.Int("debug.port", 6060, "http port for debugging") |
|
|
f.debugPort = cmdFiler.Flag.Int("debug.port", 6060, "http port for debugging") |
|
|
f.localSocket = cmdFiler.Flag.String("localSocket", "", "default to /tmp/seaweedfs-filer-<port>.sock") |
|
|
f.localSocket = cmdFiler.Flag.String("localSocket", "", "default to /tmp/seaweedfs-filer-<port>.sock") |
|
|
|
|
|
f.showUIDirectoryDelete = cmdFiler.Flag.Bool("ui.deleteDir", false, "enable filer UI show delete directory button") |
|
|
|
|
|
|
|
|
// 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") |
|
@ -216,6 +218,7 @@ func (fo *FilerOptions) startFiler() { |
|
|
Cipher: *fo.cipher, |
|
|
Cipher: *fo.cipher, |
|
|
SaveToFilerLimit: int64(*fo.saveToFilerLimit), |
|
|
SaveToFilerLimit: int64(*fo.saveToFilerLimit), |
|
|
ConcurrentUploadLimit: int64(*fo.concurrentUploadLimitMB) * 1024 * 1024, |
|
|
ConcurrentUploadLimit: int64(*fo.concurrentUploadLimitMB) * 1024 * 1024, |
|
|
|
|
|
ShowUIDirectoryDelete: *fo.showUIDirectoryDelete, |
|
|
}) |
|
|
}) |
|
|
if nfs_err != nil { |
|
|
if nfs_err != nil { |
|
|
glog.Fatalf("Filer startup error: %v", nfs_err) |
|
|
glog.Fatalf("Filer startup error: %v", nfs_err) |
|
|