- enable SMART on disks when smartd-conf.py runs (fix by Calvin Ostrum)

(#214502)
This commit is contained in:
Tomáš Mráz 2007-02-22 12:13:39 +00:00
parent 58a0b164f9
commit 7e063ef16c
2 changed files with 6 additions and 2 deletions

View File

@ -82,7 +82,7 @@ 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 %s%s 2>&1 >/dev/null" % status = os.system("/usr/sbin/smartctl -s on -i %s%s 2>&1 >/dev/null" %
(driver, drive.device)) (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# "

View File

@ -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.36 Version: 5.36
Release: 7%{?dist} Release: 8%{?dist}
Epoch: 1 Epoch: 1
Group: System Environment/Base Group: System Environment/Base
License: GPL License: GPL
@ -81,6 +81,10 @@ exit 0
%changelog %changelog
* Thu Feb 22 2007 Tomas Mraz <tmraz@redhat.com> - 1:5.36-8
- enable SMART on disks when smartd-conf.py runs (fix
by Calvin Ostrum) (#214502)
* Mon Feb 12 2007 Tomas Mraz <tmraz@redhat.com> - 1:5.36-7 * Mon Feb 12 2007 Tomas Mraz <tmraz@redhat.com> - 1:5.36-7
- redirect service script output to null (#224566) - redirect service script output to null (#224566)