Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Conversation

@miaoyq
Copy link
Member

@miaoyq miaoyq commented Sep 27, 2017

Signed-off-by: Yanqiang Miao [email protected]

Address this comment.
/cc @Random-Liu

@miaoyq
Copy link
Member Author

miaoyq commented Sep 27, 2017

There is something wrong in my local environment, make test-cri always failed, see #298
So I have not executed make test-cri locally that cause the CI failed, I will debug this soon.

return false
}

//TODO: Replace with `mount.Lookup()`in containerd after #257 is marged
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we still need this loop?
LookupMount checks device id directly: https://github.com/containerd/containerd/blob/master/mount/lookup_unix.go

}

path := source
for {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Random-Liu Do you mean this loop?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems not necessary, I will remove this loop, Thanks :-)

@Random-Liu
Copy link
Member

Random-Liu commented Sep 28, 2017 via email

@Random-Liu Random-Liu added this to the v1.0.0-alpha.1 milestone Sep 28, 2017
@miaoyq
Copy link
Member Author

miaoyq commented Oct 11, 2017

@Random-Liu Have updated the code based on #342, PTAL

func ensureShared(path string, mountInfos []*mount.Info) error {
sourceMount, optionalOpts, err := getSourceMount(path, mountInfos)
func ensureShared(path string, lookupMount func(string) (mount.Info, error)) error {
sourceMount, optionalOpts, err := getSourceMount(path, lookupMount)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need getSourceMount? I think we could just call lookupMount directly here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

"github.com/containerd/containerd/contrib/apparmor"
"github.com/containerd/containerd/contrib/seccomp"
"github.com/docker/docker/pkg/mount"
//"github.com/docker/docker/pkg/mount"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the comment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@Random-Liu
Copy link
Member

Random-Liu commented Oct 11, 2017

@miaoyq LGTM overall other than the comments.

@Random-Liu
Copy link
Member

/lgtm

@Random-Liu Random-Liu merged commit 885024f into containerd:master Oct 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants