Source-Changes-HG archive

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

[src/trunk]: src/sbin/gpt Add some more common partition types.



details:   https://anonhg.NetBSD.org/src/rev/938aa5495ea5
branches:  trunk
changeset: 334773:938aa5495ea5
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Dec 06 12:24:22 2014 +0000

description:
Add some more common partition types.

diffstat:

 sbin/gpt/gpt.8      |  51 +++++++++++++++++++++++++++++++++++++++++++++------
 sbin/gpt/gpt_uuid.c |   7 +++++--
 2 files changed, 50 insertions(+), 8 deletions(-)

diffs (101 lines):

diff -r 0fb0c989bee2 -r 938aa5495ea5 sbin/gpt/gpt.8
--- a/sbin/gpt/gpt.8    Sat Dec 06 12:12:17 2014 +0000
+++ b/sbin/gpt/gpt.8    Sat Dec 06 12:24:22 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: gpt.8,v 1.34 2014/10/04 07:15:54 wiz Exp $
+.\" $NetBSD: gpt.8,v 1.35 2014/12/06 12:24:22 mlelstv Exp $
 .\"
 .\" Copyright (c) 2002 Marcel Moolenaar
 .\" All rights reserved.
@@ -158,11 +158,50 @@
 The type is given as an UUID, but
 .Nm
 accepts
-.Cm efi , swap , ufs , hfs , linux ,
-.Cm raid , lfs , ccd , cgd , bios ,
-.Cm ffs ,
-and
-.Cm windows
+.Bl -tag -width "windows-reserved" -compact -offset indent
+.It Cm apple
+Apple HFS
+.It Cm apple-ufs
+Apple UFS
+.It Cm bios
+BIOS Boot
+.It Cm efi
+EFI System
+.It Cm fbsd-legacy
+FreeBSD legacy
+.It Cm fbsd-swap
+FreeBSD swap
+.It Cm fbsd-ufs
+FreeBSD UFS/UFS2
+.It Cm fbsd-vinum
+FreeBSD vinum
+.It Cm fbsd-zfs
+FreeBSD ZFS
+.It Cm linux-data
+Linux data
+.It Cm linux-raid
+Linux RAID
+.It Cm linux-swap
+Linux swap
+.It Cm linux-lvm
+Linux LVM
+.It Cm windows
+Windows basic data
+.It Cm windows-reserved
+Windows reserved
+.It Cm ccd
+NetBSD ccd component
+.It Cm cgd
+NetBSD Cryptographic Disk
+.It Cm ffs
+NetBSD FFSv1/FFSv2
+.It Cm lfs
+NetBSD LFS
+.It Cm raid
+NetBSD RAIDFrame component
+.It Cm swap
+NetBSD swap
+.El
 as aliases for the most commonly used partition types.
 .\" ==== backup ====
 .It Nm Ic backup Ar device ...
diff -r 0fb0c989bee2 -r 938aa5495ea5 sbin/gpt/gpt_uuid.c
--- a/sbin/gpt/gpt_uuid.c       Sat Dec 06 12:12:17 2014 +0000
+++ b/sbin/gpt/gpt_uuid.c       Sat Dec 06 12:24:22 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gpt_uuid.c,v 1.9 2014/10/04 11:23:35 riastradh Exp $   */
+/*     $NetBSD: gpt_uuid.c,v 1.10 2014/12/06 12:24:22 mlelstv Exp $    */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __RCSID
-__RCSID("$NetBSD: gpt_uuid.c,v 1.9 2014/10/04 11:23:35 riastradh Exp $");
+__RCSID("$NetBSD: gpt_uuid.c,v 1.10 2014/12/06 12:24:22 mlelstv Exp $");
 #endif
 
 #include <err.h>
@@ -65,6 +65,7 @@
        const char *d;
 } gpt_nv[] = {
        { GPT_ENT_TYPE_APPLE_HFS, "apple", "Apple HFS" },
+       { GPT_ENT_TYPE_APPLE_UFS, "apple-ufs", "Apple UFS" },
        { GPT_ENT_TYPE_BIOS, "bios", "BIOS Boot" },
        { GPT_ENT_TYPE_EFI, "efi", "EFI System" },
        { GPT_ENT_TYPE_FREEBSD, "fbsd-legacy", "FreeBSD legacy" },
@@ -73,7 +74,9 @@
        { GPT_ENT_TYPE_FREEBSD_VINUM, "fbsd-vinum", "FreeBSD vinum" },
        { GPT_ENT_TYPE_FREEBSD_ZFS, "fbsd-zfs", "FreeBSD ZFS" },
        { GPT_ENT_TYPE_LINUX_DATA, "linux-data", "Linux data" },
+       { GPT_ENT_TYPE_LINUX_RAID, "linux-raid", "Linux RAID" },
        { GPT_ENT_TYPE_LINUX_SWAP, "linux-swap", "Linux swap" },
+       { GPT_ENT_TYPE_LINUX_LVM, "linux-lvm", "Linux LVM" },
        { GPT_ENT_TYPE_MS_BASIC_DATA, "windows", "Windows basic data" },
        { GPT_ENT_TYPE_MS_RESERVED, "windows-reserved", "Windows reserved" },
        { GPT_ENT_TYPE_NETBSD_CCD, "ccd", "NetBSD ccd component" },



Home | Main Index | Thread Index | Old Index