Changes 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Revision history for Disk-SMART
  2. 0.15 2016-11-05
  3. Added check for root as the executing user, updated unit tests
  4. 0.14 2015-06-14
  5. Fixed to run unit tests without smartctl binary being installed
  6. 0.13 2015-06-12
  7. Removed bad mocking code from module and unit tests and refactored to use Test::MockModule
  8. Refactored getting smart output into subroutine
  9. 0.12 2015-05-02
  10. Added get_disk_list() to detect sdX and hdX devices
  11. Changed new() to use get_disk_list() if no device list is passed to it
  12. Changed shell call to 'which' to use File::Which
  13. Changed update_data() to take a list of devices
  14. 0.11 2014-11-24
  15. Updated POD
  16. Code cleanup.
  17. Added extended output to get_disk_health() that will report any values > 1 from specific attributes that show impending drive failure
  18. 0.10 2014-10-18
  19. Updated regex to get disk temperature to look for two different lines that could contain temp
  20. Corrected get_disk_attributes() to return hash correctly on Perl < 5.14
  21. 0.09 2014-10-17
  22. Minor changes to get unit tests to pass on smokers
  23. Added testing of env parameter for smartctl path, which will enable multi OS support
  24. Added COMPATABILITY pod section
  25. 0.08 2014-10-16
  26. Corrected test data var name in new();
  27. 0.07 2014-10-15
  28. Implemented dummy testing in unit tests to bypass the need for smokers having smartctl installed
  29. Regex and function cleanups
  30. Added run_short_test() to run the SMART short self test and unit tests for it
  31. 0.06 2014-10-09
  32. Fixed issue with N/A disk temp not returning correctly and causing failure
  33. 0.05 2014-10-08
  34. Separated out data processing from the getter methods. Getter methods now only return hash data.
  35. Added methods and unit tests for update_data() and get_disk_attributes(). update_data() can be called at any point in a calling script to update the drive data. This makes it where Disk::SMART can be used in a script called by cron, or a continuously running daemon.
  36. Updated MANIFEST to include LICENSE file
  37. Changes to satisfy perl critic
  38. Simplified get_disk_temp with substr to read the disk temp
  39. 0.04 2014-10-06
  40. Updated Makefile.PL to better interact with Meta::CPAN
  41. Updated pod for clarity
  42. 0.03 2014-10-04
  43. Added Math::Round to dependency list in Makefile.PL. Credit - Syohei YOSHIDA.
  44. Refactored methods to return N/A first before any further proessing is done
  45. Cleaned up unit tests
  46. get_disk_model() only outputs just the model information now.
  47. Added get_disk_errors()
  48. Methods now validate the device passed to it, to ensure smartctl has already read it
  49. Added unit tests to test passing invalid device to methods
  50. Changed to croak() as I didn't feel a trace was necessary with proper error returning
  51. 0.02 2014-10-03
  52. Added confess to new() in case smartctl cannot find the specified device
  53. 0.01 2014-10-03
  54. First version, released on an unsuspecting world.