svn commit: r217041 - user/nwhitehorn/bsdinstall/partedit
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Thu Jan 6 03:56:02 UTC 2011
Author: nwhitehorn
Date: Thu Jan 6 03:56:01 2011
New Revision: 217041
URL: http://svn.freebsd.org/changeset/base/217041
Log:
Use the newly-available "modified" attribute in gpart to determine if we
have to do anything. This avoids an unnecessary warning due to an EPERM
trying to commit/undo changes on an unmodified geom.
Modified:
user/nwhitehorn/bsdinstall/partedit/partedit.c
Modified: user/nwhitehorn/bsdinstall/partedit/partedit.c
==============================================================================
--- user/nwhitehorn/bsdinstall/partedit/partedit.c Thu Jan 6 03:36:04 2011 (r217040)
+++ user/nwhitehorn/bsdinstall/partedit/partedit.c Thu Jan 6 03:56:01 2011 (r217041)
@@ -99,6 +99,7 @@ main(void) {
error = apply_changes(&mesh);
break;
} else if (op == 3) { /* Don't save => Quit */
+ gpart_revert_all(&mesh);
error = -1;
break;
}
More information about the svn-src-user
mailing list