summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-20 14:04:34 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-20 14:04:34 +0000
commit60f9d77aeec2ee39bca2e22ab7208ee52f730278 (patch)
treecfecb0731d8e503c927e5c2ec083aec533f6ae5d /sys/ufs
parent4e405ed59128896fd6c48d7705e2f10248f80c7c (diff)
Change errno cause by mounting invalid filesystems from EINVAL to EFTYPE.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ext2fs/ext2fs_vfsops.c8
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c6
-rw-r--r--sys/ufs/lfs/lfs_vfsops.c6
3 files changed, 10 insertions, 10 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vfsops.c b/sys/ufs/ext2fs/ext2fs_vfsops.c
index 310b70c0ef8..a67e2790db4 100644
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_vfsops.c,v 1.3 1997/06/12 21:09:35 downsj Exp $ */
+/* $OpenBSD: ext2fs_vfsops.c,v 1.4 1997/06/20 14:04:31 kstailey Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.1 1997/06/11 09:34:07 bouyer Exp $ */
/*
@@ -308,7 +308,7 @@ ext2fs_mount(mp, path, data, ndp, p)
error = ext2fs_mountfs(devvp, mp, p);
else {
if (devvp != ump->um_devvp)
- error = EINVAL; /* needs translation */
+ error = EINVAL; /* XXX needs translation */
else
vrele(devvp);
}
@@ -534,7 +534,7 @@ ext2fs_mountfs(devvp, mp, p)
printf(" or wrong revision number: %x (expected %x for ext2 fs)\n",
fs->e2fs_rev, E2FS_REV);
#endif
- error = EINVAL; /* XXX needs translation */
+ error = EFTYPE;
goto out;
}
@@ -543,7 +543,7 @@ ext2fs_mountfs(devvp, mp, p)
printf("wrong block size: %d (expected <2 for ext2 fs)\n",
fs->e2fs_log_bsize);
#endif
- error = EINVAL; /* XXX needs translation */
+ error = EFTYPE;
goto out;
}
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index f29f5f09b94..b70f7b0db8d 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vfsops.c,v 1.8 1997/05/30 08:34:25 downsj Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.9 1997/06/20 14:04:32 kstailey Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -255,7 +255,7 @@ ffs_mount(mp, path, data, ndp, p)
error = ffs_mountfs(devvp, mp, p);
else {
if (devvp != ump->um_devvp)
- error = EINVAL; /* needs translation */
+ error = EINVAL; /* XXX needs translation */
else
vrele(devvp);
}
@@ -465,7 +465,7 @@ ffs_mountfs(devvp, mp, p)
fs = (struct fs *)bp->b_data;
if (fs->fs_magic != FS_MAGIC || fs->fs_bsize > MAXBSIZE ||
fs->fs_bsize < sizeof(struct fs)) {
- error = EINVAL; /* XXX needs translation */
+ error = EFTYPE; /* Inappropriate format */
goto out;
}
/* XXX updating 4.2 FFS superblocks trashes rotational layout tables */
diff --git a/sys/ufs/lfs/lfs_vfsops.c b/sys/ufs/lfs/lfs_vfsops.c
index d80b15272f4..01313a89a97 100644
--- a/sys/ufs/lfs/lfs_vfsops.c
+++ b/sys/ufs/lfs/lfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lfs_vfsops.c,v 1.7 1997/05/30 08:34:48 downsj Exp $ */
+/* $OpenBSD: lfs_vfsops.c,v 1.8 1997/06/20 14:04:33 kstailey Exp $ */
/* $NetBSD: lfs_vfsops.c,v 1.11 1996/03/25 12:53:35 pk Exp $ */
/*
@@ -181,7 +181,7 @@ lfs_mount(mp, path, data, ndp, p)
error = lfs_mountfs(devvp, mp, p); /* LFS */
else {
if (devvp != ump->um_devvp)
- error = EINVAL; /* needs translation */
+ error = EINVAL; /* XXX needs translation */
else
vrele(devvp);
}
@@ -270,7 +270,7 @@ lfs_mountfs(devvp, mp, p)
/* Check the basics. */
if (fs->lfs_magic != LFS_MAGIC || fs->lfs_bsize > MAXBSIZE ||
fs->lfs_bsize < sizeof(struct lfs)) {
- error = EINVAL; /* XXX needs translation */
+ error = EFTYPE;
goto out;
}