diff --git a/man/nwipe.1 b/man/nwipe.1 index f7d37f1..cb7ca1e 100644 --- a/man/nwipe.1 +++ b/man/nwipe.1 @@ -1,4 +1,4 @@ -.TH NWIPE "1" "June 2021" "nwipe version 0.31" "User Commands" +.TH NWIPE "1" "October 2021" "nwipe version 0.32" "User Commands" .SH NAME nwipe \- securely erase disks .SH SYNOPSIS @@ -100,6 +100,8 @@ random / prng / stream \- PRNG Stream .IP zero / quick \- Overwrite with zeros .IP +one \- Overwrite with ones +.IP verify \- Verifies disk is zero filled .IP is5enh \- HMG IS5 enhanced diff --git a/src/options.c b/src/options.c index f82885f..8bd20a4 100644 --- a/src/options.c +++ b/src/options.c @@ -276,6 +276,12 @@ int nwipe_options_parse( int argc, char** argv ) break; } + if( strcmp( optarg, "one" ) == 0 ) + { + nwipe_options.method = &nwipe_one; + break; + } + if( strcmp( optarg, "verify" ) == 0 ) { nwipe_options.method = &nwipe_verify; @@ -529,6 +535,7 @@ void display_help() puts( " ops2 - RCMP TSSIT OPS-II" ); puts( " random / prng / stream - PRNG Stream" ); puts( " zero / quick - Overwrite with zeros" ); + puts( " one - Overwrite with ones (0xFF)" ); puts( " verify - Verifies disk is zero filled\n" ); puts( " -l, --logfile=FILE Filename to log to. Default is STDOUT\n" ); puts( " -p, --prng=METHOD PRNG option (mersenne|twister|isaac)\n" );