- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ClearQuota (0.16 sec)
-
pkg/volume/util/fsquota/quota_unsupported.go
return nil, errNotImplemented } // GetInodes -- dummy implementation func GetInodes(_ string) (*resource.Quantity, error) { return nil, errNotImplemented } // ClearQuota -- dummy implementation func ClearQuota(_ mount.Interface, _ string) error { return errNotImplemented
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jan 28 06:09:31 UTC 2023 - 1.7K bytes - Viewed (0) -
pkg/volume/util/fsquota/quota_linux.go
return nil, err } return resource.NewQuantity(inodes, resource.DecimalSI), nil } // ClearQuota -- remove the quota assigned to a directory func ClearQuota(m mount.Interface, path string) error { klog.V(3).Infof("ClearQuota %s", path) if !enabledQuotasForMonitoring() { return fmt.Errorf("clearQuota called, but quotas disabled") } quotaLock.Lock() defer quotaLock.Unlock() poduid, ok := dirPodMap[path]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 07 08:07:51 UTC 2023 - 14.1K bytes - Viewed (0) -
pkg/volume/util/fsquota/quota.go
GetInodes(path string) (*resource.Quantity, error) // Remove the quota from a path // Implementations may assume that any data covered by the // quota has already been removed. ClearQuota(m mount.Interface, path string) error } func enabledQuotasForMonitoring() bool { return utilfeature.DefaultFeatureGate.Enabled(features.LocalStorageCapacityIsolationFSQuotaMonitoring)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jan 28 06:09:31 UTC 2023 - 1.9K bytes - Viewed (0) -
pkg/volume/emptydir/empty_dir.go
} func (ed *emptyDir) teardownDefault(dir string) error { if utilfeature.DefaultFeatureGate.Enabled(features.LocalStorageCapacityIsolationFSQuotaMonitoring) { // Remove any quota err := fsquota.ClearQuota(ed.mounter, dir) if err != nil { klog.Warningf("Warning: Failed to clear quota on %s: %v", dir, err) } } // Renaming the directory is not required anymore because the operation executor
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 19K bytes - Viewed (0) -
pkg/volume/util/fsquota/quota_linux_test.go
dummySetFSInfo(path) return AssignQuota(dummyQuotaTest(), path, poduid, resource.NewQuantity(bytes, resource.DecimalSI)) } func fakeClearQuota(path string) error { dummySetFSInfo(path) return ClearQuota(dummyQuotaTest(), path) } type quotaTestCase struct { name string path string poduid types.UID
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 20.7K bytes - Viewed (0)