Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetConsumption (0.16 sec)

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

    		}
    		return fail
    	case "Set":
    		err = fakeAssignQuota(testcase.path, testcase.poduid, testcase.bytes)
    	case "Clear":
    		err = fakeClearQuota(testcase.path)
    	case "GetConsumption":
    		_, err = GetConsumption(testcase.path)
    	case "GetInodes":
    		_, err = GetInodes(testcase.path)
    	default:
    		t.Errorf("Case %v (%s, %s, %v) unknown operation %s", seq, testcase.name, testcase.path, true, testcase.op)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  2. pkg/volume/util/fsquota/quota_linux.go

    			return nil
    		}
    		removeProjectID(path, id)
    	}
    	return fmt.Errorf("assign quota FAILED %v", err)
    }
    
    // GetConsumption -- retrieve the consumption (in bytes) of the directory
    func GetConsumption(path string) (*resource.Quantity, error) {
    	// Note that we actually need to hold the lock at least through
    	// running the quota command, so it can't get recycled behind our back
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 07 08:07:51 UTC 2023
    - 14.1K bytes
    - Viewed (0)
Back to top