diff options
| author | chrislu <chris.lu@gmail.com> | 2024-09-04 00:05:58 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-09-04 00:05:58 -0700 |
| commit | 66ac82bb8f8a5c5f095387689a503f2bc0edd002 (patch) | |
| tree | baabf17ce97f2533571420ff1a9563406fac8425 /weed/command/mount_std.go | |
| parent | 8d5a6d7e74eba7f63ce6466033d24e66d19ddd32 (diff) | |
| download | seaweedfs-66ac82bb8f8a5c5f095387689a503f2bc0edd002.tar.xz seaweedfs-66ac82bb8f8a5c5f095387689a503f2bc0edd002.zip | |
default cacheDirWrite to cacheDir
Diffstat (limited to 'weed/command/mount_std.go')
| -rw-r--r-- | weed/command/mount_std.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index a5325b11e..f85e7386d 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -216,6 +216,11 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { mountRoot = mountRoot[0 : len(mountRoot)-1] } + cacheDirForWrite := *option.cacheDirForWrite + if cacheDirForWrite == "" { + cacheDirForWrite = *option.cacheDirForRead + } + seaweedFileSystem := mount.NewSeaweedFileSystem(&mount.Option{ MountDirectory: dir, FilerAddresses: filerAddresses, @@ -229,7 +234,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { ConcurrentWriters: *option.concurrentWriters, CacheDirForRead: *option.cacheDirForRead, CacheSizeMBForRead: *option.cacheSizeMBForRead, - CacheDirForWrite: *option.cacheDirForWrite, + CacheDirForWrite: cacheDirForWrite, DataCenter: *option.dataCenter, Quota: int64(*option.collectionQuota) * 1024 * 1024, MountUid: uid, |
