Date: Fri, 13 Jul 2001 09:48:56 -0700 (PDT) From: Joerg Wunsch <joerg@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/i386/fdisk fdisk.8 fdisk.c Message-ID: <200107131648.f6DGmua31907@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107131648.f6DGmua31907>
