Commit Graph

90 Commits

Author SHA1 Message Date
localhorst 55481b86fd Show HDD warnings based on sectors (#97)
If one of the following metrics is >0 an warning is shown

* Reallocated_Sector_Count
* Current_Pending_Sector
* Offline_Uncorrectable

Reviewed-on: #97
Co-authored-by: localhorst <localhorst@mosad.xyz>
Co-committed-by: localhorst <localhorst@mosad.xyz>
2026-05-01 15:03:15 +02:00
localhorst 157e769268 Filter loop and cd/dvd drives (#92)
Reviewed-on: #92
Co-authored-by: localhorst <localhorst@mosad.xyz>
Co-committed-by: localhorst <localhorst@mosad.xyz>
2025-12-13 14:16:24 +01:00
localhorst 8a42ccf9c0 Refactor start of delete thread (#90)
Reviewed-on: #90
Co-authored-by: localhorst <localhorst@mosad.xyz>
Co-committed-by: localhorst <localhorst@mosad.xyz>
2025-12-12 22:56:28 +01:00
localhorst 1dce303ab6 Defensive drive state (#89)
fixes #79

Reviewed-on: #89
Co-authored-by: localhorst <localhorst@mosad.xyz>
Co-committed-by: localhorst <localhorst@mosad.xyz>
2025-12-12 22:46:21 +01:00
localhorst 1449e807ad User triggered print of drive lable (#85)
implements #66

Reviewed-on: #85
Co-authored-by: localhorst <localhorst@mosad.xyz>
Co-committed-by: localhorst <localhorst@mosad.xyz>
2025-12-12 22:32:51 +01:00
localhorst c4a960f3cf bugfix/dry-run-tui-freeze (#88)
Fixes #87

Reviewed-on: #88
Co-authored-by: localhorst <localhorst@mosad.xyz>
Co-committed-by: localhorst <localhorst@mosad.xyz>
2025-12-12 22:14:47 +01:00
localhorst 4b0ec380b1 fix atomic 2025-12-10 21:15:39 +01:00
localhorst a4f15460d3 make members atomic 2025-12-10 20:40:48 +01:00
localhorst 15014d8542 Global Using Namespace in Header 2025-12-09 21:58:57 +01:00
localhorst c4cbcb99b5 Signed/Unsigned Comparison 2025-12-09 21:23:02 +01:00
localhorst f9d63a6a3f Mutex Not Held During List Size Check 2025-12-09 21:21:44 +01:00
localhorst 7c92386082 Using sprintf Instead of snprintf 2025-12-09 21:09:25 +01:00
localhorst ba2f036d88 Uninitialized Memory in cLine 2025-12-07 20:41:09 +01:00
localhorst 43ccdbd4d8 fix terminate if no drive is detected 2025-12-07 20:39:04 +01:00
localhorst 460cfeab2c Iterator Invalidation Bug 2025-12-07 20:36:53 +01:00
localhorst 2ca0b8b061 Missing Validation of Pipe Return Value 2025-12-07 20:30:36 +01:00
localhorst 46e8dae697 Race Condition with Shared Drive List 2025-12-07 18:59:19 +01:00
localhorst eded3f166c Revert "Unchecked popen/pclose Return Values"
This reverts commit bcabad0620.
2025-12-07 18:52:10 +01:00
localhorst bcabad0620 Unchecked popen/pclose Return Values 2025-12-07 18:48:38 +01:00
localhorst bc4083a98c Resource Leak - File Descriptor Not Checked 2025-12-07 18:47:24 +01:00
localhorst 2d63788352 Nullptr Return Without Proper Handling 2025-12-07 18:45:42 +01:00
localhorst ff6a1763e0 Memory Leak in Drive Scanning 2025-12-07 18:44:53 +01:00
localhorst 80ffb3c6c3 Merge pull request 'Improve UUID parsing' (#78) from hannesbraun/reHDD:master into master
Reviewed-on: #78
Reviewed-by: Hendrik Schutter <localhorst@mosad.xyz>
2025-12-07 18:15:28 +01:00
hannesbraun 664582f01d Improve UUID parsing
The previous approach only worked if the drive name had three letters (usually sda).
2025-07-25 14:26:20 +02:00
hannesbraun 9f6cfc17f8 Restore terminal state on termination 2025-07-24 18:55:49 +02:00
localhorst d76cb1a195 get connection type 2025-06-21 20:19:30 +02:00
localhorst a0c842d90d add terminate action 2025-06-15 22:16:34 +02:00
localhorst 4ff1888333 ignore system drives as live image 2024-08-19 15:35:22 +02:00
localhorst 87a859f187 skip delete if drive was shredded before 2024-08-16 10:29:12 +02:00
localhorst 952e8c8eeb add new flag 2024-08-16 10:29:12 +02:00
localhorst b1b9870150 remove dryrun 2024-06-02 09:57:12 +02:00
localhorst 77b322d47d ignore system drive 2024-06-02 09:51:22 +02:00
localhorst a665f8638e find system drive 2024-06-02 09:31:55 +02:00
localhorst fb31becf1a get status from smartctl correct 2024-06-01 14:14:58 +02:00
localhorst cb421885d0 filter drives with zero capacity 2024-04-24 22:04:52 +02:00
localhorst aa7ddf8b36 find nvme with lsblk 2024-04-14 11:13:00 +02:00
localhorst 8938fe5047 feature/ipc_mgsqueue_printer (#57)
closes #56

Co-authored-by: localhorst <localhorst@mosad.xyz>
Reviewed-on: #57
2022-11-24 20:41:23 +01:00
localhorst 70bc8cffb4 two lines per entry 2022-09-30 21:20:23 +02:00
localhorst b73e1765b5 separate shred and check process 2022-09-27 21:58:59 +02:00
localhorst 69fd10207d copy newer S.M.A.R.T. values to existing drive 2022-08-24 16:11:36 +02:00
localhorst edcf680b95 update shred metric in main thread instead of shred thread 2022-08-22 18:35:27 +02:00
localhorst 09446b52ca using tfng instead of urandom 2022-08-22 15:27:29 +02:00
localhorst 4862a45ef6 remove unnecessary mutesx 2022-08-21 16:24:55 +02:00
localhorst 70f5727eb3 protect lists with mutex 2022-08-21 15:52:47 +02:00
localhorst e3aefb24ee added feature to start shredding for all drives 2022-08-20 16:09:40 +02:00
localhorst 48bbad914f display used time to shred drive 2022-05-11 23:45:05 +02:00
localhorst 033760c328 disk uuid changed to 8 byte long 2022-05-11 21:53:58 +02:00
localhorst af38d60982 code cleanup 2022-01-26 19:33:41 +01:00
localhorst 25d8ca6920 filter drives only based on UUID 2022-01-26 19:21:38 +01:00
localhorst 84e42a430b dis[play capacity as double 2022-01-26 16:31:46 +01:00