summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-04-05 13:10:11 +0000
committerache <ache@FreeBSD.org>1998-04-05 13:10:11 +0000
commitcf4f0083bb799d8dcf25750600e78fc49ed280d7 (patch)
treeda45326d8758aba9db35940868aeb9659ad4678e /sys/msdosfs
parent2fdb617aeea32dfd81802679bf464f2830001427 (diff)
downloadFreeBSD-src-cf4f0083bb799d8dcf25750600e78fc49ed280d7.zip
FreeBSD-src-cf4f0083bb799d8dcf25750600e78fc49ed280d7.tar.gz
Print explanation diagnostics when mount is impossible
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Diffstat (limited to 'sys/msdosfs')
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index c7fe669..6b278ed 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;
OpenPOWER on IntegriCloud