Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2018 15:44:15 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r339286 - in stable/11/sys: geom/part sys
Message-ID:  <201810101544.w9AFiFQs010772@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Oct 10 15:44:14 2018
New Revision: 339286
URL: https://svnweb.freebsd.org/changeset/base/339286

Log:
  MFC r333233: gpart: add fat32lba MBR partition type
  
  FAT32 partition with LBA addressing.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/11/sys/geom/part/g_part.c
  stable/11/sys/geom/part/g_part.h
  stable/11/sys/geom/part/g_part_ebr.c
  stable/11/sys/geom/part/g_part_ldm.c
  stable/11/sys/geom/part/g_part_mbr.c
  stable/11/sys/sys/diskmbr.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/geom/part/g_part.c
==============================================================================
--- stable/11/sys/geom/part/g_part.c	Wed Oct 10 15:38:33 2018	(r339285)
+++ stable/11/sys/geom/part/g_part.c	Wed Oct 10 15:44:14 2018	(r339286)
@@ -95,6 +95,7 @@ struct g_part_alias_list {
 	{ "efi", G_PART_ALIAS_EFI },
 	{ "fat16", G_PART_ALIAS_MS_FAT16 },
 	{ "fat32", G_PART_ALIAS_MS_FAT32 },
+	{ "fat32lba", G_PART_ALIAS_MS_FAT32LBA },
 	{ "freebsd", G_PART_ALIAS_FREEBSD },
 	{ "freebsd-boot", G_PART_ALIAS_FREEBSD_BOOT },
 	{ "freebsd-nandfs", G_PART_ALIAS_FREEBSD_NANDFS },

Modified: stable/11/sys/geom/part/g_part.h
==============================================================================
--- stable/11/sys/geom/part/g_part.h	Wed Oct 10 15:38:33 2018	(r339285)
+++ stable/11/sys/geom/part/g_part.h	Wed Oct 10 15:44:14 2018	(r339286)
@@ -75,6 +75,7 @@ enum g_part_alias {
 	G_PART_ALIAS_MS_BASIC_DATA,	/* A Microsoft Data part. entry. */
 	G_PART_ALIAS_MS_FAT16,		/* A Microsoft FAT16 partition entry. */
 	G_PART_ALIAS_MS_FAT32,		/* A Microsoft FAT32 partition entry. */
+	G_PART_ALIAS_MS_FAT32LBA,	/* A Microsoft FAT32 LBA partition entry */
 	G_PART_ALIAS_MS_LDM_DATA,	/* A Microsoft LDM Data part. entry. */
 	G_PART_ALIAS_MS_LDM_METADATA,	/* A Microsoft LDM Metadata entry. */
 	G_PART_ALIAS_MS_NTFS,		/* A Microsoft NTFS partition entry */

Modified: stable/11/sys/geom/part/g_part_ebr.c
==============================================================================
--- stable/11/sys/geom/part/g_part_ebr.c	Wed Oct 10 15:38:33 2018	(r339285)
+++ stable/11/sys/geom/part/g_part_ebr.c	Wed Oct 10 15:44:14 2018	(r339286)
@@ -135,6 +135,7 @@ static struct g_part_ebr_alias {
 	{ DOSPTYP_386BSD,	G_PART_ALIAS_FREEBSD },
 	{ DOSPTYP_NTFS,		G_PART_ALIAS_MS_NTFS },
 	{ DOSPTYP_FAT32,	G_PART_ALIAS_MS_FAT32 },
+	{ DOSPTYP_FAT32LBA,	G_PART_ALIAS_MS_FAT32LBA },
 	{ DOSPTYP_LINSWP,	G_PART_ALIAS_LINUX_SWAP },
 	{ DOSPTYP_LINUX,	G_PART_ALIAS_LINUX_DATA },
 	{ DOSPTYP_LINLVM,	G_PART_ALIAS_LINUX_LVM },

Modified: stable/11/sys/geom/part/g_part_ldm.c
==============================================================================
--- stable/11/sys/geom/part/g_part_ldm.c	Wed Oct 10 15:38:33 2018	(r339285)
+++ stable/11/sys/geom/part/g_part_ldm.c	Wed Oct 10 15:44:14 2018	(r339286)
@@ -369,6 +369,7 @@ static struct g_part_ldm_alias {
 } ldm_alias_match[] = {
 	{ DOSPTYP_NTFS,		G_PART_ALIAS_MS_NTFS },
 	{ DOSPTYP_FAT32,	G_PART_ALIAS_MS_FAT32 },
+	{ DOSPTYP_FAT32LBA,	G_PART_ALIAS_MS_FAT32LBA },
 	{ DOSPTYP_386BSD,	G_PART_ALIAS_FREEBSD },
 	{ DOSPTYP_LDM,		G_PART_ALIAS_MS_LDM_DATA },
 	{ DOSPTYP_LINSWP,	G_PART_ALIAS_LINUX_SWAP },

Modified: stable/11/sys/geom/part/g_part_mbr.c
==============================================================================
--- stable/11/sys/geom/part/g_part_mbr.c	Wed Oct 10 15:38:33 2018	(r339285)
+++ stable/11/sys/geom/part/g_part_mbr.c	Wed Oct 10 15:44:14 2018	(r339286)
@@ -130,6 +130,7 @@ static struct g_part_mbr_alias {
 	{ DOSPTYP_NTFS,		G_PART_ALIAS_MS_NTFS },
 	{ DOSPTYP_FAT16,	G_PART_ALIAS_MS_FAT16 },
 	{ DOSPTYP_FAT32,	G_PART_ALIAS_MS_FAT32 },
+	{ DOSPTYP_FAT32LBA,	G_PART_ALIAS_MS_FAT32LBA },
 	{ DOSPTYP_EXTLBA,	G_PART_ALIAS_EBR },
 	{ DOSPTYP_LDM,		G_PART_ALIAS_MS_LDM_DATA },
 	{ DOSPTYP_LINSWP,	G_PART_ALIAS_LINUX_SWAP },

Modified: stable/11/sys/sys/diskmbr.h
==============================================================================
--- stable/11/sys/sys/diskmbr.h	Wed Oct 10 15:38:33 2018	(r339285)
+++ stable/11/sys/sys/diskmbr.h	Wed Oct 10 15:44:14 2018	(r339286)
@@ -48,6 +48,7 @@
 #define	DOSPTYP_FAT16	0x06	/* FAT16 partition */
 #define	DOSPTYP_NTFS	0x07	/* NTFS partition */
 #define	DOSPTYP_FAT32	0x0b	/* FAT32 partition */
+#define	DOSPTYP_FAT32LBA	0x0c	/* FAT32 with LBA partition */
 #define	DOSPTYP_EXTLBA	0x0f	/* DOS extended partition */
 #define	DOSPTYP_PPCBOOT	0x41	/* PReP/CHRP boot partition */
 #define	DOSPTYP_LDM	0x42	/* Win2k dynamic extended partition */



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