- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for assignQuota (0.11 sec)
-
pkg/volume/emptydir/empty_dir.go
// enforcement. if err == nil { volumeutil.SetReady(ed.getMetaDir()) err = ed.assignQuota(dir, mounterArgs.DesiredSize) } return err } // assignQuota checks if the underlying medium supports quotas and if so, sets func (ed *emptyDir) assignQuota(dir string, mounterSize *resource.Quantity) error { if mounterSize != nil { // Deliberately shadow the outer use of err as noted
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.go
delete(mountpointMap, path) return false, nil } // AssignQuota -- assign a quota to the specified directory. // AssignQuota chooses the quota ID based on the pod UID and path. // If the pod UID is identical to another one known, it may (but presently // doesn't) choose the same quota ID as other volumes in the pod.
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_linux_test.go
dummySetFSInfo(path) return SupportsQuotas(dummyQuotaTest(), path) } func fakeAssignQuota(path string, poduid types.UID, bytes int64) error { dummySetFSInfo(path) return AssignQuota(dummyQuotaTest(), path, poduid, resource.NewQuantity(bytes, resource.DecimalSI)) } func fakeClearQuota(path string) error { dummySetFSInfo(path) return ClearQuota(dummyQuotaTest(), path) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 20.7K bytes - Viewed (0)