strange startup script

Bug #148450 reported by Dominik Holler
4
Affects Status Importance Assigned to Milestone
hdapsd (Ubuntu)
Invalid
Undecided
Evgeni Golov

Bug Description

Binary package hint: hdapsd

If I start via
sudo /etc/init.d/hdapsd start
there is the error
* Not starting hdapsd: /sys/block/hda/queue/protect does not exist
from do_checkprotect().
If I start via
sudo /etc/init.d/hdapsd restart
do_checkprotect() is not called and the daemon is starting.

What is the reason of do_checkprotect() ?
Is this function checking the aviability of an kernel-patch not included in ubutnu ?

Revision history for this message
Dominik Holler (dominik-holler) wrote :

I see: the script assumes the hdaps device is hda.
On my T41 dmesg | grep hdaps says:
[ 20.500000] hdaps: IBM ThinkPad T41 detected.
[ 20.500000] hdaps: initial latch check good (0x01).
[ 21.520000] hdaps: device successfully initialized.
[ 21.520000] input: hdaps as /class/input/input5
[ 21.520000] hdaps: driver successfully loaded.

how to create /sys/block/XXX/queue/protect ?
is this a dup of #147383 ?

Revision history for this message
Evgeni Golov (evgeni) wrote :

Please read /usr/share/doc/hdapsd/README.Debian, your kernel needs a patch!

Changed in hdapsd:
assignee: nobody → sargentd
status: New → Invalid
Revision history for this message
Stefan Hammer (j-4-deactivatedaccount) wrote :

I have the same error with 2.6.28, which does not need the patch any more.
Anyone here, who can hepl me?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.