From: Brian Behlendorf Date: Wed, 9 Jan 2013 19:56:37 +0000 (-0800) Subject: Report realpath() canonicalization error X-Git-Tag: debian/0.7.9-2~340^2~12 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=87bdc45ccbf6f1d57a278c2026e60fc5f3af7598;p=mirror_zfs-debian.git 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 --- diff --git a/cmd/mount_zfs/mount_zfs.c b/cmd/mount_zfs/mount_zfs.c index 9a82a2b1..cd273144 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); }