Improved and documented workaround for udev

This commit is contained in:
2011-09-21 13:34:21 +00:00
parent d17f399a68
commit e535a57118
4 changed files with 86 additions and 11 deletions

View File

@ -92,6 +92,21 @@ Make sure to re-compile all source files after running ./configure
make install
Linux only:
libburn tries to avoid a collision with udev's drive examination by waiting
0.1 seconds before opening the device file for a longer time, after udev
might have been alarmed by drive scanning activities.
The waiting time can be set at ./configure time with microsecond granularity.
E.g. 2 seconds:
CFLAGS="$CFLAGS -DLibburn_udev_wait_useC=2000000"
./configure ...options...
Closing and re-opening can be disabled by zero waiting time:
CFLAGS="$CFLAGS -DLibburn_udev_wait_useC=0"
Alternatively, libburn can try to be nice by opening the device file,
closing it immediately, waiting, and only then opening it for real:
CFLAGS="$CFLAGS -DLibburn_udev_extra_open_cyclE"
------------------------------------------------------------------------------
An important part of the project, libisofs, is hosted in a bzr repository at