Add PART::type attribute handler. It returns partition type as string.
MFC after: 2 weeks
This commit is contained in:
parent
a470da8388
commit
0d8bc07eba
@ -2057,6 +2057,7 @@ g_part_start(struct bio *bp)
|
||||
struct g_part_table *table;
|
||||
struct g_kerneldump *gkd;
|
||||
struct g_provider *pp;
|
||||
char buf[64];
|
||||
|
||||
pp = bp->bio_to;
|
||||
gp = pp->geom;
|
||||
@ -2105,6 +2106,9 @@ g_part_start(struct bio *bp)
|
||||
if (g_handleattr_str(bp, "PART::scheme",
|
||||
table->gpt_scheme->name))
|
||||
return;
|
||||
if (g_handleattr_str(bp, "PART::type",
|
||||
G_PART_TYPE(table, entry, buf, sizeof(buf))))
|
||||
return;
|
||||
if (!strcmp("GEOM::kerneldump", bp->bio_attribute)) {
|
||||
/*
|
||||
* Check that the partition is suitable for kernel
|
||||
|
Loading…
x
Reference in New Issue
Block a user