Commit Graph

236 Commits

Author SHA1 Message Date
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
PartialVolume
4dc84a727c Update version.c, Simplify the title text 2019-12-04 21:50:48 +00:00
PartialVolume
3c55dda2f4 Update README.md, two methods
run from src folder or installed copy
2019-12-03 23:01:30 +00:00
PartialVolume
52bcea8ee1 Update README.md with info on running 2019-12-03 22:55:50 +00:00
PartialVolume
0e15c16cac Update README.md, multiple disk wipe info 2019-12-03 22:18:10 +00:00
PartialVolume
01bc6b92b7 Less bright border ! 2019-12-03 21:55:22 +00:00
PartialVolume
6858e42fcf Update README.md with usage info.
i.e. command line or GUI.
2019-12-03 21:49:02 +00:00
PartialVolume
70b7497734 Add border to image 2019-12-03 21:41:03 +00:00
PartialVolume
178bc558fa Add an example of nwipe in GUI mode 2019-12-03 21:40:27 +00:00
PartialVolume
c0dc1e9ff7 Add example of how nwipe looks during a wipe 2019-12-03 21:33:42 +00:00
PartialVolume
bc5bfb73a7 Create example_wipe.png 2019-12-03 21:26:47 +00:00
PartialVolume
e37ccd4fdb Update readme.md URLs to Parted Magic and Shredos 2019-12-03 20:50:12 +00:00
PartialVolume
48c01f7cfa Update readme with wipe methods 2019-12-03 20:40:45 +00:00
PartialVolume
5004c15481 Merge pull request #144 from PartialVolume/add_error_checking_code_tidy_up
Add error checking code to pthread_mutex_lock functions
2019-12-01 22:26:07 +00:00
PartialVolume
3110267373 Add error checking code to pthread_mutex_lock functions
Move flush of logs into final cleanup function
Minor alteration to one or two error messages
2019-12-01 22:22:47 +00:00
PartialVolume
82e4d1b2ea Merge pull request #136 from louib/backspace_as_return
Update footers for key commands.
2019-11-30 23:14:55 +00:00
PartialVolume
a16a67d84e Merge pull request #143 from martijnvanbrummelen/PartialVolume-patch-1
Update ci.yml with apt-get update
2019-11-30 19:56:41 +00:00
PartialVolume
881ddcf0cb Update ci.yml 2019-11-30 19:49:40 +00:00
PartialVolume
1360196be2 Merge pull request #142 from martijnvanbrummelen/PartialVolume-patch-2
Update Readme with CI workflow ubuntu.16.04 badge
2019-11-30 17:55:33 +00:00
PartialVolume
91dfc37574 Update Readme with CI workflow ubuntu.16.04 badge 2019-11-30 17:54:49 +00:00
PartialVolume
675dd694a3 Rename ci_ubuntu-16.04 to ci_ubuntu-16.04.yml 2019-11-30 17:50:56 +00:00
PartialVolume
3ab826f11d Merge pull request #141 from martijnvanbrummelen/PartialVolume-patch-1
Create ci_ubuntu-16.04
2019-11-30 17:48:06 +00:00
PartialVolume
2cd8fce66a Create ci_ubuntu-16.04
Add workflow for ubuntu 16.04 test
2019-11-30 17:47:25 +00:00
PartialVolume
649cc09da0 Merge pull request #140 from martijnvanbrummelen/PartialVolume-patch-1
warning: logical 'or' of collectively exhaustive tests is always true
2019-11-30 17:20:25 +00:00
PartialVolume
c064a66115 warning: logical 'or' of collectively exhaustive tests is always true
If using || in the while statement and if 'MAX_DRIVE_PATH_LENGTH' was exceeded the while loop would loop indefinitely.
2019-11-30 17:07:14 +00:00
PartialVolume
000ebe6deb Merge pull request #137 from louib/exit_invalid_option
Exit on invalid long option.
2019-11-24 17:11:13 +00:00
PartialVolume
8a7ca91da6 Update URL with correct workflow name
i.e underscores
2019-11-24 17:00:52 +00:00
PartialVolume
404962e6fc Update README.md
Update URL to badge for new workflow name
2019-11-24 16:57:09 +00:00
PartialVolume
f96f17b0a6 Update ci.yml
Maybe better to use ubuntu-latest so we don't need to update every so often.
2019-11-24 16:51:15 +00:00
louib
d3ddd8d2ac Exit on invalid long option. 2019-11-24 11:14:28 -05:00
louib
974f323857 Update footers for key commands.
Update the footers for the commands available in each
screen. Also added the possibility to cancel from the
rounds screen. It was possible to cancel with backspace
from the other screens (method prng etc) but this was not
displayed in the footers. Added the `Ctrl-C` command
to all the footers since this is a global command.
Added the `Left` command to the rounds screen, since it
was implemented but not documented.
Also made sure the Ctrl-C was placed at the end on every
footer.
2019-11-24 10:52:22 -05:00
PartialVolume
4f6354919b Merge pull request #135 from louib/github-ci
Adding GitHub CI build process.
2019-11-24 08:25:39 +00:00
louib
2a7d07676b Adding CI badge 2019-11-23 21:31:45 -05:00