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/msdosfs/msdosfs_vfsops.c | |
parent | 4e405ed59128896fd6c48d7705e2f10248f80c7c (diff) |
Change errno cause by mounting invalid filesystems from EINVAL to EFTYPE.
Diffstat (limited to 'sys/msdosfs/msdosfs_vfsops.c')
-rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index 62423aa7e6e..b77c0e9a93e 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vfsops.c,v 1.6 1997/03/02 18:01:59 millert Exp $ */ +/* $OpenBSD: msdosfs_vfsops.c,v 1.7 1997/06/20 14:04:30 kstailey Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.44 1996/12/22 10:10:32 cgd Exp $ */ /*- @@ -201,7 +201,7 @@ msdosfs_mount(mp, path, data, ndp, p) error = msdosfs_mountfs(devvp, mp, p, &args); else { if (devvp != pmp->pm_devvp) - error = EINVAL; /* needs translation */ + error = EINVAL; /* XXX needs translation */ else vrele(devvp); } @@ -308,7 +308,7 @@ msdosfs_mountfs(devvp, mp, p, argp) dtype = dpart.disklab->d_type; bsize = dpart.disklab->d_secsize; if (bsize != 512 || (dtype!=DTYPE_FLOPPY && tmp!=FS_MSDOS)) { - error = EINVAL; + error = EFTYPE; goto error_exit; } } @@ -326,7 +326,7 @@ msdosfs_mountfs(devvp, mp, p, argp) #ifdef MSDOSFS_CHECKSIG if (!(argp->flags & MSDOSFSMNT_GEMDOSFS) && (bsp->bs50.bsBootSectSig != BOOTSIG)) { - error = EINVAL; + error = EFTYPE; goto error_exit; } #endif @@ -355,7 +355,7 @@ msdosfs_mountfs(devvp, mp, p, argp) /* XXX - We should probably check more values here */ if (!pmp->pm_BytesPerSec || !SecPerClust || pmp->pm_Heads > 255 || pmp->pm_SecPerTrack > 63) { - error = EINVAL; + error = EFTYPE; goto error_exit; } } @@ -383,7 +383,7 @@ msdosfs_mountfs(devvp, mp, p, argp) || (pmp->pm_HugeSectors * (pmp->pm_BytesPerSec / bsize) > dpart.part->p_size) ) { - error = EINVAL; + error = EFTYPE; goto error_exit; } /* @@ -454,7 +454,7 @@ msdosfs_mountfs(devvp, mp, p, argp) * must be a power of 2 */ if (pmp->pm_bpcluster ^ (1 << pmp->pm_cnshift)) { - error = EINVAL; + error = EFTYPE; goto error_exit; } |