From owner-freebsd-bugs Sat Feb 26 0:10: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id DDB6637BF7F for ; Sat, 26 Feb 2000 00:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA73320; Sat, 26 Feb 2000 00:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9DF1537BF6D for ; Sat, 26 Feb 2000 00:04:41 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA73118; Sat, 26 Feb 2000 00:04:41 -0800 (PST) (envelope-from nobody@FreeBSD.org) Message-Id: <200002260804.AAA73118@freefall.freebsd.org> Date: Sat, 26 Feb 2000 00:04:41 -0800 (PST) From: eps@sirius.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/17003: dscheck() overzealously protects labels on non-BSD partitions Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17003 >Category: kern >Synopsis: dscheck() overzealously protects labels on non-BSD 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: Sat Feb 26 00:10:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Eric P. Scott >Release: i386/3.4-RELEASE >Organization: >Environment: >Description: On a drive using DOS partitioning, dscheck() prevents overwriting the first 1K of a partition that formerly held a UFS filesystem, even if the partition type is changed to something other than DOSPTYP_386BSD. >How-To-Repeat: dd if=/dev/zero of=/dev/rwd0s2 bs=512 count=1 >Fix: Ignore contents of non-BSD partitions. Don't even call readdisklabel(). Relevant files: diskslice_machdep.c subr_diskslice.c ufs_disksubr.c >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message