summaryrefslogtreecommitdiff
path: root/sbin/fdisk/cmd.c
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2000-04-18 22:40:16 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2000-04-18 22:40:16 +0000
commit22e40391ab28576c053e63b2d852fa85d8cd90bc (patch)
tree49d9a6978db7fa7b94cd778cda17b901325e5fc4 /sbin/fdisk/cmd.c
parent333ec701ac3e7a013ec330538d23d0b2e6ce86e7 (diff)
Favor BIOS geometry over physical. This should fix MANY problems with
hard drives >8G sharing partitions with other operating systems. Also, support extended partition type 0x0F, which is quite common now.
Diffstat (limited to 'sbin/fdisk/cmd.c')
-rw-r--r--sbin/fdisk/cmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/fdisk/cmd.c b/sbin/fdisk/cmd.c
index 418b65285c3..ad799fe4677 100644
--- a/sbin/fdisk/cmd.c
+++ b/sbin/fdisk/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.24 2000/02/04 18:09:36 kjell Exp $ */
+/* $OpenBSD: cmd.c,v 1.25 2000/04/18 22:40:15 kjell Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -213,7 +213,8 @@ Xselect(cmd, disk, mbr, tt, offset)
off = mbr->part[pn].bs;
/* Sanity checks */
- if (mbr->part[pn].id != DOSPTYP_EXTEND) {
+ if ((mbr->part[pn].id != DOSPTYP_EXTEND) &&
+ (mbr->part[pn].id != DOSPTYP_EXTENDL)) {
printf("Partition %d is not an extended partition.\n", pn);
return (CMD_CONT);
}