From owner-cvs-all Fri Jul 13 9:49: 2 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D5A8337B401; Fri, 13 Jul 2001 09:48:56 -0700 (PDT) (envelope-from joerg@FreeBSD.org) Received: (from joerg@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6DGmua31907; Fri, 13 Jul 2001 09:48:56 -0700 (PDT) (envelope-from joerg) Message-Id: <200107131648.f6DGmua31907@freefall.freebsd.org> From: Joerg Wunsch Date: Fri, 13 Jul 2001 09:48:56 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/i386/fdisk fdisk.8 fdisk.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG joerg 2001/07/13 09:48:56 PDT Modified files: sbin/i386/fdisk fdisk.8 fdisk.c Log: After some (long-standing ;-) critics from Bruce, throw away the old device search code i introduce nearly six years ago in rev 1.8. Bruce suggested to rather use the device name of the root filesystem instead which is certainly the most sensible default. Since there are many possible cases for a root filesystem name (device with and without slices, consider /dev/vinum/root even though it currently could not work as such), there's some heuristic using a RE in order to find out the canonical device name from the mounted name. This probably won't quite fit for a NFS root (can't test that right now), but then, there's hard to find a good default for those machines anyway. ;-) This unbreaks the functionality of rev 1.2 i once broke in 1.8. :) Revision Changes Path 1.28 +6 -10 src/sbin/i386/fdisk/fdisk.8 1.50 +61 -31 src/sbin/i386/fdisk/fdisk.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message