Module Name:    src
Committed By:   martin
Date:           Sun Feb 10 10:35:51 UTC 2019

Modified Files:
        src/sbin/gpt: migrate.c

Log Message:
Make "gpt migrate" work for disks with FAT32 and NTFS partitions


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sbin/gpt/migrate.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/gpt/migrate.c
diff -u src/sbin/gpt/migrate.c:1.33 src/sbin/gpt/migrate.c:1.34
--- src/sbin/gpt/migrate.c:1.33	Tue Jul  3 03:41:24 2018
+++ src/sbin/gpt/migrate.c	Sun Feb 10 10:35:51 2019
@@ -33,7 +33,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/migrate.c,v 1.16 2005/09/01 02:42:52 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: migrate.c,v 1.33 2018/07/03 03:41:24 jnemeth Exp $");
+__RCSID("$NetBSD: migrate.c,v 1.34 2019/02/10 10:35:51 martin Exp $");
 #endif
 
 #include <sys/types.h>
@@ -289,6 +289,16 @@ migrate(gpt_t gpt, u_int parts, int forc
 			type = GPT_TYPE_EFI;
 			break;
 
+		case MBR_PTYPE_NTFS:
+		case MBR_PTYPE_FAT12:
+		case MBR_PTYPE_FAT16S:
+		case MBR_PTYPE_FAT16B:
+		case MBR_PTYPE_FAT32:
+		case MBR_PTYPE_FAT32L:
+		case MBR_PTYPE_FAT16L:
+			type = GPT_TYPE_MS_BASIC_DATA;
+			break;
+
 		default:
 			if (!force) {
 				gpt_warnx(gpt, "unknown partition type (%d)",

Reply via email to