diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-06-20 14:04:34 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-06-20 14:04:34 +0000 |
commit | 60f9d77aeec2ee39bca2e22ab7208ee52f730278 (patch) | |
tree | cfecb0731d8e503c927e5c2ec083aec533f6ae5d /sys/ufs/ext2fs | |
parent | 4e405ed59128896fd6c48d7705e2f10248f80c7c (diff) |
Change errno cause by mounting invalid filesystems from EINVAL to EFTYPE.
Diffstat (limited to 'sys/ufs/ext2fs')
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_vfsops.c | 8 |
1 files changed, 4 insertions, 4 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; } |