Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for quotactl (0.09 sec)

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

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package common
    
    // QuotaID is generic quota identifier.
    // Data type based on quotactl(2).
    type QuotaID int32
    
    const (
    	// UnknownQuotaID -- cannot determine whether a quota is in force
    	UnknownQuotaID QuotaID = -1
    	// BadQuotaID -- Invalid quota
    	BadQuotaID QuotaID = 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 28 06:09:31 UTC 2023
    - 844 bytes
    - Viewed (0)
  2. cmd/bucket-quota.go

    }
    
    // parseBucketQuota parses BucketQuota from json
    func parseBucketQuota(bucket string, data []byte) (quotaCfg *madmin.BucketQuota, err error) {
    	quotaCfg = &madmin.BucketQuota{}
    	if err = json.Unmarshal(data, quotaCfg); err != nil {
    		return quotaCfg, err
    	}
    	if !quotaCfg.IsValid() {
    		if quotaCfg.Type == "fifo" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. pkg/volume/util/fsquota/common/quota_common_linux_impl.go

    	defer quotaCmdLock.Unlock()
    	if quotaCmdInitialized {
    		return quotaCmd, nil
    	}
    	for _, program := range quotaCmds {
    		fileinfo, err := os.Stat(program)
    		if err == nil && ((fileinfo.Mode().Perm() & (1 << 6)) != 0) {
    			klog.V(3).Infof("Found xfs_quota program %s", program)
    			quotaCmd = program
    			quotaCmdInitialized = true
    			return quotaCmd, nil
    		}
    	}
    	quotaCmdInitialized = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top