Made official exclusive==2 with burn_preset_device_open()

This commit is contained in:
Thomas Schmitt 2006-09-28 07:51:38 +00:00
parent 22202a4301
commit 6dbcf6a8f4
1 changed files with 4 additions and 1 deletions

View File

@ -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.