diff options
author | jhb <jhb@FreeBSD.org> | 2008-02-05 23:37:42 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-02-05 23:37:42 +0000 |
commit | 7084a34c3ece56a123e9bfd8622a892e5bd0d2e2 (patch) | |
tree | 03bdf3827070450d5f0e39a924e5f59f9dac479b /sbin/gpt/migrate.c | |
parent | da1547d4605365c2023fc6aea4b256ae5a8e12b1 (diff) | |
download | FreeBSD-src-7084a34c3ece56a123e9bfd8622a892e5bd0d2e2.zip FreeBSD-src-7084a34c3ece56a123e9bfd8622a892e5bd0d2e2.tar.gz |
Add ZFS support.
MFC after: 1 week
PR: bin/119976
Submitted by: Simun Mikecin numisemis of yahoo.com
Diffstat (limited to 'sbin/gpt/migrate.c')
-rw-r--r-- | sbin/gpt/migrate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/gpt/migrate.c b/sbin/gpt/migrate.c index 8f3b4ec..798949d 100644 --- a/sbin/gpt/migrate.c +++ b/sbin/gpt/migrate.c @@ -118,6 +118,13 @@ migrate_disklabel(int fd, off_t start, struct gpt_ent *ent) ent->ent_name, 36); break; } + case FS_ZFS: { + uuid_t zfs = GPT_ENT_TYPE_FREEBSD_ZFS; + le_uuid_enc(&ent->ent_type, &zfs); + utf8_to_utf16("FreeBSD ZFS partition", + ent->ent_name, 36); + break; + } default: warnx("%s: warning: unknown FreeBSD partition (%d)", device_name, dl->d_partitions[i].p_fstype); |