Made chunksize=32s default with -check_media

This commit is contained in:
Thomas Schmitt 2012-05-02 11:09:40 +00:00
parent 79628f8551
commit 6095759398
5 changed files with 9 additions and 10 deletions

View File

@ -2768,7 +2768,7 @@ ex:;
if(async_md5) { if(async_md5) {
Xorriso__end_slave_md5(&state, 10000, 0); Xorriso__end_slave_md5(&state, 10000, 0);
sprintf(xorriso->info_text, sprintf(xorriso->info_text,
"async_chunks=%d , chunk_size=%d , w_sleeps: %.f , r_sleeps: %.f", "async_chunks=%d , chunk_size=%ds , w_sleeps: %.f , r_sleeps: %.f",
state.num_chunks, read_chunk, (double) state.w_sleeps, state.num_chunks, read_chunk, (double) state.w_sleeps,
(double) state.r_sleeps); (double) state.r_sleeps);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "DEBUG", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "DEBUG", 0);
@ -2790,7 +2790,7 @@ ex:;
int Xorriso_check_media(struct XorrisO *xorriso, struct SpotlisT **spotlist, int Xorriso_check_media(struct XorrisO *xorriso, struct SpotlisT **spotlist,
struct CheckmediajoB *job, int flag) struct CheckmediajoB *job, int flag)
{ {
int media_blocks= 0, read_chunk= 16, ret, mode, start_lba= 0; int media_blocks= 0, read_chunk= 32, ret, mode, start_lba= 0;
int blocks, os_errno, i, j, last_track_end= -1, track_blocks, track_lba; int blocks, os_errno, i, j, last_track_end= -1, track_blocks, track_lba;
int num_sessions, num_tracks, declare_untested= 0, md5_start; int num_sessions, num_tracks, declare_untested= 0, md5_start;
int read_capacity= -1, end_lba, hret, count, quality, profile_no; int read_capacity= -1, end_lba, hret, count, quality, profile_no;
@ -2816,8 +2816,7 @@ int Xorriso_check_media(struct XorrisO *xorriso, struct SpotlisT **spotlist,
ret = burn_disc_get_profile(drive, &profile_no, profile_name); ret = burn_disc_get_profile(drive, &profile_no, profile_name);
if(ret <= 0) if(ret <= 0)
profile_no= 0; profile_no= 0;
if(profile_no >= 0x40 && profile_no <= 0x43) /* BD-ROM, BD-R, BD-RE */
read_chunk= 32;
if(job->min_block_size != 0) if(job->min_block_size != 0)
read_chunk= job->min_block_size; read_chunk= job->min_block_size;

View File

@ -9,7 +9,7 @@
.\" First parameter, NAME, should be all caps .\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1) .\" other parameters are allowed: see man(7), man(1)
.TH XORRISO 1 "Version 1.2.3, Mai 01, 2012" .TH XORRISO 1 "Version 1.2.3, Mai 02, 2012"
.\" Please adjust this date whenever revising the manpage. .\" Please adjust this date whenever revising the manpage.
.\" .\"
.\" Some roff macros, for reference: .\" Some roff macros, for reference:
@ -3661,7 +3661,7 @@ This gets rounded down to full blocks of 2048 bytes. 0 means automatic size.
\fBasync_chunks=number\fR \fBasync_chunks=number\fR
enables asynchronous MD5 processing if number is 2 or larger. enables asynchronous MD5 processing if number is 2 or larger.
In this case the given number of read chunks is allocated as fifo buffer. In this case the given number of read chunks is allocated as fifo buffer.
On very fast MMC drives try: chunk_size=32s async_chunks=16. On very fast MMC drives try: chunk_size=64s async_chunks=16.
.TP .TP
\fB\-check_md5\fR severity iso_rr_path [***] \fB\-check_md5\fR severity iso_rr_path [***]
Compare the data content of the given files in the loaded image with their Compare the data content of the given files in the loaded image with their

View File

@ -3227,7 +3227,7 @@ transmission errors.
async_chunks=number async_chunks=number
enables asynchronous MD5 processing if number is 2 or larger. enables asynchronous MD5 processing if number is 2 or larger.
In this case the given number of read chunks is allocated as In this case the given number of read chunks is allocated as
fifo buffer. On very fast MMC drives try: chunk_size=32s fifo buffer. On very fast MMC drives try: chunk_size=64s
async_chunks=16. async_chunks=16.
-check_md5 severity iso_rr_path [***] -check_md5 severity iso_rr_path [***]

View File

@ -50,7 +50,7 @@
@c man .\" First parameter, NAME, should be all caps @c man .\" First parameter, NAME, should be all caps
@c man .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection @c man .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
@c man .\" other parameters are allowed: see man(7), man(1) @c man .\" other parameters are allowed: see man(7), man(1)
@c man .TH XORRISO 1 "Version 1.2.3, Mai 01, 2012" @c man .TH XORRISO 1 "Version 1.2.3, Mai 02, 2012"
@c man .\" Please adjust this date whenever revising the manpage. @c man .\" Please adjust this date whenever revising the manpage.
@c man .\" @c man .\"
@c man .\" Some roff macros, for reference: @c man .\" Some roff macros, for reference:
@ -4313,7 +4313,7 @@ This gets rounded down to full blocks of 2048 bytes. 0 means automatic size.
@item async_chunks=number @item async_chunks=number
enables asynchronous MD5 processing if number is 2 or larger. enables asynchronous MD5 processing if number is 2 or larger.
In this case the given number of read chunks is allocated as fifo buffer. In this case the given number of read chunks is allocated as fifo buffer.
On very fast MMC drives try: chunk_size=32s async_chunks=16. On very fast MMC drives try: chunk_size=64s async_chunks=16.
@end table @end table
@c man .TP @c man .TP
@kindex -check_md5 verifies file checksum @kindex -check_md5 verifies file checksum

View File

@ -1 +1 @@
#define Xorriso_timestamP "2012.05.01.075022" #define Xorriso_timestamP "2012.05.02.111016"