summaryrefslogtreecommitdiff
path: root/sbin/mount_ffs
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_ffs
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_ffs')
-rw-r--r--sbin/mount_ffs/mount_ffs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/mount_ffs/mount_ffs.c b/sbin/mount_ffs/mount_ffs.c
index ff71634694f..66a93fc2720 100644
--- a/sbin/mount_ffs/mount_ffs.c
+++ b/sbin/mount_ffs/mount_ffs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_ffs.c,v 1.6 1997/06/20 14:07:46 kstailey Exp $ */
+/* $OpenBSD: mount_ffs.c,v 1.7 1997/08/20 05:10:21 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_ffs.c,v 1.6 1997/06/20 14:07:46 kstailey Exp $";
+static char rcsid[] = "$OpenBSD: mount_ffs.c,v 1.7 1997/08/20 05:10:21 millert Exp $";
#endif
#endif /* not lint */
@@ -117,6 +117,9 @@ main(argc, argv)
errcause =
"specified device does not match mounted device";
break;
+ case EINVAL:
+ errcause = "filesystem not supported by kernel";
+ break;
default:
errcause = strerror(errno);
break;