Enable mount.zfs helper
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Dec 2010 00:40:11 +0000 (16:40 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 28 Jan 2011 20:47:57 +0000 (12:47 -0800)
commit3b8cfee8af1d966eea75389e2a2e53a5a8dca600
tree041d87026a2aee4540e81113df4bc8b254b5fc9a
parentb3259b6a2ba29595dc5f2df0f6def8c7fc6bcb98
Enable mount.zfs helper

While not strictly required to mount a zfs filesystem using a
mount helper has certain advantages.

First, we need it if we want to honor the mount behavior as found
on Solaris.  As part of the mount we need to validate that the
dataset has the legacy mount property set if we are using 'mount'
instead of 'zfs mount'.

Secondly, by using a mount helper we can automatically load the
zpl kernel module.  This way you can just issue a 'mount' or
'zfs mount' and it will just work.

Finally, it gives us common hook in user space to add any zfs
specific mount options we might want.  At the moment we don't
have any but now the infrastructure is at least in place.
cmd/zfs/zfs_main.c