]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Allow fake mounts to succeed on non-legacy filesystems.
authorWill Rouesnel <w.rouesnel@gmail.com>
Thu, 27 Dec 2012 14:44:16 +0000 (01:44 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 7 Jan 2013 19:30:27 +0000 (11:30 -0800)
commit462ee8e3f3f1e48c857d070fa5abaf4a72246344
tree53c7b7396d2fae8dfbe640d78f3273cefcc516c2
parent37f000c5aa76613e644cf3e5b1ec7bd2df6f7451
Allow fake mounts to succeed on non-legacy filesystems.

mountall in Debian depends on being able to pass the -f parameter to
mount, which specifies a fake mount and just updates the mtab. Currently
mount.zfs will fail such a request if it is not passed with -o zfsutil.

This patch allows a fake mount on a non-legacy filesystem to succeed in
the same manner as a -o remount does, thus enabling mountall to work
correctly.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1167
cmd/mount_zfs/mount_zfs.c