Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/disklabel Disable COMPAT_386BSD_MBRPART. The code is st...



details:   https://anonhg.NetBSD.org/src/rev/f2ce0351f752
branches:  trunk
changeset: 761989:f2ce0351f752
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Feb 12 22:23:01 2011 +0000

description:
Disable COMPAT_386BSD_MBRPART. The code is still here if anyone needs it
for some reason. (But I have no idea why that would be -- if you have one
of these really ancient partitions and you're about to run disklabel, you
can easily run fdisk first and change the partition type to NetBSD.)

As it stands, the code will munch FreeBSD installs under some
circumstances, which is really not acceptable behavior.

The code, along with the kernel support that's been disabled by
default for several years, and some related but less dangerous code in
sysinst, should prboably be removed entirely after -6 is branched.

Discussed on tech-kern and tech-userlevel; closes PR 44496.

This is also almost certainly the cause of PR 42521 and PR 38841.

diffstat:

 sbin/disklabel/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 2096ca2aa103 -r f2ce0351f752 sbin/disklabel/Makefile
--- a/sbin/disklabel/Makefile   Sat Feb 12 22:07:56 2011 +0000
+++ b/sbin/disklabel/Makefile   Sat Feb 12 22:23:01 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.66 2009/12/13 05:01:32 nakayama Exp $
+#      $NetBSD: Makefile,v 1.67 2011/02/12 22:23:01 dholland Exp $
 #      @(#)Makefile    8.2 (Berkeley) 3/17/94
 
 PROG=  disklabel
@@ -40,8 +40,8 @@
     )
 # use MBR partition info
 CPPFLAGS+= -DUSE_MBR
-# recognize old MBR partition ID for a while
-CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
+# do not recognize old MBR partition ID any more
+#CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
 .endif
 
 .if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")



Home | Main Index | Thread Index | Old Index