From 7cc1a68a89236c4b501dde9149be82c208defccd Mon Sep 17 00:00:00 2001 From: Andreas Heil Date: Fri, 18 Dec 2020 10:13:35 +0100 Subject: [PATCH 1/2] updated manpage --- man/nwipe.1 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/man/nwipe.1 b/man/nwipe.1 index 8b0969d9..81784032 100644 --- a/man/nwipe.1 +++ b/man/nwipe.1 @@ -38,8 +38,18 @@ those specified devices immediately. Power off system on completion of wipe delayed for for one minute. During this one minute delay you can abort the shutdown by typing sudo shutdown -c .TP -\fB\-\-sync\fR -Open devices in sync mode +\fB\-\-sync\fR=\fINUM\fR +Will perform a syn after NUM writes (default: 10000) +.IP +0 \- fdatasync after the disk is completely written + fdatasync errors not detected until completion. + 0 is not recommended as disk errors may cause nwipe + to appear to hang +.IP +1 \- fdatasync after every write + Warning: Lower values will reduce wipe speeds. +.IP +1000 \- fdatasync after 1000 writes .TP \fB\-\-noblank\fR Do not perform the final blanking pass after the wipe (default is to blank, From 69fed30dde0813aabe40b80c4528d597f79cfa6f Mon Sep 17 00:00:00 2001 From: Andreas Heil Date: Fri, 18 Dec 2020 10:14:06 +0100 Subject: [PATCH 2/2] fix typo and reformat --- src/options.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/options.c b/src/options.c index 00d78303..56a16cbf 100644 --- a/src/options.c +++ b/src/options.c @@ -489,13 +489,13 @@ void display_help() puts( " for one minute. During this one minute delay you can" ); puts( " abort the shutdown by typing sudo shutdown -c\n" ); printf( " --sync=NUM Will perform a sync after NUM writes (default: %d)\n", DEFAULT_SYNC_RATE ); - puts( " 0 - fdatasync after the disk is completely written" ); - puts( " fdatasync errors not detected until completion." ); - puts( " 0 is not recommended as disk errors may cause nwipe" ); - puts( " to appear to hang" ); - puts( " 1 - fdatasync after every write" ); - puts( " Warning: Lower values will reduce wipe speeds." ); - puts( " 1000000 - fdatasync after 1000000 writes etc.)\n" ); + puts( " 0 - fdatasync after the disk is completely written" ); + puts( " fdatasync errors not detected until completion." ); + puts( " 0 is not recommended as disk errors may cause" ); + puts( " nwipe to appear to hang" ); + puts( " 1 - fdatasync after every write" ); + puts( " Warning: Lower values will reduce wipe speeds." ); + puts( " 1000 - fdatasync after 1000 writes etc.\n" ); puts( " --verify=TYPE Whether to perform verification of erasure" ); puts( " (default: last)" ); puts( " off - Do not verify" );