-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
zfs mount is not namespace aware #526
Comments
The issue goes deeper (which, in retrospect, is kind of obvious): when a namespace is created as a copy of the host namespace, and a zfs dataset is unmounted there, it becomes unmounted in the host namespace too. |
Actually, this latter problem may have had to do with me using mount --make-shared on the affected tree. I'll try to confirm this later. |
Yes, the phantom umounting was caused by mount --make-shared. So the only problem with zfsonlinux seems to be that zfs mount(/unmount?) doesn't work correctly inside alternative mount namespaces. |
This would require doing #434 first. Then some of the code for making ZFS work in Solaris Zones could probably be used here. |
This should work in the current code, alternate namespaces are now supported. |
Update copy-builtin so it may be run multiple times against the kernel source tree. This change makes sed more discriminating to ensure spl/ only occurs once in core-y. Signed-off-by: Chip Parker <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#526
Hi,
I'm trying to use zfsonlinux with linux-vserver, which makes heavy use of namespaces (mount, ipc etc.).
zfs seems to lack namespace support entirely.
"zfs mount tank/srv" should have succeeded, because tank/srv is only mounted in the default namespace, but not this one.
Andras
The text was updated successfully, but these errors were encountered: