- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for AssignQuota (0.15 sec)
-
pkg/volume/util/fsquota/quota_unsupported.go
} // SupportsQuotas -- dummy implementation func SupportsQuotas(_ mount.Interface, _ string) (bool, error) { return false, errNotImplemented } // AssignQuota -- dummy implementation func AssignQuota(_ mount.Interface, _ string, _ types.UID, _ *resource.Quantity) error { return errNotImplemented } // GetConsumption -- dummy implementation
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/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.go
// Does the path provided support quotas, and if so, what types SupportsQuotas(m mount.Interface, path string) (bool, error) // Assign a quota (picked by the quota mechanism) to a path, // and return it. AssignQuota(m mount.Interface, path string, poduid types.UID, bytes *resource.Quantity) error // Get the quota-based storage consumption for the path GetConsumption(path string) (*resource.Quantity, error)
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/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)