svn commit: r232534 - stable/9/sys/geom/part
Andrey V. Elsukov
ae at FreeBSD.org
Mon Mar 5 04:46:28 UTC 2012
Author: ae
Date: Mon Mar 5 04:46:28 2012
New Revision: 232534
URL: http://svn.freebsd.org/changeset/base/232534
Log:
MFC r231751:
Add PART::type attribute handler. It returns partition type as string.
Modified:
stable/9/sys/geom/part/g_part.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/geom/part/g_part.c
==============================================================================
--- stable/9/sys/geom/part/g_part.c Mon Mar 5 03:44:16 2012 (r232533)
+++ stable/9/sys/geom/part/g_part.c Mon Mar 5 04:46:28 2012 (r232534)
@@ -2056,6 +2056,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;
@@ -2104,6 +2105,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
More information about the svn-src-stable-9
mailing list