diff options
| author | chrislu <chris.lu@gmail.com> | 2022-03-06 02:44:40 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-03-06 02:44:40 -0800 |
| commit | c7e8ac18f00f2d4dad91745d4ad446ac396c48fb (patch) | |
| tree | 60a4e11d03446e9a22faee39833721d03269c346 /weed/mount/weedfs.go | |
| parent | b7c992f410098ae53409329cf02ddc2935aed03a (diff) | |
| download | seaweedfs-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/mount/weedfs.go')
| -rw-r--r-- | weed/mount/weedfs.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go index 25a203044..52eefab32 100644 --- a/weed/mount/weedfs.go +++ b/weed/mount/weedfs.go @@ -37,6 +37,7 @@ type Option struct { CacheSizeMB int64 DataCenter string Umask os.FileMode + Quota int64 MountUid uint32 MountGid uint32 @@ -107,6 +108,7 @@ func NewSeaweedFileSystem(option *Option) *WFS { func (wfs *WFS) StartBackgroundTasks() { startTime := time.Now() go meta_cache.SubscribeMetaEvents(wfs.metaCache, wfs.signature, wfs, wfs.option.FilerMountRootPath, startTime.UnixNano()) + go wfs.loopCheckQuota() } func (wfs *WFS) String() string { |
