aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-01-09 11:56:37 -0800
committerBrian Behlendorf <[email protected]>2013-01-09 16:54:58 -0800
commit87bdc45ccbf6f1d57a278c2026e60fc5f3af7598 (patch)
tree94f3c11428dda1a22168a28a9b3bbbc823499ba4 /cmd
parent761394b3af152895ac68a970a91a4f8a917c547b (diff)
Report realpath() canonicalization error
Rather than just reporting the failure include the passed mount point and error number. Signed-off-by: Brian Behlendorf <[email protected]> Closes #1153
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mount_zfs/mount_zfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/mount_zfs/mount_zfs.c b/cmd/mount_zfs/mount_zfs.c
index 9a82a2b17..cd2731446 100644
--- a/cmd/mount_zfs/mount_zfs.c
+++ b/cmd/mount_zfs/mount_zfs.c
@@ -372,7 +372,8 @@ main(int argc, char **argv)
/* canonicalize the mount point */
if (realpath(argv[1], mntpoint) == NULL) {
(void) fprintf(stderr, gettext("filesystem '%s' cannot be "
- "mounted due to a canonicalization failure.\n"), dataset);
+ "mounted at '%s' due to canonicalization error %d.\n"),
+ dataset, argv[1], errno);
return (MOUNT_SYSERR);
}