From eeef039aabe02406010c65bcbf5689f9293a3cd4 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 18 Dec 2011 16:11:47 +0000 Subject: [PATCH] New options --cdtext_dummy and --cdtext_verbose --- cdrskin/cdrskin.1 | 16 +++++++++++++++- cdrskin/cdrskin.c | 6 +++++- cdrskin/cdrskin_timestamp.h | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/cdrskin/cdrskin.1 b/cdrskin/cdrskin.1 index d0a15ac..dd0ab51 100644 --- a/cdrskin/cdrskin.1 +++ b/cdrskin/cdrskin.1 @@ -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 "Dec 15, 2011" +.TH CDRSKIN 1 "Dec 18, 2011" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: @@ -1233,6 +1233,20 @@ under test reservation. (If you really test experimental media, then please report the outcome on libburn-hackers@pykix.org) .TP +.BI \--cdtext_dummy +Prepare a burn run, report the effective array of CD-TEXT packs to stdout, +and then end the program run without starting to burn the session. +A blank CD-R or CD-RW has to be present in the drive, nevertheless. +.br +The output is formatted in lines which describe 18 bytes as 2-digit hex +numbers or as single printable characters. +See libburn document doc/cdtext.txt about the format of these records. +.TP +.BI \--cdtext_verbose +Like --cdtext_dummy but without preventing the burn run. Combinable with +option -dummy to exercise a CD burn run with no persistent impact on the +medium. +.TP .BI dev_translation= Set drive address alias. This was necessary before cdrskin-0.2.4 to manually translate cdrecord addresses into cdrskin addresses. diff --git a/cdrskin/cdrskin.c b/cdrskin/cdrskin.c index c05b2b3..586592f 100644 --- a/cdrskin/cdrskin.c +++ b/cdrskin/cdrskin.c @@ -2719,6 +2719,10 @@ set_dev:; " --any_track allow source_addresses to match '^-.' or '='\n"); printf( " assert_write_lba= abort if not next write address == lba\n"); + fprintf(stderr, + " --cdtext_dummy show CD-TEXT pack array instead of writing CD\n"); + fprintf(stderr, + " --cdtext_verbose show CD-TEXT pack array before writing CD\n"); printf( " direct_write_amount= write random access to media like DVD+RW\n"); printf(" --demand_a_drive exit !=0 on bus scans with empty result\n"); @@ -7415,7 +7419,7 @@ unsupported_blank_option:; } else if(strcmp(argv[i],"--cdtext_dummy")==0) { skin->cdtext_test= 2; - } else if(strcmp(argv[i],"--cdtext_test")==0) { + } else if(strcmp(argv[i],"--cdtext_verbose")==0) { skin->cdtext_test= 1; } else if(strcmp(argv[i],"-checkdrive")==0) { diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 6ad976d..73c2f6a 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.12.16.111300" +#define Cdrskin_timestamP "2011.12.18.161107"