Commit Graph

268 Commits

Author SHA1 Message Date
louib
a5a3f3b9a3 Formatting device module. 2020-01-05 16:29:27 -05:00
PartialVolume
5f01b660bd Merge pull request #177 from louib/formatting_pass_4
Formatting context.h
2020-01-05 19:26:32 +00:00
PartialVolume
10f2678c10 Merge branch 'master' into formatting_pass_4 2020-01-05 19:23:50 +00:00
PartialVolume
3c4a536eeb Merge pull request #171 from louib/formatting_pass_3
formatting method and version module.
2020-01-05 19:17:53 +00:00
louib
bc8cfeb478 formatting method and version module. 2020-01-05 13:10:26 -05:00
PartialVolume
cb4d411b05 Merge pull request #178 from PartialVolume/fix_percentage_for_zero_fill
Fix percentage complete calculation for all methods
2020-01-05 03:33:33 +00:00
PartialVolume
3bcc544610 Fix percentage complete calculation.
Also fixes OPSII method.
Place round_size calculation in the function calculate_round_size()
2020-01-05 03:28:28 +00:00
louib
92c7d99714 Formatting context.h 2020-01-04 12:38:41 -05:00
PartialVolume
c952939dff Merge pull request #175 from PartialVolume/show_percentage_on_completion
Show percentage completed, on completion of wipe.
2019-12-30 18:21:34 +00:00
PartialVolume
e5a0f85d56 Show percentage completed, on completion of wipe.
Rather than delete percentage complete, show it. Because we were hiding
percentage complete we were not aware of inaccuracies in the percentage
calculation that are introduced when you toggle blanking and
verification on various methods.
2019-12-30 18:18:15 +00:00
PartialVolume
f69aff33a4 Merge pull request #169 from louib/formatting_fixes
Small formatting fix.
2019-12-29 21:30:04 +00:00
louib
d19dc05793 Small formatting fix. 2019-12-29 16:19:17 -05:00
PartialVolume
7a87bafc0f Merge pull request #168 from infrastation/master
add HMG IS5 enhanced and make minor fixups
2019-12-29 20:55:57 +00:00
PartialVolume
615c2ee035 Merge branch 'master' into master 2019-12-29 20:47:14 +00:00
PartialVolume
559bc3db56 Merge pull request #167 from louib/formatting_pass_2
Formatting pass 2
2019-12-29 20:17:20 +00:00
Denis Ovsienko
04fe9f217e add an initial implementation of HMG IS5 enhanced
I could not find the original specification of this standard, although
many proprietary implementations exist (or claim to exist). Also there
are many 3rd-party descriptions of the method, which often differ in one
or another detail, but after some reading I could conclude that the most
likely definition should be as follows:

1. Fill the device with zeroes, do not verify.
2. Fill the device with ones, do not verify.
3. Fill the device with a PRNG stream, do verify.

In other words, this is a simplified version of nwipe's "dodshort".
2019-12-28 22:41:32 +00:00
Denis Ovsienko
ead64479f4 remove duplicate "h" from nwipe_options_short[] 2019-12-28 22:09:50 +00:00
Denis Ovsienko
e2c9d030de fixup list formatting for --verify in the man page 2019-12-28 22:09:50 +00:00
Denis Ovsienko
f866d84e3d fixup descriptions of --noblank
Both display_help() and nwipe_options_parse() are consistent about the
--noblank option, in that it exists and has no short form. Make the man
page and nwipe_gui_noblank() indicate that correctly. Mention that "ops2"
never blanks the device regardless of the option.
2019-12-28 22:09:50 +00:00
Denis Ovsienko
97c736e630 fixup a comment in method.c 2019-12-28 22:09:50 +00:00
Denis Ovsienko
c3679f9d3b fixup PRNG names in README.md 2019-12-28 22:09:50 +00:00
louib
e180154320 Update else styling. 2019-12-28 13:21:42 -05:00
louib
ff357298bd Activate CI on pull requests. 2019-12-28 13:18:41 -05:00
louib
cd0d9e028b Activate temp code format checks. 2019-12-28 13:15:02 -05:00
louib
25116c2046 Formatting options module. 2019-12-28 13:11:47 -05:00
PartialVolume
d5fe1c096a Merge pull request #164 from louib/formatting_pass_1
Formatting pass 1
2019-12-28 17:50:15 +00:00
louib
254ef3236e Rename sources variable in makefile. 2019-12-28 12:28:19 -05:00
PartialVolume
719bfa66f6 Merge pull request #166 from louib/update_zero_fill_doc
Updated zero-fill documentation.
2019-12-27 19:57:48 +00:00
louib
a384bd75fd Updated zero-fill documentation. 2019-12-27 13:55:16 -05:00
PartialVolume
ddc4f9eaa2 Merge pull request #165 from louib/rename_quick_erase
Rename Quick Erase for Zero Fill
2019-12-27 18:26:11 +00:00
louib
f212192155 Rename Quick Erase for Zero Fill 2019-12-27 12:21:20 -05:00
louib
494d269936 Formatting nwipe.c and nwipe.h 2019-12-26 14:04:38 -05:00
louib
f1baadb4de Setup code formatting with make. 2019-12-26 14:00:17 -05:00
PartialVolume
8e196eb830 Merge pull request #163 from louib/help_typos
Fixed typos in help message.
2019-12-23 22:56:49 +00:00
louib
d8749ab9da Fixed typos in help message. 2019-12-23 17:35:42 -05:00
PartialVolume
89598f3de9 Merge pull request #159 from PartialVolume/fix_missing_log_messages_when_wipe_selected_then_CNTRL-C_abort
Fix missing log lines
2019-12-15 18:22:14 +00:00
PartialVolume
8bb3f9ff14 Fix missing log lines
Change code so that there is only one place where the log is flushed on
exit from the ncurses gui. Prior to this patch the flush was done twice
which resulted in duplicated lines and missing lines. The
log_current_element variable was being initialised after the first flush.
This caused subsequent writes to nwipe to write log_lines pointers passed
the end of the pointer array causing memory corruption and resulting in the
occassional segfault on attempts to print the log array.
2019-12-15 18:14:27 +00:00
PartialVolume
8d02bfe6f8 Merge pull request #157 from PartialVolume/fix_segfault_and_missing_log_lines
Fix segfault & missing log lines
2019-12-10 23:32:16 +00:00
PartialVolume
a215aa14fa Fix segfault & missing log lines
This patch fixes a segfault that occurs when a logfile is specified.
The segfault occurred on exit of nwipe. It did not affect the wipe
process.

This patch also fixes a related issue, at the end of a wipe some
of the log lines were missing on stdout, this occurred when a log
file was not specified as an option.
2019-12-10 23:29:42 +00:00
PartialVolume
1091a5291f Merge pull request #155 from PartialVolume/fix_implicit_declaration_of_fdatasync
Fixes warning "Implicit declaration of function 'fdatasync' is invalid in C99"
2019-12-08 22:37:53 +00:00
PartialVolume
4666f17930 Fixes Implicit declaration of function 'fdatasync' is invalid in C99 2019-12-08 22:26:09 +00:00
PartialVolume
c7a565dbc8 Merge pull request #153 from martijnvanbrummelen/PartialVolume-patch_add_apt-get_update_to-ci_update-16.04.yml-1
Update ci_update-16.04.yml
2019-12-08 11:57:13 +00:00
PartialVolume
f1f1002207 Update ci_update-16.04.yml
As I did with ci.yml (ubuntu-latest) use apt-get update prior to installing system dependencies else CI will fail with missing dependencies when upstream versions change.
2019-12-08 11:56:11 +00:00
PartialVolume
dd9e97ec52 Merge pull request #152 from PartialVolume/gui_status_function_uses_too_much_CPU
Runtime statistics uses too much CPU
2019-12-08 11:46:39 +00:00
PartialVolume
11a0c2de6b Runtime statistics uses too much CPU
During testing a single drive two cores consistently run at close to 100%,
one core at 100% and the other varying between 80-100%. This shouldn't be
the case. Although there would be two threads running, i.e. the gui status
thread and the disk drives wipe thread I would have expected the amount of
CPU required to calculate the on screen stats to be insignificant as they
are only updated once a second.

To reduce the gui stats thread to near zero% while still maintaining the
stats update at one second I inserted an nanosleep interval of 100ms. This
now means that only the one core now shows at 80-100% while all other cores
are close to zero.
2019-12-08 11:40:14 +00:00
PartialVolume
68c3cfe5ca Delete example_wipe.png
No longer required.
2019-12-05 00:05:50 +00:00
PartialVolume
1717958843 Add animated gif 2019-12-05 00:02:29 +00:00
PartialVolume
01648108a0 Update README.md with animated gif
Example in animated gif format.
2019-12-04 23:59:49 +00:00
PartialVolume
b102bee6fa Update version.c
Make the change in both version strings.
2019-12-04 22:09:12 +00:00
PartialVolume
551836e092 Update version.c with release candidate versioning
To avoid confusion, the master code should have the version number in the title bar. The version number shown in the master should be the version number of the next (unreleased version) followed by the suffix rc1. As an example, the current official released version is 0.26 so in the master title bar the version should be 0.27rc1, i.e. the release candidate for the proposed release 0.27.
2019-12-04 22:07:59 +00:00