From a53c0a2fa268ec72e8bd3cb1c2b5a5f02a2e9218 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 28 Sep 2006 07:51:38 +0000 Subject: [PATCH] Made official exclusive==2 with burn_preset_device_open() --- trunk/libburn/libburn.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trunk/libburn/libburn.h b/trunk/libburn/libburn.h index 32a4bb39..aee20e98 100644 --- a/trunk/libburn/libburn.h +++ b/trunk/libburn/libburn.h @@ -404,10 +404,13 @@ void burn_set_verbosity(int level); after burn_initialize() and before any bus scan. But not mandatory at all. Parameter value 1 enables a feature, 0 disables. Default is (1,0,0). Have a good reason before you change it. - @param exclusive Try to open only devices which are not marked as busy + @param exclusive 1 = Try to open only devices which are not marked as busy and try to mark them busy if opened sucessfully. (O_EXCL) There are kernels which simply don't care about O_EXCL. Some have it off, some have it on, some are switchable. + 2 = in case of a SCSI device, also try to open exclusively + the matching /dev/sr, /dev/scd and /dev/st . + 0 = no attempt to make drive access exclusive. @param blocking Try to wait for drives which do not open immediately but also do not return an error as well. (O_NONBLOCK) This might stall indefinitely with /dev/hdX hard disks.