summaryrefslogtreecommitdiff
path: root/sbin/mount_ext2fs/mount_ext2fs.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-08-20 05:10:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-08-20 05:10:29 +0000
commit4dbea4d156fdd79e17137250bcd9a12c9ad09c3b (patch)
tree4d8cbcbf5eac0e6e596e4b51ab324244fcdc874b /sbin/mount_ext2fs/mount_ext2fs.c
parent02165d4ef16cba14b8092704510f78d0c8b62059 (diff)
Print "Filesystem not supported by kernel" not "Operation not supported by
device" (EOPNOTSUPP) so the real problem is obvious. Idea from Peter Seebach <seebs@taniemarie.solon.com>.
Diffstat (limited to 'sbin/mount_ext2fs/mount_ext2fs.c')
-rw-r--r--sbin/mount_ext2fs/mount_ext2fs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/mount_ext2fs/mount_ext2fs.c b/sbin/mount_ext2fs/mount_ext2fs.c
index 9167520cfb5..7af72de2ce9 100644
--- a/sbin/mount_ext2fs/mount_ext2fs.c
+++ b/sbin/mount_ext2fs/mount_ext2fs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_ext2fs.c,v 1.5 1997/06/20 14:40:00 kstailey Exp $ */
+/* $OpenBSD: mount_ext2fs.c,v 1.6 1997/08/20 05:10:19 millert Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mount_ufs.c 8.2 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_ext2fs.c,v 1.5 1997/06/20 14:40:00 kstailey Exp $";
+static char rcsid[] = "$OpenBSD: mount_ext2fs.c,v 1.6 1997/08/20 05:10:19 millert Exp $";
#endif
#endif /* not lint */
@@ -114,6 +114,9 @@ main(argc, argv)
errcause =
"specified device does not match mounted device";
break;
+ case EOPNOTSUPP:
+ errcause = "filesystem not supported by kernel";
+ break;
default:
errcause = strerror(errno);
break;