mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Merge pull request #117077 from pacoxu/fsquota-cleanup
skip clear quota if FSQuotaMonitoring is disabled
This commit is contained in:
commit
1f0e718585
@ -519,10 +519,12 @@ func (ed *emptyDir) TearDownAt(dir string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ed *emptyDir) teardownDefault(dir string) error {
|
func (ed *emptyDir) teardownDefault(dir string) error {
|
||||||
// Remove any quota
|
if utilfeature.DefaultFeatureGate.Enabled(features.LocalStorageCapacityIsolationFSQuotaMonitoring) {
|
||||||
err := fsquota.ClearQuota(ed.mounter, dir)
|
// Remove any quota
|
||||||
if err != nil {
|
err := fsquota.ClearQuota(ed.mounter, dir)
|
||||||
klog.Warningf("Warning: Failed to clear quota on %s: %v", dir, err)
|
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
|
// Renaming the directory is not required anymore because the operation executor
|
||||||
// now handles duplicate operations on the same volume
|
// now handles duplicate operations on the same volume
|
||||||
|
Loading…
Reference in New Issue
Block a user