-
Notifications
You must be signed in to change notification settings - Fork 144
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
runtimetest: add rootfs propagation test #511
runtimetest: add rootfs propagation test #511
Conversation
1569616
to
60e3524
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.
These tests don't seem to distinguish between slave
and private
.
cmd/runtimetest/main.go
Outdated
description: "rootfs propagation", | ||
}, | ||
{ | ||
test: validateRlimits, |
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.
Duplicate entry?
$ git grep -n validateRlimits origin/pr/511
origin/pr/511:cmd/runtimetest/main.go:271:func validateRlimits(spec *rspec.Spec) error {
origin/pr/511:cmd/runtimetest/main.go:803: test: validateRlimits,
origin/pr/511:cmd/runtimetest/main.go:850: test: validateRlimits,
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.
Oh, this is mistake, updated. Thanks.
} | ||
defer os.RemoveAll(targetDir) | ||
|
||
switch spec.Linux.RootfsPropagation { |
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 think we probably want a default
case that logs an “unrecognized linux.rootfsPropagation: …” warning.
60e3524
to
fd2cb1b
Compare
On 11/04/2017 12:36 PM, W. Trevor King wrote:
These tests don't seem to distinguish between |slave| and |private|.
Yes, I have to admit that we can't in this PR.
Because we can't get the mount source of rootfs.
So, we can just judge propagation by binding rootfs.
Unfortunately, we get the same behaviour with slave and private rootfs after binding them.
Maybe we can find a way and fix this in the future.
|
According to https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt, |
The 'share' and 'unbind' looks good to me, just need to rebase. |
fd2cb1b
to
7026311
Compare
Signed-off-by: Ma Shimiao <[email protected]>
Signed-off-by: Ma Shimiao [email protected]