Source-Changes-HG archive

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

[src/trunk]: src/sbin/gpt Add code for detecting FreeBSD ZFS partitions.



details:   https://anonhg.NetBSD.org/src/rev/0b04faea75d7
branches:  trunk
changeset: 790666:0b04faea75d7
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Sat Oct 19 01:58:33 2013 +0000

description:
Add code for detecting FreeBSD ZFS partitions.

XXX  Need to add code for migrating NetBSD disklabel'ed disks.

diffstat:

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

diffs (26 lines):

diff -r d52ba102638a -r 0b04faea75d7 sbin/gpt/migrate.c
--- a/sbin/gpt/migrate.c        Sat Oct 19 01:19:03 2013 +0000
+++ b/sbin/gpt/migrate.c        Sat Oct 19 01:58:33 2013 +0000
@@ -29,7 +29,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.7 2013/04/13 18:32:01 jakllsch Exp $");
+__RCSID("$NetBSD: migrate.c,v 1.8 2013/10/19 01:58:33 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -126,6 +126,13 @@
                            ent->ent_name, 36);
                        break;
                }
+               case FS_ZFS: {
+                       static const uuid_t zfs = GPT_ENT_TYPE_FREEBSD_ZFS;
+                       le_uuid_enc(ent->ent_type, &zfs);
+                       utf8_to_utf16((const uint8_t *)"FreeBSD ZFS partition",
+                           ent->ent_name, 36);
+                       break;
+               }
                default:
                        warnx("%s: warning: unknown FreeBSD partition (%d)",
                            device_name, dl->d_partitions[i].p_fstype);



Home | Main Index | Thread Index | Old Index