Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SetQuotaOnDir (0.14 sec)

  1. pkg/volume/util/fsquota/common/quota_common_linux.go

    	// this directory
    	GetQuotaOnDir(path string) (QuotaID, error)
    
    	// SetQuotaOnDir applies the specified quota ID to a directory.
    	// Negative value for bytes means that a non-enforcing quota
    	// should be applied (perhaps by setting a quota too large to
    	// be hit)
    	SetQuotaOnDir(path string, id QuotaID, bytes int64) error
    
    	// QuotaIDIsInUse determines whether the quota ID is in use.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 28 06:09:31 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. pkg/volume/util/fsquota/quota_linux.go

    }
    
    func clearApplier(path string) {
    	dirApplierLock.Lock()
    	defer dirApplierLock.Unlock()
    	delete(dirApplierMap, path)
    }
    
    func setQuotaOnDir(path string, id common.QuotaID, bytes int64) error {
    	return getApplier(path).SetQuotaOnDir(path, id, bytes)
    }
    
    func GetQuotaOnDir(m mount.Interface, path string) (common.QuotaID, error) {
    	_, _, err := getFSInfo(m, path)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 07 08:07:51 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  3. pkg/volume/util/fsquota/common/quota_common_linux_impl.go

    	if err != nil {
    		return BadQuotaID, fmt.Errorf("unable to parse project ID from %s (%v)", match[1], err)
    	}
    	return QuotaID(projid), nil
    }
    
    // SetQuotaOnDir applies a quota to the specified directory under the specified mountpoint.
    func (v linuxVolumeQuotaApplier) SetQuotaOnDir(path string, id QuotaID, bytes int64) error {
    	if bytes < 0 || bytes > v.maxQuota {
    		bytes = v.maxQuota
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  4. pkg/volume/util/fsquota/quota_linux_test.go

    	if strings.HasPrefix(mountpoint, "/quota2") {
    		return testVolumeQuota{}
    	}
    	return nil
    }
    
    func (v testVolumeQuota) SetQuotaOnDir(dir string, id common.QuotaID, _ int64) error {
    	odir, ok := testIDQuotaMap[id]
    	if ok && dir != odir {
    		return fmt.Errorf("ID %v is already in use", id)
    	}
    	oid, ok := testQuotaIDMap[dir]
    	if ok && id != oid {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
Back to top