Commit Graph

878 Commits

Author SHA1 Message Date
PartialVolume
cad05c685a Merge pull request #513 from PartialVolume/Fix_segfault_on_first_run_as_non_root
Fix_segfault_on_first_run_as_non_root
2023-11-02 19:55:47 +00:00
PartialVolume
499ad925ae Fix_segfault_on_first_run_as_non_root
Incorrectly trying to close a uninitialised file
pointer stream when the file could not be opened.
2023-11-02 19:47:53 +00:00
PartialVolume
2c17e32189 Update CHANGELOG.md
Added info about temperature thread in 0.35
2023-11-02 17:36:21 +00:00
PartialVolume
68561873ba Update README.md
Updates to README.md for version 0.35
2023-11-02 17:30:50 +00:00
PartialVolume
a30f92425c Merge pull request #512 from PartialVolume/master
Updates to CHANGELOG.md
2023-11-01 23:12:18 +00:00
PartialVolume
cb7d3d1664 Update CHANGELOG.md
Added further information about HPA/DCO
2023-11-01 23:09:22 +00:00
PartialVolume
869804f6c1 Update CHANGELOG.md
Correct some typos in CHANGELOG.md
2023-11-01 23:04:10 +00:00
PartialVolume
61cca3141e Update CHANGELOG.md
Change version number to header format ( Large, bold)
2023-11-01 23:02:22 +00:00
PartialVolume
07b83f053b Merge pull request #511 from PartialVolume/Add_changes_to_CHANGELOG.md_for_0.35_release
Update CHANGELOG.md for 0.35 release
2023-11-01 22:55:53 +00:00
PartialVolume
fd3bbd8523 Update CHANGELOG.md for 0.35 release 2023-11-01 22:52:51 +00:00
PartialVolume
1b37bcef84 Merge pull request #510 from PartialVolume/Bump_version_to_0.35
Bump version to 0.35
2023-11-01 20:13:48 +00:00
PartialVolume
f3179cf748 Bump version to 0.35 2023-11-01 20:07:33 +00:00
PartialVolume
fba63312ad Merge pull request #509 from PartialVolume/Create_PDF_Certificate_Group
Create_PDF_Certificate_Group
2023-11-01 19:52:03 +00:00
PartialVolume
1b9a376186 Create_PDF_Certificate_Group
The code that handles nwipe.conf now checks
an existing nwipe.conf for the correct default
groups. This allows future additions to the
nwipe.conf file to be added to an existing nwipe.conf
file. This makes the code more robust.

The code that handles creation of groups, settings and
values has been made into a function so any future additions
to nwipe.conf can be added with a single call to this function.

i.e
nwipe_conf_populate( "Default_Wipe.Method", "PRNG" );

The code can now handle creation of groups to a arbitrary
depth of four levels, however currently we only use a
group depth of 1.

i.e
CCC :
{
 XXX :
 {
   YYY :
   {
     ZZZ :
     {
     };
     TTT :
     {
     };
   };
 };
};
2023-11-01 19:39:43 +00:00
PartialVolume
eaa7603aaf Merge pull request #508 from PartialVolume/Fix_warning_directive_output_may_be_truncated
Fix_warning_directive_output_may_be_truncated

Fixed the following warning:

create_pdf.c:795:18: warning: ‘/nwipe_report_’ directive output may be truncated writing 14 bytes into a region of size between 1 and 4096 [-Wformat-truncation=]
2023-10-24 20:30:30 +01:00
PartialVolume
26ae763379 Fix_warning_directive_output_may_be_truncated
Fixed the following warning:

create_pdf.c:795:18: warning: ‘/nwipe_report_’ directive
output may be truncated writing 14 bytes into a region of
size between 1 and 4096 [-Wformat-truncation=]
2023-10-24 20:22:23 +01:00
PartialVolume
95021ef0c3 Merge pull request #507 from PartialVolume/Fix_message_Creating_PDF_report_in
The message that logs which directory the nwipe PDF certificate is being saved, was being printed multiple times in the middle of the erasure summary table.

This was corrected so that it only prints once at the end of the table
2023-10-23 22:15:49 +01:00
PartialVolume
8ce7b077bf Fix_message_creating_PDF_in
The message that displays where the nwipe PDF certificate
is being saved was being printed multiple times in the
middle of the erasure summary table.

This was corrected so that it only prints once at the end
of the table.
2023-10-23 22:08:23 +01:00
PartialVolume
603716e990 Merge pull request #505 from ggruber/master
sort the device list
2023-10-22 00:47:07 +01:00
PartialVolume
7fb2a77c7a Merge pull request #506 from PartialVolume/temperature_thread
Temperature Thread
2023-10-22 00:45:59 +01:00
PartialVolume
28068ebf97 Temperature Thread
Due to significant delays in obtaining drive temperature
from some drives especially SAS which was causing a noticeable
freeze of a second or two or more in the GUI wipe status
screen, being made worse the more drives that were being
simultaneously wiped.

The temperature update code was separated from the GUI code
by placing the temperature update in it's own thread.
2023-10-22 00:25:01 +01:00
Gerold Gruber
539a023fd7 sort the device list 2023-10-20 18:43:46 +02:00
PartialVolume
04dae6da32 Merge pull request #504 from ggruber/master
fixed min/max wrong set
2023-10-20 09:15:17 +01:00
Gerold Gruber
dcef86fb0b fixed min/max wrong set 2023-10-20 00:56:35 +02:00
PartialVolume
193cc8f0b2 Merge pull request #503 from PartialVolume/Fix_temperature_colour_part2
Fix_temperature_colour_part2
2023-10-17 19:43:39 +01:00
PartialVolume
1ee1bb1966 Fix_temperature_colour_part2
Reverted change in wprintw_temperature()
as that was not causing the red temperature
character.
2023-10-17 19:38:22 +01:00
PartialVolume
d9785d2b84 Merge pull request #502 from PartialVolume/red_temperature_fix
Fix red text on temperature
2023-10-17 18:12:13 +01:00
PartialVolume
c02dbe42ce Fix red text on temperature
This was due to incorrectly changing temperature
colour based on historical highest and lowest values.

Also removed some debug nwipe_log code
2023-10-17 18:03:39 +01:00
PartialVolume
7ce28ce61a Merge pull request #498 from ggruber/master
improved SCSI disk handling
2023-10-17 12:43:39 +01:00
PartialVolume
7d2517a120 Merge pull request #501 from PartialVolume/Change_HPA_message_to_stop_flashing_move_to_end_of_line
Change_HPA_message_to_stop_flashing_&_move_to_end_of_line
2023-10-17 11:24:41 +01:00
PartialVolume
725c79b9d0 Change_HPA_message_to_stop_flashing_&_move_to_end_of_line
The HPA message alternating with the drive model serial
number made reading the serial number quite a challenge
and made the display far too messy looking when displaying
20+ drives or even 10+ drives with differing HPA statuses.

Removed, alternating appearance.
Reduced size of message.
Placed after temperature, before drive model/serial in display.
2023-10-17 09:46:11 +01:00
PartialVolume
ab9d269bb1 Merge pull request #500 from PartialVolume/PDF_Gen37_single_column_smart_data
PDF_Gen37_single_column_smart_data
2023-10-15 23:22:16 +01:00
PartialVolume
508a6d2a62 PDF_Gen37_single_column_smart_data
Previously smart data was completely located
on page 2 in two columns using a variable width font.
This had two issues. The font size had to be very small
to fit on the page which made it difficult to read
and variable width fonts were used because the smart
attribute table took up too much width when all the data
was displayed in two newspaper type columns. This made the
smart attribute table look messy.

This patch now displays the smart data over page two and three
in mono spaced font and with a larger font size so it's easier
to read and the columns with the smart attribute table are now
aligned correctly.

In terms of the code, I placed the header and footer creation
code in it's own function as this is called multiple times
and will make it easier to add additional information pages
in the future.
2023-10-15 23:16:14 +01:00
PartialVolume
0bb9ee33c9 Merge pull request #499 from PartialVolume/PDFGen36_Add_Optional_Org_Customer_Preview_Prior_To_Drive_Selection
PDFGen36_Add_Optional_Org_Customer_Preview_Prior_To_Drive_Selection.
2023-10-14 22:43:14 +01:00
PartialVolume
f12ee921b8 PDFGen36_Add_Optional_Org_Customer_Preview_Prior_To_Drive_Selection.
Added new options in GUI config menu to display preview of
organisation, customer, date/time at startup prior to drive
selection. This preview is disabled as default but can be
enabled in the config menu.

The purpose of the preview is to allow the user to check &
update as required the organisation details, customer &
current date/time so that the details provided on the PDF
certificate/report are correct.
2023-10-14 22:22:14 +01:00
Gerold Gruber
53d91f4b8b fix lowest 2023-10-13 07:44:56 +02:00
Gerold Gruber
de887ea6ee get better timing information for temperature retrieval 2023-10-12 22:15:18 +02:00
Gerold Gruber
b6f97454f1 more temperatur limit fake for SAS disks 2023-10-12 21:44:51 +02:00
Gerold Gruber
6a92755cf2 detect and display if disk is a SSD 2023-10-12 21:15:31 +02:00
Gerold Gruber
68a6002ff1 temp statistics for SAS drives 2023-10-12 12:37:32 +02:00
Gerold Gruber
47112c4de2 some code cleaning, time debugging added 2023-10-11 00:05:57 +02:00
Gerold Gruber
97efd12b93 fixes 2023-10-10 14:32:32 +02:00
Gerold Gruber
3bc3de37ae included hddtemp code for SCSI disk temperatures 2023-10-10 14:01:20 +02:00
PartialVolume
525cf037c5 Merge pull request #496 from ggruber/master
bustype detection with smartctl works (again?)
2023-10-06 20:38:57 +01:00
Gerold Gruber
f764c39390 bustype detection with smartctl works (again?) 2023-10-06 00:45:44 +02:00
PartialVolume
c6ff341f7e Merge pull request #494 from PartialVolume/fix_endian_model_name
fix_endian_model_name
2023-10-02 22:48:45 +01:00
PartialVolume
948368bc28 Merge pull request #493 from ggruber/master
fix for issue #492
2023-10-02 22:48:22 +01:00
PartialVolume
59d73107f6 fix_endian_model_name
Some IDE USB adapter chipsets get the endian wrong for model name
This fix identifies a endian swapped model name and corrects it.

The function currently only includes Samsung but I'll add more IDE
drive manufacturers as I come across them.

This is peculiar to some USB IDE adapters. I've never seen this
issue with SATA, ATA drives connected directly to the motherboard.
2023-10-02 22:37:54 +01:00
Gerold Gruber
8124e6b3d5 added -P option for PDFreportpath 2023-10-02 20:28:49 +02:00
Gerold Gruber
c1e943d283 improved formatted fix for issue #492 2023-10-02 17:30:28 +02:00