git://git.camperquake.de
/
zfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
761394b
)
Report realpath() canonicalization error
author
Brian Behlendorf
<behlendorf1@llnl.gov>
Wed, 9 Jan 2013 19:56:37 +0000
(11:56 -0800)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/cmd/mount_zfs/mount_zfs.c
b/cmd/mount_zfs/mount_zfs.c
index
9a82a2b
..
cd27314
100644
(file)
--- 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);
}