From 22202a4301e88e2a55ea411259473ccd8b1ff616 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 28 Sep 2006 07:44:09 +0000 Subject: [PATCH] Enabled optional growisofs lock attempt via --drive_scsi_exclusive --- cdrskin/cdrskin.c | 8 +++++++- cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cdrskin/cdrskin.c b/cdrskin/cdrskin.c index 28b4a81..52d7667 100644 --- a/cdrskin/cdrskin.c +++ b/cdrskin/cdrskin.c @@ -1681,6 +1681,9 @@ set_dev:; } else if(strcmp(argv[i],"--drive_not_exclusive")==0) { o->drive_exclusive= 0; + } else if(strcmp(argv[i],"--drive_scsi_exclusive")==0) { + o->drive_exclusive= 2; + } else if(strcmp(argv[i],"driveropts=help")==0 || strcmp(argv[i],"-driveropts=help")==0) { @@ -1727,6 +1730,9 @@ set_dev:; printf(" (might be stalled by a busy hard disk)\n"); printf(" --drive_not_exclusive do not ask kernel to prevent opening\n"); printf(" busy drives. Effect is kernel dependend.\n"); + printf( + " --drive_scsi_exclusive try to exclusively reserve device files\n"); + printf(" /dev/srN, /dev/scdM, /dev/stK of drive.\n"); #ifdef Cdrskin_burn_drive_eject_brokeN printf( " eject_device= set the device address for command eject\n"); @@ -4588,7 +4594,7 @@ int Cdrskin_create(struct CdrskiN **o, struct CdrpreskiN **preskin, *exit_value= 0; #ifndef Cdrskin_libburn_no_burn_preset_device_opeN - burn_preset_device_open((*preskin)->drive_exclusive*1, + burn_preset_device_open((*preskin)->drive_exclusive, (*preskin)->drive_blocking, (*preskin)->abort_on_busy_drive); #endif diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 143c2e1..acd53fc 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2006.09.27.143843" +#define Cdrskin_timestamP "2006.09.28.074434"