From 2a056b7bfa1fec64b2e6328ba3850555366e3395 Mon Sep 17 00:00:00 2001 From: PartialVolume Date: Fri, 8 Nov 2019 13:18:50 +0000 Subject: [PATCH] Changed sync from 0 (at end) to every 1000000 blks Instead of defaulting to only calling fdatasync at the end of a wipe, it now defaults to calling fdatasync every 1000000 blocks. This shows a unresponsive drive far quicker and also allows wipe threads to complete and be cancelled within a couple of seconds if a wipe is aborted with control-c. --- src/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.c b/src/options.c index 252a60c..dc00eec 100644 --- a/src/options.c +++ b/src/options.c @@ -111,7 +111,7 @@ int nwipe_options_parse( int argc, char** argv ) nwipe_options.nowait = 0; nwipe_options.nosignals = 0; nwipe_options.nogui = 0; - nwipe_options.sync = 0; + nwipe_options.sync = 100000; nwipe_options.verify = NWIPE_VERIFY_LAST; memset( nwipe_options.logfile, '\0', sizeof( nwipe_options.logfile ) );