From 87bdc45ccbf6f1d57a278c2026e60fc5f3af7598 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 9 Jan 2013 11:56:37 -0800 Subject: Report realpath() canonicalization error Rather than just reporting the failure include the passed mount point and error number. Signed-off-by: Brian Behlendorf Closes #1153 --- cmd/mount_zfs/mount_zfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd') 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); } -- cgit v1.2.3