#11 Autoprobing does not work

closed-fixed
None
5
2004-04-08
2004-03-19
No

There is a problem with disk autodetection. If I don't give any disk
name as parameter, the behaviour is as follows:

-----

vobluda:~# noflushd -v -d -n 1
Kernel talks oldstyle dev
Added entry for hda (3, 0)
No devices given - autoprobing.
Added disk hda, current timeout 60, state 2
Controlling pdflush daemon
Kernel talks linux 2.5-style stat
Kernel talks oldstyle dev
Probing for valid blkdev at /dev/hda
Detected oldstyle dev at /dev/hda
pdflush stopped
Check interval 5

...

Disk hda, Time left 0.
Spinning down hda.
Syncing /dev/hda
Syncing /dev/hda1
Syncing /dev/hda2
Syncing /dev/hda3
Syncing /dev/hda4
Syncing /dev/hda
Syncing /dev/hda1
Syncing /dev/hda2
Syncing /dev/hda3
Syncing /dev/hda4
Sending spindown command to hda.
Error: Could not open hda for spindown
rw disks: 0 stopped, 1 spinning

-----

However, if I mention /dev/hda, everything works correctly. I
guess it's because my /proc/partitions contains:

-----

major minor #blocks name

3 0 39088896 hda
3 1 5855661 hda1
3 2 498015 hda2
3 3 3437910 hda3
3 4 29294527 hda4

-----

I.e. only hda and not /dev/hda. And to confirm that:

vobluda:~# noflushd -v -d -n 1 /dev/hda
Kernel talks oldstyle dev
Added entry for hda (3, 0)
Added disk /dev/hda, current timeout 60, state 2
^^^^^^^^^
Here the autodetection mentions only "hda". The same goes for the
"Sending spindown command to hda." message.

I'm running Debian testing, with 2.6.4 kernel and version 2.7.2 of
noflushd.

Regards,
Jan

Discussion

  • Daniel Kobras

    Daniel Kobras - 2004-03-29

    Logged In: YES
    user_id=7832

    You are right, of course. I've been considering several quick fixes that are rather ugly, and a clean fix that involves significant changes to core internals. I haven't made up my mind so far, and me being short on time currently, it might take a couple of days still for the fix to appear. In the meantime, please explicitly state all hard disks on the command line as a workaround.

     
  • Daniel Kobras

    Daniel Kobras - 2004-03-29
    • assigned_to: nobody --> nold
     
  • Daniel Kobras

    Daniel Kobras - 2004-04-08

    Logged In: YES
    user_id=7832

    The bug is fixed in noflushd version 2.7.3.

     
  • Daniel Kobras

    Daniel Kobras - 2004-04-08
    • status: open --> closed-fixed
     

Log in to post a comment.