Print human readable error message for ENOENT
authorRichard Yao <ryao@cs.stonybrook.edu>
Tue, 3 Apr 2012 00:44:42 +0000 (20:44 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Apr 2012 17:24:34 +0000 (10:24 -0700)
commit847de12271af349bba07027dbcbc83aaa53b4b1a
tree8c41f6c5eeb952f5fb9a4bd905d692d6d416fb74
parentfc41c6402b46d928dcc0a07435da1716b3a33c7c
Print human readable error message for ENOENT

A cryptic error code is printed when mounting a legacy dataset to a
non-existent mountpoint. This patch changes this behavior to print
"mount point '%s' does not exist", which is similar to the error
message printed when mounting procfs.

The single quotes were added to be consistent with the existing EBUSY
error message, which is the only difference between this error message
and the one that is printed when the same condition occurs when mounting
procfs.

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