mirror of
https://github.com/containers/skopeo.git
synced 2025-09-26 04:35:14 +00:00
Update to c/image v4.0.1
Update to use the correct c/image/v4 import path, work originally from https://github.com/containers/skopeo/pull/733 by Valentin Rothberg <rothberg@redhat.com>. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
committed by
Miloslav Trmač
parent
881edbf122
commit
7922028d7c
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