diff options
author | Karel Zak | 2013-06-26 13:18:50 +0200 |
---|---|---|
committer | Karel Zak | 2013-09-16 16:47:05 +0200 |
commit | e11858e27340f86c1854ca0aad5341e753d51f0b (patch) | |
tree | 8c89da9b66f5cdb9169eb492d81addd773fa4d9d /fdisks/fdiskbsdlabel.c | |
parent | fdisk: (bsd) use macros from pt-mbr.h (diff) | |
download | kernel-qcow2-util-linux-e11858e27340f86c1854ca0aad5341e753d51f0b.tar.gz kernel-qcow2-util-linux-e11858e27340f86c1854ca0aad5341e753d51f0b.tar.xz kernel-qcow2-util-linux-e11858e27340f86c1854ca0aad5341e753d51f0b.zip |
fdisk: (bsd) clean up header file
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdiskbsdlabel.c')
-rw-r--r-- | fdisks/fdiskbsdlabel.c | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/fdisks/fdiskbsdlabel.c b/fdisks/fdiskbsdlabel.c index 64d266270..8e833c92c 100644 --- a/fdisks/fdiskbsdlabel.c +++ b/fdisks/fdiskbsdlabel.c @@ -58,10 +58,51 @@ #include "fdisk.h" #include "pt-mbr.h" -#define DKTYPENAMES #include "fdiskbsdlabel.h" #include "all-io.h" +static char *xbsd_dktypenames[] = { + "unknown", + "SMD", + "MSCP", + "old DEC", + "SCSI", + "ESDI", + "ST506", + "HP-IB", + "HP-FL", + "type 9", + "floppy", + 0 +}; +#define BSD_DKMAXTYPES (ARRAY_SIZE(xbsd_dktypenames) - 1) + +static struct fdisk_parttype xbsd_fstypes[] = { + {BSD_FS_UNUSED, "unused"}, + {BSD_FS_SWAP, "swap"}, + {BSD_FS_V6, "Version 6"}, + {BSD_FS_V7, "Version 7"}, + {BSD_FS_SYSV, "System V"}, + {BSD_FS_V71K, "4.1BSD"}, + {BSD_FS_V8, "Eighth Edition"}, + {BSD_FS_BSDFFS, "4.2BSD"}, +#ifdef __alpha__ + {BSD_FS_EXT2, "ext2"}, +#else + {BSD_FS_MSDOS, "MS-DOS"}, +#endif + {BSD_FS_BSDLFS, "4.4LFS"}, + {BSD_FS_OTHER, "unknown"}, + {BSD_FS_HPFS, "HPFS"}, + {BSD_FS_ISO9660,"ISO-9660"}, + {BSD_FS_BOOT, "boot"}, + {BSD_FS_ADOS, "ADOS"}, + {BSD_FS_HFS, "HFS"}, + {BSD_FS_ADVFS, "AdvFS"}, + { 0, NULL } +}; +#define BSD_FSMAXTYPES (ARRAY_SIZE(xbsd_fstypes)-1) + /* * in-memory fdisk BSD stuff */ |