Date: Wed, 27 Sep 1995 00:23:06 -0400 From: smpatel@wam.umd.edu To: FreeBSD-gnats-submit@freebsd.org Subject: kern/742: syslog errors accessing Mac hard disks [patch] Message-ID: <199509270423.AAA00560@xi.dorm.umd.edu> Resent-Message-ID: <199509270430.VAA12523@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509270423.AAA00560>