From aa2b37aa8489b6739ea314aea37dc4699e69b862 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 5 Oct 2011 08:57:39 +0000 Subject: [PATCH] New flag bit of API call isoburn_drive_aquire() to cause burn_drive_re_assess() --- libisoburn/burn_wrap.c | 6 +++++- libisoburn/libisoburn.h | 3 +++ xorriso/xorriso_timestamp.h | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libisoburn/burn_wrap.c b/libisoburn/burn_wrap.c index 6aef556d..a2ca50dd 100644 --- a/libisoburn/burn_wrap.c +++ b/libisoburn/burn_wrap.c @@ -525,6 +525,7 @@ ex: bit5= ignore ACL from external filesystems bit6= ignore POSIX Extended Attributes from external filesystems bit7= pretend -ROM profile and scan for table of content + bit8= re-assess (*drive_infos)[0] rather than aquiring adr */ int isoburn_drive_aquire(struct burn_drive_info *drive_infos[], char *adr, int flag) @@ -543,7 +544,10 @@ int isoburn_drive_aquire(struct burn_drive_info *drive_infos[], if(conv_ret<=0) strcpy(libburn_drive_adr, adr); - ret= burn_drive_scan_and_grab(drive_infos, libburn_drive_adr, flag&1); + if(flag & 256) + ret= burn_drive_re_assess((*drive_infos)[0].drive, 0); + else + ret= burn_drive_scan_and_grab(drive_infos, libburn_drive_adr, flag&1); if(ret<=0) goto ex; drive_grabbed= 1; diff --git a/libisoburn/libisoburn.h b/libisoburn/libisoburn.h index 550ae0e0..b1de72ee 100644 --- a/libisoburn/libisoburn.h +++ b/libisoburn/libisoburn.h @@ -433,6 +433,9 @@ int isoburn_drive_scan_and_grab(struct burn_drive_info *drive_infos[], bit6= ignore POSIX Extended Attributes from external filesystems bit7= pretend read-only profile and scan for table of content + bit8= re-assess already aquired (*drive_infos)[0] rather + than aquiring adr + @since 1.1.8 @return 1 = success , 0 = drive not found , <0 = other error */ int isoburn_drive_aquire(struct burn_drive_info *drive_infos[], diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index ea7759fe..87b4e93a 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2011.10.05.075024" +#define Xorriso_timestamP "2011.10.05.085704"