From owner-freebsd-bugs Sun Aug 9 21:00:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA06338 for freebsd-bugs-outgoing; Sun, 9 Aug 1998 21:00:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA06299 for ; Sun, 9 Aug 1998 21:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id VAA02645; Sun, 9 Aug 1998 21:00:01 -0700 (PDT) Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id UAA05918 for ; Sun, 9 Aug 1998 20:55:37 -0700 (PDT) (envelope-from jmattson@sonic.net) Received: (qmail 17338 invoked from network); 10 Aug 1998 03:55:40 -0000 Received: from unknown (HELO sub.sonic.net) (208.201.224.8) by marine.sonic.net with SMTP; 10 Aug 1998 03:55:40 -0000 Received: from denali.campbell.ca.us (d37.rpm1.sonic.net [209.133.37.37]) by sub.sonic.net (8.8.8/8.8.5) with ESMTP id UAA00532 for ; Sun, 9 Aug 1998 20:55:12 -0700 Received: (from jmattson@localhost) by denali.campbell.ca.us (8.8.8/8.8.7/denali.980419) id UAA00473; Sun, 9 Aug 1998 20:55:05 -0700 (PDT) (envelope-from jmattson) Message-Id: <199808100355.UAA00473@denali.campbell.ca.us> Date: Sun, 9 Aug 1998 20:55:05 -0700 (PDT) From: Jim Mattson Reply-To: jmattson@sonic.net To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: i386/7549: Logical DOS volumes not recognized in ExtendedX partitions Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7549 >Category: i386 >Synopsis: Logical DOS volumes not recognized in ExtendedX partitions >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Aug 9 21:00:01 PDT 1998 >Last-Modified: >Originator: Jim Mattson >Organization: >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: Windows 9X Extended DOS partitions for large disks (sysid 15) >Description: The machine dependent disk slice manager does not recognize DOS partition type 15 (Extended DOS, LBA) as a container for DOS logical volumes, so the appropriate slices (e.g. sd1s5) are not initialized. Note: This is a duplicate of bin/4120. >How-To-Repeat: Try anything that accesses a logical volume in the ExtendedX partition. For example, dd if=/dev/sd1s5 of=/dev/null >Fix: Look for sysid 15 as well as sysid 5 when looking for extended DOS partitions in diskslice_machdep.c. *** diskslice_machdep.c 1998/08/10 03:08:48 1.1 --- diskslice_machdep.c 1998/08/10 03:15:04 *************** *** 44,49 **** --- 44,50 ---- #include #include #define DOSPTYP_EXTENDED 5 + #define DOSPTYP_EXTENDEDX 15 #define DOSPTYP_ONTRACK 84 #include #include *************** *** 344,350 **** /* Handle extended partitions. */ sp -= NDOSPART; for (dospart = 0; dospart < NDOSPART; dospart++, sp++) ! if (sp->ds_type == DOSPTYP_EXTENDED) extended(dname, bp->b_dev, strat, lp, ssp, sp->ds_offset, sp->ds_size, sp->ds_offset, max_nsectors, max_ntracks, mbr_offset); --- 345,352 ---- /* Handle extended partitions. */ sp -= NDOSPART; for (dospart = 0; dospart < NDOSPART; dospart++, sp++) ! if (sp->ds_type == DOSPTYP_EXTENDED || ! sp->ds_type == DOSPTYP_EXTENDEDX) extended(dname, bp->b_dev, strat, lp, ssp, sp->ds_offset, sp->ds_size, sp->ds_offset, max_nsectors, max_ntracks, mbr_offset); *************** *** 416,422 **** if (dp->dp_scyl == 0 && dp->dp_shd == 0 && dp->dp_ssect == 0 && dp->dp_start == 0 && dp->dp_size == 0) continue; ! if (dp->dp_typ == DOSPTYP_EXTENDED) { char buf[32]; sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, --- 418,425 ---- if (dp->dp_scyl == 0 && dp->dp_shd == 0 && dp->dp_ssect == 0 && dp->dp_start == 0 && dp->dp_size == 0) continue; ! if (dp->dp_typ == DOSPTYP_EXTENDED || ! dp->dp_typ == DOSPTYP_EXTENDEDX) { char buf[32]; sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message