1
0
Fork 0

disk plugin: use APM value 254 for cleanup

related: rhbz#905195

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2013-02-18 11:26:07 +01:00
parent 7a4d1f2399
commit fe3d97a8fa

View file

@ -157,7 +157,7 @@ class DiskPlugin(hotplug.Plugin):
def _instance_unapply_dynamic(self, instance, device):
if device in instance._idle and instance._idle[device]["level"] > 0:
log.debug("%s restoring power and spindown settings" % device)
tuned.utils.commands.execute(["hdparm", "-S0", "-B255", "/dev/%s" % device])
tuned.utils.commands.execute(["hdparm", "-S0", "-B254", "/dev/%s" % device])
def _elevator_file(self, device):
return os.path.join("/sys/block/", device, "queue/scheduler")