Source-Changes-HG archive

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

[src/trunk]: src/sbin/gpt Make "gpt migrate" work for disks with FAT32 and NT...



details:   https://anonhg.NetBSD.org/src/rev/27c8015702fc
branches:  trunk
changeset: 996855:27c8015702fc
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Feb 10 10:35:51 2019 +0000

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

diffstat:

 sbin/gpt/migrate.c |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 53657da5709b -r 27c8015702fc sbin/gpt/migrate.c
--- a/sbin/gpt/migrate.c        Sun Feb 10 09:54:39 2019 +0000
+++ b/sbin/gpt/migrate.c        Sun Feb 10 10:35:51 2019 +0000
@@ -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 @@
                        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)",



Home | Main Index | Thread Index | Old Index