mirror of
https://github.com/containers/podman.git
synced 2025-11-15 02:29:16 +08:00
vendor github.com/containers/storage@v1.13.2
* Ignore ro mount options in btrfs and windows drivers Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
10
vendor/github.com/containers/storage/drivers/windows/windows.go
generated
vendored
10
vendor/github.com/containers/storage/drivers/windows/windows.go
generated
vendored
@@ -372,7 +372,15 @@ func (d *Driver) Get(id string, options graphdriver.MountOpts) (string, error) {
|
||||
logrus.Debugf("WindowsGraphDriver Get() id %s mountLabel %s", id, options.MountLabel)
|
||||
var dir string
|
||||
|
||||
if len(options.Options) > 0 {
|
||||
switch len(options.Options) {
|
||||
case 0:
|
||||
case 1:
|
||||
if options.Options[0] == "ro" {
|
||||
// ignore "ro" option
|
||||
break
|
||||
}
|
||||
fallthrough
|
||||
default:
|
||||
return "", fmt.Errorf("windows driver does not support mount options")
|
||||
}
|
||||
rID, err := d.resolveID(id)
|
||||
|
||||
Reference in New Issue
Block a user