]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
Report realpath() canonicalization error
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 9 Jan 2013 19:56:37 +0000 (11:56 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Jan 2013 00:54:58 +0000 (16:54 -0800)
Rather than just reporting the failure include the passed
mount point and error number.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1153

cmd/mount_zfs/mount_zfs.c

index 9a82a2b1703835c1c554758492858230e559aaa5..cd2731446684960954df7eeaa52eba55f5a6a617 100644 (file)
@@ -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);
        }