mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
Allow API to specify size and inode quota
Fixes: https://github.com/containers/podman/issues/11016 [NO NEW TESTS NEEDED] We have no easy way to tests this in CI/CD systems. Requires quota to be setup on directories to work. Fixes: https://github.com/containers/podman/issues/11016 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -310,6 +310,17 @@ func WithCDI(devices []string) CtrCreateOption {
|
||||
}
|
||||
}
|
||||
|
||||
// WithStorageOpts sets the devices to check for for CDI configuration.
|
||||
func WithStorageOpts(storageOpts map[string]string) CtrCreateOption {
|
||||
return func(ctr *Container) error {
|
||||
if ctr.valid {
|
||||
return define.ErrCtrFinalized
|
||||
}
|
||||
ctr.config.StorageOpts = storageOpts
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WithDefaultMountsFile sets the file to look at for default mounts (mainly
|
||||
// secrets).
|
||||
// Note we are not saving this in the database as it is for testing purposes
|
||||
|
Reference in New Issue
Block a user