svn commit: r217041 - user/nwhitehorn/bsdinstall/partedit

Nathan Whitehorn nwhitehorn at freebsd.org
Thu Jan 6 03:57:06 UTC 2011


On 01/05/11 21:56, Nathan Whitehorn wrote:
> 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.

This was the wrong commit message. It should have been:
Revert changes to all modified gparts if the user elects not to save 
changes.
-Nathan

> 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