Package: hdparm
Version: 9.15-1

Hello,

/etc/udev/rules.d/z60_hdparm.rules -> /etc/udev/hdparm.rules calls
/etc/init.d/hdparm, which, in turn, calls /bin/sync during its run.

This is not a good idea: sync can block quite a long time, which then
leads to notable delays (read: hours) in the processing of hotplug
events.

For example, try `dd if=/dev/zero of=/dev/some-large-bdev bs=64k' and
while it runs plug-in a partitioned USB-Stick. The /dev/sdX node will
appear, but the partitions, i.e. /dev/sdX1 will not appear until dd has
finished, because the sync called from the hdparm script blocks until
then.


Thanks for your work & regards,
   Mario
-- 
It is practically impossible to teach good programming style to students
that have had prior exposure to BASIC: as potential programmers they are
mentally mutilated beyond hope of regeneration.  -- Dijkstra

Attachment: signature.asc
Description: Digital signature

Reply via email to