diff options
author | Karel Zak | 2013-01-18 11:43:56 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-11 12:47:29 +0100 |
commit | 9fcd49d5517dffa1b98d29faff5090e88e9a68f0 (patch) | |
tree | e6446a89c309a8784ecb396ebafe7cda4ff200ad /libfdisk/src/fdiskP.h | |
parent | fdisk: (gpt) remove global variables, cleanup header verification (diff) | |
download | kernel-qcow2-util-linux-9fcd49d5517dffa1b98d29faff5090e88e9a68f0.tar.gz kernel-qcow2-util-linux-9fcd49d5517dffa1b98d29faff5090e88e9a68f0.tar.xz kernel-qcow2-util-linux-9fcd49d5517dffa1b98d29faff5090e88e9a68f0.zip |
libfdisk: (gpt) introduce driver independent partitions counters
label->nparts_{max,cur} to later replace global variable partitions
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/fdiskP.h')
-rw-r--r-- | libfdisk/src/fdiskP.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libfdisk/src/fdiskP.h b/libfdisk/src/fdiskP.h index 104c67cb7..39e76da30 100644 --- a/libfdisk/src/fdiskP.h +++ b/libfdisk/src/fdiskP.h @@ -159,14 +159,15 @@ struct fdisk_label_operations { * Generic label */ struct fdisk_label { - /* persistent information */ - const char *name; + const char *name; /* label name */ enum fdisk_labeltype id; /* FDISK_DISKLABEL_* */ - struct fdisk_parttype *parttypes; + struct fdisk_parttype *parttypes; /* supported partitions types */ size_t nparttypes; /* number of items in parttypes[] */ - const struct fdisk_label_operations *op; + size_t nparts_max; /* maximal number of partitions */ + size_t nparts_cur; /* number of currently used partitions */ + const struct fdisk_label_operations *op; }; /* label allocators */ |