Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for QuotaIDIsInUse (0.18 sec)

  1. pkg/volume/util/fsquota/quota_linux_test.go

    	id, ok := testQuotaIDMap[path]
    	if ok {
    		return id, nil
    	}
    	return common.BadQuotaID, fmt.Errorf("no quota available for %s", path)
    }
    
    func (v testVolumeQuota) QuotaIDIsInUse(id common.QuotaID) (bool, error) {
    	if _, ok := testIDQuotaMap[id]; ok {
    		return true, nil
    	}
    	// So that we reject some
    	if id%3 == 0 {
    		return false, nil
    	}
    	return false, nil
    }
    
    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