aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-03-06 02:44:40 -0800
committerchrislu <chris.lu@gmail.com>2022-03-06 02:44:40 -0800
commitc7e8ac18f00f2d4dad91745d4ad446ac396c48fb (patch)
tree60a4e11d03446e9a22faee39833721d03269c346 /weed/command/mount_std.go
parentb7c992f410098ae53409329cf02ddc2935aed03a (diff)
downloadseaweedfs-c7e8ac18f00f2d4dad91745d4ad446ac396c48fb.tar.xz
seaweedfs-c7e8ac18f00f2d4dad91745d4ad446ac396c48fb.zip
mount: quota for one mounted collection
related to https://github.com/seaweedfs/seaweedfs-csi-driver/issues/48
Diffstat (limited to 'weed/command/mount_std.go')
-rw-r--r--weed/command/mount_std.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index dd07636fe..d865e053f 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -209,6 +209,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
CacheDir: *option.cacheDir,
CacheSizeMB: *option.cacheSizeMB,
DataCenter: *option.dataCenter,
+ Quota: int64(*option.collectionQuota) * 1024 * 1024,
MountUid: uid,
MountGid: gid,
MountMode: mountMode,