Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt recognize FreeBSD ZFS partition
details: https://anonhg.NetBSD.org/src/rev/29ddee5384c0
branches: trunk
changeset: 790667:29ddee5384c0
user: jnemeth <jnemeth%NetBSD.org@localhost>
date: Sat Oct 19 02:07:08 2013 +0000
description:
recognize FreeBSD ZFS partition
diffstat:
sbin/gpt/show.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 0b04faea75d7 -r 29ddee5384c0 sbin/gpt/show.c
--- a/sbin/gpt/show.c Sat Oct 19 01:58:33 2013 +0000
+++ b/sbin/gpt/show.c Sat Oct 19 02:07:08 2013 +0000
@@ -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 @@
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 @@
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))
Home |
Main Index |
Thread Index |
Old Index