Print mount/umount errors
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 7 Mar 2011 18:10:20 +0000 (10:10 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 9 Mar 2011 23:26:48 +0000 (15:26 -0800)
commit9ac97c2a939aef0f9899244920007c605387949a
treec6750083fbdebd56a657c8ce7e72f4ffc8b3bf96
parentd53368f6755ff67342f68e2e536c4157409fd047
Print mount/umount errors

Because we are dependent of the system mount/umount utilities to
ensure correct mtab locking, we should not suppress their error
output.  During a successful mount/umount they will be silent,
but during a failure the error message they print is the only sure
way to know why a mount failed.  This is because the (u)mount(8)
return code does not contain the result of the system call issued.
The only way to clearly idenify why thing failed is to rely on
the error message printed by the tool.

Longer term once libmount is available we can issue the mount/umount
system calls within the tool and still be ensured correct mtab locking.

Closed #107
include/libzfs.h
lib/libzfs/libzfs_mount.c
lib/libzfs/libzfs_util.c