Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2019 00:22:28 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347948 - in head: sbin/fdisk sys/sys/disk
Message-ID:  <201905180022.x4I0MSPk090123@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Sat May 18 00:22:28 2019
New Revision: 347948
URL: https://svnweb.freebsd.org/changeset/base/347948

Log:
  Add DragonFly's partition number to fdisk(8) and diskmbr.h
  
  This change doesn't make any attempt to add support for these slices to the
  relevent GEOM classes.  Just register the number in fdisk and the canonical
  list of kernel macros (diskmbr.h).
  
  Obtained from:	DragonFlyBSD (794d80aa519b394b3174f20776a) (small subset of)

Modified:
  head/sbin/fdisk/fdisk.c
  head/sys/sys/disk/mbr.h

Modified: head/sbin/fdisk/fdisk.c
==============================================================================
--- head/sbin/fdisk/fdisk.c	Fri May 17 22:14:30 2019	(r347947)
+++ head/sbin/fdisk/fdisk.c	Sat May 18 00:22:28 2019	(r347948)
@@ -175,6 +175,7 @@ static const char *const part_types[256] = {
 	[0x63] = "System V/386 (such as ISC UNIX), GNU HURD or Mach",
 	[0x64] = "Novell Netware/286 2.xx",
 	[0x65] = "Novell Netware/386 3.xx",
+	[0x6C] = "DragonFlyBSD",
 	[0x70] = "DiskSecure Multi-Boot",
 	[0x75] = "PCIX",
 	[0x77] = "QNX4.x",

Modified: head/sys/sys/disk/mbr.h
==============================================================================
--- head/sys/sys/disk/mbr.h	Fri May 17 22:14:30 2019	(r347947)
+++ head/sys/sys/disk/mbr.h	Sat May 18 00:22:28 2019	(r347948)
@@ -50,6 +50,7 @@
 #define	DOSPTYP_EXTLBA	0x0f	/* DOS extended partition */
 #define	DOSPTYP_PPCBOOT	0x41	/* PReP/CHRP boot partition */
 #define	DOSPTYP_LDM	0x42	/* Win2k dynamic extended partition */
+#define	DOSPTYP_DFLYBSD	0x6c	/* DragonFlyBSD partition type */
 #define	DOSPTYP_LINSWP	0x82	/* Linux swap partition */
 #define	DOSPTYP_LINUX	0x83	/* Linux partition */
 #define	DOSPTYP_LINLVM	0x8e	/* Linux LVM partition */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905180022.x4I0MSPk090123>