zfsonlinux/zfs — Issue #526: zfs mount is not namespace aware
Author: akorn
Created: 2012-01-10 01:00:15+00:00
State: open

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.

```
root@jayhawk / # mountpoint /srv
/srv is a mountpoint
root@jayhawk / # vnamespace -i 0 -e 78 -- /bin/zsh
# We're in a different mount namespace now:
root@jayhawk / # mountpoint /srv
/srv is not a mountpoint
root@jayhawk / # zfs mount tank/srv
cannot mount 'tank/srv': filesystem already mounted
root@jayhawk / # grep 'tank/srv /' /proc/mounts
root@jayhawk / #
```

"zfs mount tank/srv" should have succeeded, because tank/srv is only mounted in the default namespace, but not this one.

Andras