From 18386f225ee9762fbe15dd67fe564e1221184725 Mon Sep 17 00:00:00 2001 From: PartialVolume Date: Mon, 31 May 2021 23:22:33 +0100 Subject: [PATCH] Fix blanking pass verification status message Although the blanking pass verification is completed correctly the GUI status message did not show the status as 'Verifying', the status message continued to say blanking. This patch fixes the GUI message so if verification and blanking pass are enabled, then when blanking is complete and verification starts the drive status message changes from 'blanking' to 'Verifying'. --- src/method.c | 2 ++ src/prng.c | 2 +- src/version.c | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/method.c b/src/method.c index 854e8b8..b3e8012 100644 --- a/src/method.c +++ b/src/method.c @@ -1048,7 +1048,9 @@ int nwipe_runmethod( nwipe_context_t* c, nwipe_pattern_t* patterns ) nwipe_log( NWIPE_LOG_NOTICE, "Verifying that %s is empty.", c->device_name ); /* Verify the final zero pass. */ + c->pass_type = NWIPE_PASS_VERIFY; r = nwipe_static_verify( c, &pattern_zero ); + c->pass_type = NWIPE_PASS_NONE; /* Check for a fatal error. */ if( r < 0 ) diff --git a/src/prng.c b/src/prng.c index 38e454d..cbf7f67 100644 --- a/src/prng.c +++ b/src/prng.c @@ -9,7 +9,7 @@ * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with diff --git a/src/version.c b/src/version.c index ec7bc11..15b2d14 100644 --- a/src/version.c +++ b/src/version.c @@ -4,7 +4,7 @@ * used by configure to dynamically assign those values * to documentation files. */ -const char* version_string = "0.30.008"; +const char* version_string = "0.30.009"; const char* program_name = "nwipe"; const char* author_name = "Martijn van Brummelen"; const char* email_address = "git@brumit.nl"; @@ -14,4 +14,4 @@ Modifications to original dwipe Copyright Andy Beverley \n\ This is free software; see the source for copying conditions.\n\ There is NO warranty; not even for MERCHANTABILITY or FITNESS\n\ FOR A PARTICULAR PURPOSE.\n"; -const char* banner = "nwipe 0.30.008"; +const char* banner = "nwipe 0.30.009";