summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-28 10:23:58 -0400
committerGitHub <noreply@github.com>2022-04-28 10:23:58 -0400
commitd0b96a541dc69e98d1923f8b297876f787bdb2db (patch)
tree77e4100a13bbb2a8f8149cee35c842a91b250c74 /pkg
parent2b8cafc0671fbbd155770f044b8216f050877192 (diff)
parent91ead15283200feb9db8054a26d322fbfdc3fa59 (diff)
downloadpodman-d0b96a541dc69e98d1923f8b297876f787bdb2db.tar.gz
podman-d0b96a541dc69e98d1923f8b297876f787bdb2db.tar.bz2
podman-d0b96a541dc69e98d1923f8b297876f787bdb2db.zip
Merge pull request #14051 from giuseppe/volume-create-noquota-option
volume: add new option -o o=noquota
Diffstat (limited to 'pkg')
-rw-r--r--pkg/domain/infra/abi/parse/parse.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/parse/parse.go b/pkg/domain/infra/abi/parse/parse.go
index 2d1adab74..3bac2ef99 100644
--- a/pkg/domain/infra/abi/parse/parse.go
+++ b/pkg/domain/infra/abi/parse/parse.go
@@ -73,6 +73,11 @@ func VolumeOptions(opts map[string]string) ([]libpod.VolumeCreateOption, error)
finalVal = append(finalVal, o)
// set option "GID": "$gid"
volumeOptions["GID"] = splitO[1]
+ case "noquota":
+ logrus.Debugf("Removing noquota from options and adding WithVolumeDisableQuota")
+ libpodOptions = append(libpodOptions, libpod.WithVolumeDisableQuota())
+ // set option "NOQUOTA": "true"
+ volumeOptions["NOQUOTA"] = "true"
default:
finalVal = append(finalVal, o)
}