Mentioned configure-time options for udev anti-collision waiting time

This commit is contained in:
Thomas Schmitt 2011-09-21 13:44:03 +00:00
parent 5d841d63b5
commit 7d0f899f53
1 changed files with 16 additions and 1 deletions

View File

@ -95,7 +95,8 @@ development package is installed, then rather build xorriso by:
Never omit the "make clean" command after switching libreadline enabling. Never omit the "make clean" command after switching libreadline enabling.
Other deliberate dependency reduction options of ./configure are: Other deliberate dependency reduction options of ./configure are:
--disable-libacl avoid use of ACL functions like acl_to_text() --disable-libacl avoid use of ACL functions like acl_to_text()
--disable-xattr avoid use of xattr functions like listxattr() --disable-xattr avoid use of xattr functions like listxattr() on Linux
resp. extattr_list_file() on FreeBSD
--disable-zlib avoid use of zlib functions like compress2() --disable-zlib avoid use of zlib functions like compress2()
this also avoids the use of libjte and option -jigdo. this also avoids the use of libjte and option -jigdo.
@ -125,6 +126,20 @@ and the cdrecord emulation of xorriso can be told to use this peculiar read
mode by: mode by:
--enable-track-src-odirect --enable-track-src-odirect
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...
Waiting 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 -DLibburn_udev_wait_useC=500000"
Drives and Disk File Objects Drives and Disk File Objects