#1720: On 2.6.15.4/UDEV085, swapon sometimes fails
-------------------------------------+--------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  [EMAIL PROTECTED]
     Type:  defect                   |       Status:  assigned                  
  
 Priority:  normal                   |    Milestone:                            
  
Component:  Bootscripts              |      Version:  udev_update               
  
 Severity:  blocker                  |   Resolution:                            
  
 Keywords:                           |  
-------------------------------------+--------------------------------------
Comment (by [EMAIL PROTECTED]):

 You have not added a bugreport with both the mkdir and udev-086. If that
 combination produces the bugreport, read further. Otherwise, ignore.

 No need to try udev-087. Even if this "fixes" the bug, please revert to
 086, because that's accidental.

 I '''think''' that the only way to handle this bug is to change the
 waiting part. But that's a big sledgehammer that only reduces the
 probability of the failure to something like 10^-10^ instead of completely
 eliminating it.

 Instead of

 {{{
         loop=300
         while test -d /dev/.udev/queue; do
             sleep 0.1
             test "$loop" -gt 0 || break
             loop=$(($loop - 1))
         done
 }}}

 try (completely untested)

 {{{
         loop=300
         confirm=0
         while true ; do
             sleep 0.1
             test -d /dev/.udev/queue && confirm=0 || confirm=$(( $confirm
 + 1 ))
             loop=$(( $loop - 1 ))
             test $loop -gt 0 || break
             test $confirm -lt 10 || break
         done
 }}}

 This is supposed to exit the loop not when the /dev/.udev/queue directory
 disappears for a moment, but when it also doesn't reapear 10 times in
 succession.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/1720>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to