svn commit: r217040 - head/sys/geom/part
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Thu Jan 6 03:36:05 UTC 2011
Author: nwhitehorn
Date: Thu Jan 6 03:36:04 2011
New Revision: 217040
URL: http://svn.freebsd.org/changeset/base/217040
Log:
Add an entry to the gpart XML to determine if the geom has pending changes
that need to be committed (or undone).
MFC after: 2 weeks
Modified:
head/sys/geom/part/g_part.c
Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c Thu Jan 6 03:30:16 2011 (r217039)
+++ head/sys/geom/part/g_part.c Thu Jan 6 03:36:04 2011 (r217040)
@@ -1868,6 +1868,8 @@ g_part_dumpconf(struct sbuf *sb, const c
table->gpt_heads);
sbuf_printf(sb, "%s<state>%s</state>\n", indent,
table->gpt_corrupt ? "CORRUPT": "OK");
+ sbuf_printf(sb, "%s<modified>%s</modified>\n", indent,
+ table->gpt_opened ? "true": "false");
G_PART_DUMPCONF(table, NULL, sb, indent);
}
}
More information about the svn-src-all
mailing list