Module Name:    src
Committed By:   jakllsch
Date:           Fri Jan 18 17:58:15 UTC 2013

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

Log Message:
Now that GPT_ENT_TYPE_LINUX_DATA is diffrent from the Windows one, use it.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sbin/gpt/gpt.c
cvs rdiff -u -r1.7 -r1.8 src/sbin/gpt/show.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/gpt.c
diff -u src/sbin/gpt/gpt.c:1.17 src/sbin/gpt/gpt.c:1.18
--- src/sbin/gpt/gpt.c:1.17	Mon Jul 30 00:53:59 2012
+++ src/sbin/gpt/gpt.c	Fri Jan 18 17:58:15 2013
@@ -31,7 +31,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: gpt.c,v 1.17 2012/07/30 00:53:59 matt Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.18 2013/01/18 17:58:15 jakllsch Exp $");
 #endif
 
 #include <sys/param.h>
@@ -328,7 +328,7 @@ parse_uuid(const char *s, uuid_t *uuid)
 			*uuid = lfs;
 			return (0);
 		} else if (strcmp(s, "linux") == 0) {
-			uuid_t lnx = GPT_ENT_TYPE_MS_BASIC_DATA;
+			uuid_t lnx = GPT_ENT_TYPE_LINUX_DATA;
 			*uuid = lnx;
 			return (0);
 		}

Index: src/sbin/gpt/show.c
diff -u src/sbin/gpt/show.c:1.7 src/sbin/gpt/show.c:1.8
--- src/sbin/gpt/show.c:1.7	Sat Aug 27 17:38:16 2011
+++ src/sbin/gpt/show.c	Fri Jan 18 17:58:15 2013
@@ -29,7 +29,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/show.c,v 1.14 2006/06/22 22:22:32 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: show.c,v 1.7 2011/08/27 17:38:16 joerg Exp $");
+__RCSID("$NetBSD: show.c,v 1.8 2013/01/18 17:58:15 jakllsch Exp $");
 #endif
 
 #include <sys/types.h>
@@ -63,9 +63,10 @@ friendly(uuid_t *t)
 {
 	static uuid_t efi_slice = GPT_ENT_TYPE_EFI;
 	static uuid_t bios_boot = GPT_ENT_TYPE_BIOS;
-	static uuid_t mslinux = GPT_ENT_TYPE_MS_BASIC_DATA;
+	static uuid_t msdata = GPT_ENT_TYPE_MS_BASIC_DATA;
 	static uuid_t freebsd = GPT_ENT_TYPE_FREEBSD;
 	static uuid_t hfs = GPT_ENT_TYPE_APPLE_HFS;
+	static uuid_t linuxdata = GPT_ENT_TYPE_LINUX_DATA;
 	static uuid_t linuxswap = GPT_ENT_TYPE_LINUX_SWAP;
 	static uuid_t msr = GPT_ENT_TYPE_MS_RESERVED;
 	static uuid_t swap = GPT_ENT_TYPE_FREEBSD_SWAP;
@@ -108,12 +109,14 @@ friendly(uuid_t *t)
 
 	if (uuid_equal(t, &freebsd, NULL))
 		return ("FreeBSD legacy");
-	if (uuid_equal(t, &mslinux, NULL))
-		return ("Linux/Windows");
-	if (uuid_equal(t, &linuxswap, NULL))
-		return ("Linux swap");
+	if (uuid_equal(t, &msdata, NULL))
+		return ("Windows basic data");
 	if (uuid_equal(t, &msr, NULL))
 		return ("Windows reserved");
+	if (uuid_equal(t, &linuxdata, NULL))
+		return ("Linux data");
+	if (uuid_equal(t, &linuxswap, NULL))
+		return ("Linux swap");
 	if (uuid_equal(t, &hfs, NULL))
 		return ("Apple HFS");
 

Reply via email to