summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1998-04-05 13:10:11 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1998-04-05 13:10:11 +0000
commitaaf0bb1961b84e1c72cb2440797fed1ffb103437 (patch)
tree7f74a719c59c420aeae9bbf5c31d4be2ecb950a8
parent5704ba6a06d36242c8f6bbd10a29fa6df6f4cc78 (diff)
Notes
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c6
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index c7fe6696b4b1..6b278ed70ade 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vfsops.c,v 1.30 1998/03/08 09:57:48 julian Exp $ */
+/* $Id: msdosfs_vfsops.c,v 1.31 1998/03/20 02:33:40 kato Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
/*-
@@ -459,6 +459,7 @@ mountmsdosfs(devvp, mp, p, argp)
|| bsp->bs50.bsBootSectSig1 != BOOTSIG1) {
#endif
error = EINVAL;
+ printf("mountmsdosfs(): bad signature\n");
goto error_exit;
}
#ifndef __FreeBSD__
@@ -497,6 +498,7 @@ mountmsdosfs(devvp, mp, p, argp)
|| !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 63) {
#endif
error = EINVAL;
+ printf("mountmsdosfs(): bad bpb\n");
goto error_exit;
}
#ifndef __FreeBSD__
@@ -517,6 +519,7 @@ mountmsdosfs(devvp, mp, p, argp)
* msdosfs_readdir)
*/
error = EINVAL;
+ printf("mountmsdosfs(): disk too big, sorry\n");
goto error_exit;
}
@@ -527,6 +530,7 @@ mountmsdosfs(devvp, mp, p, argp)
|| pmp->pm_FATsecs
|| getushort(b710->bpbFSVers)) {
error = EINVAL;
+ printf("mountmsdosfs(): bad FAT32 filesystem\n");
goto error_exit;
}
pmp->pm_fatmask = FAT32_MASK;
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index c7fe6696b4b1..6b278ed70ade 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vfsops.c,v 1.30 1998/03/08 09:57:48 julian Exp $ */
+/* $Id: msdosfs_vfsops.c,v 1.31 1998/03/20 02:33:40 kato Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
/*-
@@ -459,6 +459,7 @@ mountmsdosfs(devvp, mp, p, argp)
|| bsp->bs50.bsBootSectSig1 != BOOTSIG1) {
#endif
error = EINVAL;
+ printf("mountmsdosfs(): bad signature\n");
goto error_exit;
}
#ifndef __FreeBSD__
@@ -497,6 +498,7 @@ mountmsdosfs(devvp, mp, p, argp)
|| !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 63) {
#endif
error = EINVAL;
+ printf("mountmsdosfs(): bad bpb\n");
goto error_exit;
}
#ifndef __FreeBSD__
@@ -517,6 +519,7 @@ mountmsdosfs(devvp, mp, p, argp)
* msdosfs_readdir)
*/
error = EINVAL;
+ printf("mountmsdosfs(): disk too big, sorry\n");
goto error_exit;
}
@@ -527,6 +530,7 @@ mountmsdosfs(devvp, mp, p, argp)
|| pmp->pm_FATsecs
|| getushort(b710->bpbFSVers)) {
error = EINVAL;
+ printf("mountmsdosfs(): bad FAT32 filesystem\n");
goto error_exit;
}
pmp->pm_fatmask = FAT32_MASK;