From owner-freebsd-bugs Tue Sep 26 21:30:05 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA12529 for bugs-outgoing; Tue, 26 Sep 1995 21:30:05 -0700 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA12523 ; Tue, 26 Sep 1995 21:30:03 -0700 Resent-Date: Tue, 26 Sep 1995 21:30:03 -0700 Resent-Message-Id: <199509270430.VAA12523@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, smpatel@wam.umd.edu Received: from xi.dorm.umd.edu (xi.dorm.umd.edu [129.2.152.45]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id VAA12399 for ; Tue, 26 Sep 1995 21:23:15 -0700 Received: (from smpatel@localhost) by xi.dorm.umd.edu (8.6.11/8.6.9) id AAA00560; Wed, 27 Sep 1995 00:23:06 -0400 Message-Id: <199509270423.AAA00560@xi.dorm.umd.edu> Date: Wed, 27 Sep 1995 00:23:06 -0400 From: smpatel@wam.umd.edu Reply-To: smpatel@wam.umd.edu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/742: syslog errors accessing Mac hard disks [patch] Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 742 >Category: kern >Synopsis: syslog errors accessing Mac hard disks [patch] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 26 21:30:01 PDT 1995 >Last-Modified: >Originator: Sujal Patel >Organization: >Release: FreeBSD 2.0-BUILT-19950628 i386 >Environment: >Description: Every access to Mac hard disks causes errors because the partition table is not valid. It gets a little ugly after a lot of accesses :) >How-To-Repeat: if /dev/sd2 is a Mac disk: more < /dev/sd2 >Fix: Patch to detect and ignore Mac disks is attached (/usr/src/sys/i386/isa): --- diskslice_machdep.c.old Tue Sep 12 04:46:57 1995 +++ diskslice_machdep.c Tue Sep 26 23:58:32 1995 @@ -208,6 +208,12 @@ cp = bp->b_un.b_addr; sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART, partname); + /* Ignore Mac disks */ + if (cp[0] == 0x45 && cp[1] == 0x52 && + (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA)) { + error = EINVAL; + goto done; + } if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) { printf("%s: invalid primary partition table: no magic\n", sname); >Audit-Trail: >Unformatted: