-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix copying up initial contents of the mount point directory #263
fix copying up initial contents of the mount point directory #263
Conversation
a5244a2
to
e6f5512
Compare
Thanks, can we have tests? |
run_mount_test.go
Outdated
base.Cmd("run", "-v", "/mnt", "--rm", imageName).AssertOutContains("hi") | ||
|
||
//NamedVolume | ||
base.Cmd("volume", "create", "copying-initial-content").AssertOK() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The volume should be created automatically to fix #262
Can be another PR, though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did both @AkihiroSuda
25d8211
to
530f3c1
Compare
pkg/mountutil/mountutil.go
Outdated
@@ -67,7 +68,14 @@ func ProcessFlagV(s string, volStore volumestore.VolumeStore) (*Processed, error | |||
// assume src is a volume name | |||
vol, err := volStore.Get(src) | |||
if err != nil { | |||
return nil, err | |||
if strings.Contains(err.Error(), errdefs.ErrNotFound.Error()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use errors.Is
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AkihiroSuda done
e8d8a66
to
e458a63
Compare
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
e458a63
to
e986355
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
copying up initial contents of the mount point directory when using
-v
flagautomatically create not found volumes
fixing #262
Signed-off-by: fahed dorgaa fahed.dorgaa@gmail.com