diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-07-20 14:11:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 14:11:17 -0400 |
commit | 0d26a573e3cf8cc5baea84206a86cb83b433b6d5 (patch) | |
tree | fc86e361ff0fd566310262399fec67f94da6514a /pkg/util/mountOpts.go | |
parent | e8de509be5b6ff65088a204a5bb5fd32987f561d (diff) | |
parent | 020d81f113ea1e11398ea77495cc4b8e05a91d38 (diff) | |
download | podman-0d26a573e3cf8cc5baea84206a86cb83b433b6d5.tar.gz podman-0d26a573e3cf8cc5baea84206a86cb83b433b6d5.tar.bz2 podman-0d26a573e3cf8cc5baea84206a86cb83b433b6d5.zip |
Merge pull request #6895 from QiWang19/pr-3457
Add support for overlay volume mounts in podman.
Diffstat (limited to 'pkg/util/mountOpts.go')
-rw-r--r-- | pkg/util/mountOpts.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/util/mountOpts.go b/pkg/util/mountOpts.go index 416e60728..eab2657e3 100644 --- a/pkg/util/mountOpts.go +++ b/pkg/util/mountOpts.go @@ -33,6 +33,10 @@ func ProcessOptions(options []string, isTmpfs bool, sourcePath string) ([]string // Some options have parameters - size, mode splitOpt := strings.SplitN(opt, "=", 2) switch splitOpt[0] { + case "O": + if len(options) > 1 { + return nil, errors.Wrapf(ErrDupeMntOption, "'O' option can not be used with other options") + } case "exec", "noexec": if foundExec { return nil, errors.Wrapf(ErrDupeMntOption, "only one of 'noexec' and 'exec' can be used") |