]> git.proxmox.com Git - mirror_zfs.git/commit
Disable umount.zfs helper
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 16 Dec 2010 20:56:10 +0000 (12:56 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 28 Jan 2011 20:47:57 +0000 (12:47 -0800)
commit95c4cae39fd77b5b00810eb976c9a6462d86ccd4
tree414d824fdf2f50b0f63bae1e7af61f597fd7fbea
parent3b8cfee8af1d966eea75389e2a2e53a5a8dca600
Disable umount.zfs helper

For the moment, the only advantage in registering a umount helper
would be to automatically unshare a zfs filesystem.  Since under
Linux this would be unexpected (but nice) behavior there is no
harm in disabling it.

This is desirable because the 'zfs unmount' path invokes the system
umount.  This is done to ensure correct mtab locking but has the
side effect that the umount.zfs helper would be called if it exists.
By default this helper calls back in to zfs to do the unmount on
Solaris which we don't want under Linux.

Once libmount is available and we have a safe way to correctly
lock and update the /etc/mtab file we can reconsider the need
for a umount helper.  Using libmount is the prefered solution.
cmd/zfs/zfs_main.c