From owner-freebsd-hackers Wed Feb 23 13:27:55 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id B0DB037BA0E for ; Wed, 23 Feb 2000 13:27:47 -0800 (PST) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id NAA96202 for freebsd-hackers@freebsd.org; Wed, 23 Feb 2000 13:27:44 -0800 (PST) From: Archie Cobbs Message-Id: <200002232127.NAA96202@bubba.whistle.com> Subject: disklabel warning To: freebsd-hackers@freebsd.org Date: Wed, 23 Feb 2000 13:27:44 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG We had a situation yesterday where someone had written an incorrect disklabel, and one partition was overlapping the swap partition, with the predictably disasterous results. It seems like 'mount' (either the program or in the kernel) could do a quick disklabel sanity check before mounting a partition and give a warning or error if the thing you're about to mount overlaps something already mounted (or swapon'd). How hard would this be to do? Where would be the right place in the code to do it? -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message