#12 regression in -U flag

closed-fixed
nobody
None
5
2008-02-16
2007-12-27
Pierluigi
No

In new ( 7.6 and 7.7 ) hdparm, the -U flag has some kind of regression bug.
The hwif variable don't get correctly valorized and unregister always the hwif#0:

# hdparm -U 1 /dev/hdc

/dev/hdc:
attempting to unregister hwif#0

# hdparm -U 0 /dev/hdc

/dev/hdc:
attempting to unregister hwif#0

# hdparm -U 1 /dev/hda

/dev/hda:
attempting to unregister hwif#0

# hdparm -U 0 /dev/hda

/dev/hda:
attempting to unregister hwif#0

As you may notice, the hwif is always 0.
This obviously hang the machine as the 0 ( on my machine ) is the first disk.

The same command from 6.6 gives:
# hdparm -U 1 /dev/hdc

/dev/hdc:
attempting to unregister hwif#1

# hdparm -U 0 /dev/hda

/dev/hda:
attempting to unregister hwif#0

which is the correct behaviour.

Discussion

  • Mark Lord

    Mark Lord - 2008-02-16

    Logged In: YES
    user_id=350110
    Originator: NO

    Fixed in v8.1.

    Thanks for the report.

     
  • Mark Lord

    Mark Lord - 2008-02-16
    • status: open --> closed-fixed
     

Log in to post a comment.