# zfs get mountpoint share/home/ftp/zol
NAME PROPERTY VALUE SOURCE
share/home/ftp/zol mountpoint /mnt/share/home/ftp/zol inherited from share/home
# zfs mount -o mountpoint=/mnt/celia share/home/ftp/zol
filesystem 'share/home/ftp/zol' cannot be mounted due to invalid option 'mountpoint=/mnt/celia'.
Use the '-s' option to ignore the bad mount option.
cannot mount 'share/home/ftp/zol': Invalid argument
PS. Pool imported with -N -R /mnt/share. Setting mountpoint to the desired value and _then_ mounting it works.
This is v0.6.5.6.
# zfs mount -s -o mountpoint=/mnt/share share/home/ftp
invalid option 's'
usage:
mount
mount [-vO] [-o opts] <-a | filesystem>
For the property list, run: zfs set|get
For the delegated permission list, run: zfs allow|unallow
Looking at the manpage, I see:
Temporary Mount Point Properties
When a file system is mounted, either through mount(8) for legacy mounts or the zfs mount command for normal file systems, its mount options are
set according to its properties. The correlation between properties and mount options is as follows:
PROPERTY MOUNT OPTION
devices devices/nodevices
exec exec/noexec
readonly ro/rw
setuid setuid/nosetuid
xattr xattr/noxattr
atime atime/noatime
relatime relatime/norelatime
nbmand nbmand/nonbmand
So mountpoint isn't in there. But I think it's quite reasonable that it SHOULD be possible to use it.
same for 0.6.5.9, btw. And ditto - I'd like to have this.
until this exists: It seems possible to use
mount -t zfs -o zfsutil rpool/dataset /mntpoint
to mount the rpool/dataset dataset at /mntpoint
Most helpful comment
Looking at the manpage, I see:
So
mountpointisn't in there. But I think it's quite reasonable that it SHOULD be possible to use it.