Daniel Kobras schrieb am Sun 20. Mar, 16:50 (+0100) :
> On Wed, Mar 16, 2005 at 05:41:53PM +0100, Jörg Sommer wrote:
> > Spinning down /dev/discs/disc0/disc.
> > Syncing /dev/hda
> > Syncing /dev/hda1
> > Syncing /dev/hda2
> > Syncing /dev/hda3
> > Syncing /dev/hda4
> > Syncing /dev/hda5
> > Syncing /dev/hda6
> > Syncing /dev/dm-0
> > Syncing /dev/hda
> > Syncing /dev/hda1
> > Syncing /dev/hda2
> > Syncing /dev/hda3
> > Syncing /dev/hda4
> > Syncing /dev/hda5
> > Syncing /dev/hda6
> > Syncing /dev/dm-0
> > Sending spindown command to /dev/discs/disc0/disc.
> > 
> > But if devfs is used and one of these devices does not exist, a modprobe
> > is triggered, which access the disc and no spin down happens. It's a
> > vicious circle.
> 
> Which one of those does not exist?

All. 
$ ls -l /dev/dm* /dev/hd*
ls: /dev/dm*: Datei oder Verzeichnis nicht gefunden
ls: /dev/hd*: Datei oder Verzeichnis nicht gefunden

> noflushd parses /proc/partitions and
> only tries to access devices that are listed in there. I might have to
> blacklist the device mapper node, though.

Interessting. /proc/partitions show the partitions in old-style, while I
use devfs-style. Maybe you should check if the device nodes exist, before
spinning down the disc.

$ cat /proc/partitions 
major minor  #blocks  name

   3     0   29302560 hda
   3     1         31 hda1
   3     2        800 hda2
   3     3    4194304 hda3
   3     4    1048576 hda4
   3     5   18874368 hda5
   3     6    5184480 hda6
 254     0   18874368 dm-0

Jörg.

-- 
Es liegt in der Natur des Menschen, vernünftig zu denken und
unlogisch zu handeln! Das Gesagte ist nicht das Gemeinte und das Gehörte
nicht das Verstandene! 

Attachment: signature.asc
Description: Digital signature

Reply via email to