#define BLKID_NVALS_SUBLKS 14
#define BLKID_NVALS_TOPLGY 5
-#define BLKID_NVALS_PARTS 1
+#define BLKID_NVALS_PARTS 8
/* Max number of all values in probing result */
#define BLKID_NVALS (BLKID_NVALS_SUBLKS + \
par = blkid_partlist_devno_to_partition(ls, devno);
if (par) {
const char *v;
+ blkid_parttable tab = blkid_partition_get_table(par);
+
+ if (tab) {
+ v = blkid_parttable_get_type(tab);
+ if (v)
+ blkid_probe_set_value(pr, "PART_ENTRY_SCHEME",
+ (unsigned char *) v, strlen(v) + 1);
+ }
v = blkid_partition_get_name(par);
if (v)
if (blkid_partition_get_flags(par))
blkid_probe_sprintf_value(pr, "PART_ENTRY_FLAGS",
"0x%llx", blkid_partition_get_flags(par));
+
+ blkid_probe_sprintf_value(pr, "PART_ENTRY_NUMBER",
+ "%d", blkid_partition_get_partno(par));
}
rc = 0;
nothing: