Disable zfs /etc/mtab updates
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 21 Jul 2011 19:39:42 +0000 (12:39 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 Aug 2011 18:53:01 +0000 (11:53 -0700)
commitb740d602bdeca757180a7098be28701a7cde7fbd
treef39100d339d96dde5a688ff1329bdc2f15998006
parentddd052aa8311f846e3d3f7a9ddf1a21d317fb04a
Disable zfs /etc/mtab updates

Completely disable the zfs binary from attempting to directly update
/etc/mtab.  The Linux port relies entirely on the mount.zfs helper
to safely update /etc/mtab.  If we left the /etc/mtab updates to
the zfs binary then they could race with concurrent non-zfs mounts.
Routing everything through the system mount command ensures the
/etc/mtab updates are locked properly.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #329
cmd/zfs/zfs_main.c