summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1996-12-11 16:58:01 +0000
committerkato <kato@FreeBSD.org>1996-12-11 16:58:01 +0000
commit35458b6b2f1e7ac5037c378f8be1c43db030ff3b (patch)
treefe266e4f6e8b7408ec86774225ff4edcc305270d /sys/pc98
parenteb78650b9d6fe7e6fe4d5f5cca00fdb41072f2ee (diff)
downloadFreeBSD-src-35458b6b2f1e7ac5037c378f8be1c43db030ff3b.zip
FreeBSD-src-35458b6b2f1e7ac5037c378f8be1c43db030ff3b.tar.gz
Sync with sys/i386/boot/biosboot/disk.c revision 1.23.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/boot/biosboot/disk.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/pc98/boot/biosboot/disk.c b/sys/pc98/boot/biosboot/disk.c
index 2f415ca..ddc3b2a 100644
--- a/sys/pc98/boot/biosboot/disk.c
+++ b/sys/pc98/boot/biosboot/disk.c
@@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, Revision 2.2 92/04/04 11:35:49 rpd
- * $Id: disk.c,v 1.4 1996/10/09 21:45:26 asami Exp $
+ * $Id: disk.c,v 1.5 1996/10/23 07:24:31 asami Exp $
*/
/*
@@ -133,7 +133,7 @@ devopen(void)
#endif /* PC98 */
#endif EMBEDDED_DISKLABEL
if (dl->d_magic != DISKMAGIC) {
- printf("bad disklabel");
+ printf("bad disklabel\n");
return 1;
}
if( (maj == 4) || (maj == 0) || (maj == 1))
@@ -152,8 +152,12 @@ devopen(void)
dl->d_partitions[2].p_offset + sector;
#ifndef PC98
- /* This is a good idea for all disks */
bsize = dl->d_partitions[part].p_size;
+ if (bsize == 0) {
+ printf("empty partition\n");
+ return 1;
+ }
+
#endif
#ifdef DO_BAD144
OpenPOWER on IntegriCloud