[DRBD-user] initscript & udev

Lars Marowsky-Bree lmb at suse.de
Wed Jun 30 17:56:16 CEST 2004

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On 2004-06-30T17:48:58,
   Philipp Reisner <philipp.reisner at linbit.com> said:

> > +
> > +    sleep 1 # make sure udev has time to create the device files
> >  }
> >
> >  case "$1" in
> 
> Thx, just commited to CVS.

Philipp, the patch is somewhat simplistic; on a loaded system (where
udev is just busy) it may take longer or not. What about something like:

while (( ! -e /dev/nb0 && timeout-- )) ; do sleep 1 ; done

?

Sincerely,
    Lars Marowsky-Brée <lmb at suse.de>

-- 
High Availability & Clustering	    \ ever tried. ever failed. no matter.
SUSE Labs, Research and Development | try again. fail again. fail better.
SUSE LINUX AG - A Novell company    \ 	-- Samuel Beckett




More information about the drbd-user mailing list