Module Name:    src
Committed By:   jnemeth
Date:           Sat Oct 19 02:07:08 UTC 2013

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

Log Message:
recognize FreeBSD ZFS partition


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 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/show.c
diff -u src/sbin/gpt/show.c:1.10 src/sbin/gpt/show.c:1.11
--- src/sbin/gpt/show.c:1.10	Sat Apr 13 18:32:01 2013
+++ src/sbin/gpt/show.c	Sat Oct 19 02:07:08 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.10 2013/04/13 18:32:01 jakllsch Exp $");
+__RCSID("$NetBSD: show.c,v 1.11 2013/10/19 02:07:08 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -72,6 +72,7 @@ friendly(uuid_t *t)
 	static const uuid_t swap = GPT_ENT_TYPE_FREEBSD_SWAP;
 	static const uuid_t ufs = GPT_ENT_TYPE_FREEBSD_UFS;
 	static const uuid_t vinum = GPT_ENT_TYPE_FREEBSD_VINUM;
+	static const uuid_t zfs = GPT_ENT_TYPE_FREEBSD_ZFS;
 	static const uuid_t nb_swap = GPT_ENT_TYPE_NETBSD_SWAP;
 	static const uuid_t nb_ffs = GPT_ENT_TYPE_NETBSD_FFS;
 	static const uuid_t nb_lfs = GPT_ENT_TYPE_NETBSD_LFS;
@@ -106,7 +107,8 @@ friendly(uuid_t *t)
 		return ("FreeBSD UFS/UFS2");
 	if (uuid_equal(t, &vinum, NULL))
 		return ("FreeBSD vinum");
-
+	if (uuid_equal(t, &zfs, NULL))
+		return ("FreeBSD ZFS");
 	if (uuid_equal(t, &freebsd, NULL))
 		return ("FreeBSD legacy");
 	if (uuid_equal(t, &msdata, NULL))

Reply via email to