mount: quota for one mounted collection

related to https://github.com/seaweedfs/seaweedfs-csi-driver/issues/48
This commit is contained in:
chrislu
2022-03-06 02:44:40 -08:00
parent b7c992f410
commit c7e8ac18f0
4 changed files with 58 additions and 0 deletions

View File

@@ -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,