Commit graph

33 commits

Author SHA1 Message Date
Andrea Mazzoleni
e56de653da Introduce a new messaging system 2015-02-22 14:31:03 +01:00
Andrea Mazzoleni
14c8307ed4 Extend the "smart" and "down" command to Windows
Now we are able to detect what low level device is associated
to the high level volume.
2015-02-15 18:34:27 +01:00
Andrea Mazzoleni
2ac751b6d9 Put all the stdout output also in stdlog 2015-02-03 19:35:43 +01:00
Andrea Mazzoleni
798de7ca99 Change the flush logic for streams
Now stdout and stderr are always line buffered, and stdlog only
flushed on request.
2015-02-03 18:29:11 +01:00
Andrea Mazzoleni
b5ce575981 Change the log and output handling
Now the log file contains all the errors messages,
and all the tag lines.
2015-02-02 23:39:46 +01:00
Andrea Mazzoleni
65bfca5699 Fix some leak on error found by coverity scan 2015-01-30 23:00:27 +01:00
Andrea Mazzoleni
c110a00452 Make readdir calls in devuuid consistent with other functions 2015-01-30 22:59:53 +01:00
Andrea Mazzoleni
029df96268 Fix an output message 2015-01-30 22:39:32 +01:00
Andrea Mazzoleni
cd1186e434 Support the case of device not in smartctl database 2015-01-29 22:52:17 +01:00
Andrea Mazzoleni
f706da1cc6 Share smartctl support between different platforms 2015-01-24 19:43:01 +01:00
Andrea Mazzoleni
356c36cda0 Report the smartctl fail/prefail conditions 2015-01-24 17:55:59 +01:00
Andrea Mazzoleni
88aa107596 Use a more precise error detection when running external programs 2015-01-24 14:10:23 +01:00
Andrea Mazzoleni
f974a8378b Add error control at the smart command 2015-01-23 22:59:29 +01:00
Andrea Mazzoleni
fca475f136 Remove device sorting to keep the original order 2015-01-16 19:14:07 +01:00
Andrea Mazzoleni
80982a8455 Scan for all devices in the SMART report 2015-01-16 18:52:31 +01:00
Andrea Mazzoleni
951e4e5c98 Add the ATA error count in the SMART report.
And other minor changes.
2015-01-15 22:47:21 +01:00
Andrea Mazzoleni
4a41adc807 Add preliminary SMART support with a new "smart" command. 2015-01-14 22:29:20 +01:00
Andrea Mazzoleni
16b872e30c Refactors the new spin support with some rename and function splitting. 2015-01-11 17:43:31 +01:00
Andrea Mazzoleni
9517e0c622 Prints also the disk name when listing devices. 2015-01-10 10:21:26 +01:00
Andrea Mazzoleni
04965646d3 Disables special device support if not in Linux.
This fixes build issues in other OS.
2015-01-02 22:51:10 +01:00
Andrea Mazzoleni
ffe7f6fa57 Adds new files support.c/h for low level support functions. 2015-01-02 18:52:04 +01:00
Andrea Mazzoleni
b24807704e Adds preliminary support for spinning up and down commands. 2015-01-02 15:53:15 +01:00
Andrea Mazzoleni
8c98864395 Uses the OS random support instead of rand(). 2014-12-27 11:56:55 +01:00
Andrea Mazzoleni
7e9a5e6a6d Stores the free space in the content file.
This avoids the need to access data and parity disks in
the status command.
Also removed some data disk access, in list, dup and similar
commands that don't need to scan the disks.
2014-11-09 19:14:29 +01:00
Andrea Mazzoleni
98deb4ba91 Fixes a recurring typo in comments. 2014-10-19 21:09:22 +02:00
Andrea Mazzoleni
3e2d805d08 Extends the status command to show free space. 2014-10-13 23:47:25 +02:00
Andrea Mazzoleni
a0c6965959 Reads the physical offset only for new files. 2014-10-03 21:28:56 +02:00
Andrea Mazzoleni
876bddcf4c Beautifies the code. 2014-09-27 00:32:39 +02:00
Andrea Mazzoleni
605e7da478 Adjusts a comment to make it more clear. 2014-09-21 22:27:56 +02:00
Andrea Mazzoleni
12f77ed778 Fixes build in OS X. 2014-07-11 18:39:45 +02:00
Andrea Mazzoleni
5dfc67ec18 Keeps stats about usage time of disk and cpu. 2014-06-25 22:32:36 +02:00
Andrea Mazzoleni
dde48ca299 Adds a comment about not using inode order by default. 2014-04-03 22:52:53 +02:00
Andrea Mazzoleni
44ef039a13 Different source organization. 2014-03-23 17:50:27 +01:00
Renamed from src/unix.c (Browse further)