diff options
author | slashdd <[email protected]> | 2016-09-20 13:07:58 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-09-20 10:07:58 -0700 |
commit | 792517389fad5c495a2738b61c2e9c65dedaaa9a (patch) | |
tree | 5eef2ac0ecc1db47b3f11ec4ba12a97b6427e1b7 /lib/libspl/include/sys | |
parent | 25e2ab16be74cb37934e6736a1dc10fd50a00c56 (diff) |
Change /etc/mtab to /proc/self/mounts
Fix misleading error message:
"The /dev/zfs device is missing and must be created.", if /etc/mtab is missing.
Reviewed-by: Richard Laager <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Eric Desrochers <[email protected]>
Closes #4680
Closes #5029
Diffstat (limited to 'lib/libspl/include/sys')
-rw-r--r-- | lib/libspl/include/sys/mnttab.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libspl/include/sys/mnttab.h b/lib/libspl/include/sys/mnttab.h index 21d89658c..026a8fa7b 100644 --- a/lib/libspl/include/sys/mnttab.h +++ b/lib/libspl/include/sys/mnttab.h @@ -38,7 +38,7 @@ #undef MNTTAB #endif /* MNTTAB */ -#define MNTTAB "/etc/mtab" +#define MNTTAB "/proc/self/mounts" #define MNT_LINE_MAX 4096 #define MNT_TOOLONG 1 /* entry exceeds MNT_LINE_MAX */ |