Made use of fcntl(F_SETLK) switchable (and thus became more free with default)

This commit is contained in:
Thomas Schmitt 2007-04-13 17:28:25 +00:00
parent c007d17a37
commit 9ac0344838
3 changed files with 9 additions and 3 deletions

View File

@ -2,7 +2,7 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH CDRSKIN 1 "April 03, 2007"
.TH CDRSKIN 1 "April 12, 2007"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
@ -731,6 +731,9 @@ Linux specific: Abort process if a busy drive is encountered.
Linux specific: Try to wait for a busy drive to become free.
This is not guaranteed to work with all drivers. Some need nonblocking i/o.
.TP
.BI \--drive_f_setlk
Linux specific: Try to get exclusive lock on drive device file via fcntl(2).
.TP
.BI \--drive_not_exclusive
Linux specific: Combine --drive_not_f_setlk and --drive_not_o_excl.
.TP

View File

@ -2101,6 +2101,9 @@ set_dev:;
} else if(strcmp(argv[i],"--drive_blocking")==0) {
o->drive_blocking= 1;
} else if(strcmp(argv[i],"--drive_f_setlk")==0) {
o->drive_fcntl_f_setlk= 1;
} else if(strcmp(argv[i],"--drive_not_exclusive")==0) {
o->drive_exclusive= 0;
o->drive_fcntl_f_setlk= 0;
@ -2121,7 +2124,6 @@ set_dev:;
o->drive_scsi_dev_family= 4;
else
o->drive_scsi_dev_family= 0;
} else if(strcmp(argv[i],"--drive_scsi_exclusive")==0) {
o->drive_exclusive= 2;
@ -2172,6 +2174,7 @@ set_dev:;
printf(" (might be triggered by a busy hard disk)\n");
printf(" --drive_blocking try to wait for busy drive to become free\n");
printf(" (might be stalled by a busy hard disk)\n");
printf(" --drive_f_setlk obtain exclusive lock via fcntl.\n");
printf(" --drive_not_exclusive combined not_o_excl and not_f_setlk.\n");
printf(" --drive_not_f_setlk do not obtain exclusive lock via fcntl.\n");
printf(" --drive_not_o_excl do not ask kernel to prevent opening\n");

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.04.13.171347"
#define Cdrskin_timestamP "2007.04.13.173008"