diff options
author | Karel Zak | 2012-09-25 10:23:36 +0200 |
---|---|---|
committer | Karel Zak | 2012-09-27 13:38:13 +0200 |
commit | 559d921edad8be1ec4e2837095b327eb9e297b7a (patch) | |
tree | 0ff49ebac62e3782401dc4de5f9f892e6dd0873e /fdisks/fdiskdoslabel.c | |
parent | fdisk: improve list partition types (diff) | |
download | kernel-qcow2-util-linux-559d921edad8be1ec4e2837095b327eb9e297b7a.tar.gz kernel-qcow2-util-linux-559d921edad8be1ec4e2837095b327eb9e297b7a.tar.xz kernel-qcow2-util-linux-559d921edad8be1ec4e2837095b327eb9e297b7a.zip |
fdisk: add new functions for work with fdisk_parttype
- add flags to fdisk_parttype to store more information about the types
- function for conversion from code to fdisk_parttype
- function for conversion from string to fdisk_parttype
- function for conversion from user input to fdisk_parttype
- support for unknown complex types (e.g. unknown UUIDs)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdiskdoslabel.c')
-rw-r--r-- | fdisks/fdiskdoslabel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c index 9c08b9869..e32e30c21 100644 --- a/fdisks/fdiskdoslabel.c +++ b/fdisks/fdiskdoslabel.c @@ -829,6 +829,8 @@ const struct fdisk_label dos_label = { .name = "dos", .parttypes = dos_parttypes, + .nparttypes = ARRAY_SIZE(dos_parttypes), + .probe = dos_probe_label, .write = dos_write_disklabel, .verify = dos_verify_disklabel, |