Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jan 2011 03:36:04 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r217040 - head/sys/geom/part
Message-ID:  <201101060336.p063a4aE000589@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101060336.p063a4aE000589>