[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH] Reset "RebootCount" when no reboot requested.



> -----Original Message-----
> From: win-pv-devel <win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of 
> Owen Smith
> Sent: 15 December 2020 12:33
> To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
> Cc: Owen Smith <owen.smith@xxxxxxxxxx>
> Subject: [PATCH] Reset "RebootCount" when no reboot requested.
> 
> Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>

Could you fold this into patch #2 of your series? I have not applied it yet.

  Paul

> ---
>  src/monitor/monitor.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
> index 5d58be4..7d8689f 100644
> --- a/src/monitor/monitor.c
> +++ b/src/monitor/monitor.c
> @@ -797,6 +797,11 @@ loop:
>          RegCloseKey(SubKey);
>      }
> 
> +    Error = RegDeleteValue(Context->ParametersKey,
> +                           "RebootCount");
> +    if (Error == ERROR_SUCCESS)
> +        (VOID) RegFlushKey(Context->ParametersKey);
> +
>      goto done;
> 
>  found:
> --
> 2.28.0.windows.1
> 





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.