diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-18 15:45:12 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-18 15:45:44 -0800 |
| commit | e1992c83deeff50d5ddbd385dccac46e941fafcb (patch) | |
| tree | 2cdc0ee3e41678f55ba8d8447d6dbd273597d5b9 /weed/command/webdav.go | |
| parent | 1147aaf23debcbc39eab012279189d1bc08c7ee4 (diff) | |
| download | seaweedfs-e1992c83deeff50d5ddbd385dccac46e941fafcb.tar.xz seaweedfs-e1992c83deeff50d5ddbd385dccac46e941fafcb.zip | |
webdav adds disktype
Diffstat (limited to 'weed/command/webdav.go')
| -rw-r--r-- | weed/command/webdav.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/webdav.go b/weed/command/webdav.go index 158ba292f..3e4532d6e 100644 --- a/weed/command/webdav.go +++ b/weed/command/webdav.go @@ -26,6 +26,7 @@ type WebDavOption struct { port *int collection *string replication *string + disk *string tlsPrivateKey *string tlsCertificate *string cacheDir *string @@ -38,6 +39,7 @@ func init() { 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") @@ -110,6 +112,7 @@ func (wo *WebDavOption) startWebDav() bool { GrpcDialOption: grpcDialOption, Collection: *wo.collection, Replication: *wo.replication, + DiskType: *wo.disk, Uid: uid, Gid: gid, Cipher: cipher, |
