Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#12 noflushd-2.7.3 on 2.6.x doesn't spin down SCSI disks

closed-fixed
Daniel Kobras
None
5
2004-08-08
2004-05-30
No

I had (a modified) noflushd working fine with two
external FireWire disks under 2.4.25. When running
2.6.x I noticed that noflushd complained about "No
entry for (x,y) although the devices were properly
attached as SCSI disks with 8/y major/minor numbers. So
I looked through the source and found that both
disk_stat.c:check_newstyle_25 and
disk_stat.c:update_io_25 only scan for diskstat lines
with devices named hdxx; since the FireWire pseudo-SCSI
devices are named sda, sdb etc. they are not found and
cannot be spun down.
As a quick fix I changed the scanning format string to
"sdxx" and - as if by magic! - the drives are being put
to sleep (and properly woken up again ;-)
It would be nice if noflushd would recognize not only
"hd"-device names by default when using 2.5-new style
statistics, especially since they are already found in
the device list.

Thanks for noflushd!
Holger

Discussion

  • Logged In: NO

    I tried the patched version with a real SCSI disk it ist spinned down correctly
    but spinning up don't works.
    He tries to spin up ("Spinning up /dev/scsi/host0/bus0/target0/lun0/disc after
    1 minutes.") but nothing happens.

     
  • Logged In: NO

    I tried the patched version with a real SCSI disk it ist spinned down correctly
    but spinning up don't works.
    He tries to spin up ("Spinning up /dev/scsi/host0/bus0/target0/lun0/disc after
    1 minutes.") but nothing happens.

    Stefan
    gelbemauer AT gmx DOT de

     
  • Daniel Kobras
    Daniel Kobras
    2004-08-08

    Logged In: YES
    user_id=7832

    Thanks. I committed a fix to CVS. As for Stefan's spinup problems -
    spinup is entirely handled by the kernel, so please make sure the scsi-
    idle patch is applied and works as advertised.

     
  • Daniel Kobras
    Daniel Kobras
    2004-08-08

    • assigned_to: nobody --> nold
    • status: open --> closed-fixed