- test SATA drives correctly
This commit is contained in:
parent
b34dd23a3e
commit
438b8096e5
@ -53,7 +53,8 @@ for drive in drives:
|
|||||||
if float(getfile("/sys/module/libata/version")) < 1.20:
|
if float(getfile("/sys/module/libata/version")) < 1.20:
|
||||||
comment = "# not yet supported in this kernel version\n# "
|
comment = "# not yet supported in this kernel version\n# "
|
||||||
if not comment:
|
if not comment:
|
||||||
status = os.system("/usr/sbin/smartctl -i /dev/%s 2>&1 >/dev/null" % drive.device)
|
status = os.system("/usr/sbin/smartctl -i %s/dev/%s 2>&1 >/dev/null" %
|
||||||
|
(driver, drive.device))
|
||||||
if not os.WIFEXITED(status) or os.WEXITSTATUS(status) != 0:
|
if not os.WIFEXITED(status) or os.WEXITSTATUS(status) != 0:
|
||||||
comment = "# smartctl -i returns error for this drive\n# "
|
comment = "# smartctl -i returns error for this drive\n# "
|
||||||
print "%s/dev/%s %s-H -m root" % (comment, drive.device, driver)
|
print "%s/dev/%s %s-H -m root" % (comment, drive.device, driver)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Tools for monitoring SMART capable hard disks
|
Summary: Tools for monitoring SMART capable hard disks
|
||||||
Name: smartmontools
|
Name: smartmontools
|
||||||
Version: 5.33
|
Version: 5.33
|
||||||
Release: 5
|
Release: 6
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -72,6 +72,9 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 22 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-6
|
||||||
|
- test SATA drives correctly
|
||||||
|
|
||||||
* Wed Mar 22 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-5
|
* Wed Mar 22 2006 Tomas Mraz <tmraz@redhat.com> - 1:5.33-5
|
||||||
- add default /etc/sysconfig/smartmontools file
|
- add default /etc/sysconfig/smartmontools file
|
||||||
- ignore errors on startup (#186130)
|
- ignore errors on startup (#186130)
|
||||||
|
Loading…
Reference in New Issue
Block a user