aboutsummaryrefslogtreecommitdiff
path: root/weed/command/webdav.go
diff options
context:
space:
mode:
authorbingoohuang <bingoo.huang@gmail.com>2021-02-20 16:45:02 +0800
committerGitHub <noreply@github.com>2021-02-20 16:45:02 +0800
commitf69356f5890f28d102d807297f8a5da915435482 (patch)
treed5ee05dd243c1fa5d023a13f0e69d98b798802d9 /weed/command/webdav.go
parent7ffe736d20f68cd0bd3d000649494e4550127c7d (diff)
parent565f7a6e724cf2dca401bd699a65f5814606ebfe (diff)
downloadseaweedfs-f69356f5890f28d102d807297f8a5da915435482.tar.xz
seaweedfs-f69356f5890f28d102d807297f8a5da915435482.zip
Merge pull request #3 from chrislusf/master
Diffstat (limited to 'weed/command/webdav.go')
-rw-r--r--weed/command/webdav.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/command/webdav.go b/weed/command/webdav.go
index dc84b1fd0..3e4532d6e 100644
--- a/weed/command/webdav.go
+++ b/weed/command/webdav.go
@@ -25,6 +25,8 @@ type WebDavOption struct {
filer *string
port *int
collection *string
+ replication *string
+ disk *string
tlsPrivateKey *string
tlsCertificate *string
cacheDir *string
@@ -36,6 +38,8 @@ func init() {
webDavStandaloneOptions.filer = cmdWebDav.Flag.String("filer", "localhost:8888", "filer server address")
webDavStandaloneOptions.port = cmdWebDav.Flag.Int("port", 7333, "webdav server http listen port")
webDavStandaloneOptions.collection = cmdWebDav.Flag.String("collection", "", "collection to create the files")
+ webDavStandaloneOptions.replication = cmdWebDav.Flag.String("replication", "", "replication to create the files")
+ webDavStandaloneOptions.disk = cmdWebDav.Flag.String("disk", "", "[hdd|ssd] hard drive or solid state drive")
webDavStandaloneOptions.tlsPrivateKey = cmdWebDav.Flag.String("key.file", "", "path to the TLS private key file")
webDavStandaloneOptions.tlsCertificate = cmdWebDav.Flag.String("cert.file", "", "path to the TLS certificate file")
webDavStandaloneOptions.cacheDir = cmdWebDav.Flag.String("cacheDir", os.TempDir(), "local cache directory for file chunks")
@@ -107,6 +111,8 @@ func (wo *WebDavOption) startWebDav() bool {
FilerGrpcAddress: filerGrpcAddress,
GrpcDialOption: grpcDialOption,
Collection: *wo.collection,
+ Replication: *wo.replication,
+ DiskType: *wo.disk,
Uid: uid,
Gid: gid,
Cipher: cipher,