From 42c4ad98c7169b9b6ef741ab6927a3dcb8e53d7e Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 1 Jan 2010 12:39:20 +0000 Subject: [PATCH] Bug fix: with non-Linux adapters there were 0 readable bytes on block devices --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/drive.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 9927f809..2819ff08 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2009.12.30.201025" +#define Cdrskin_timestamP "2010.01.01.124042" diff --git a/libburn/trunk/libburn/drive.c b/libburn/trunk/libburn/drive.c index 823b6631..f63688d8 100644 --- a/libburn/trunk/libburn/drive.c +++ b/libburn/trunk/libburn/drive.c @@ -1340,7 +1340,8 @@ int burn_drive_grab_dummy(struct burn_drive_info *drive_infos[], char *fname) ret = burn_os_stdio_capacity(fname, &read_size); if (ret <= 0) - read_size = -1; + read_size = (off_t) 0x7ffffff0 * + (off_t) 2048; } } if (ret == -1 || S_ISBLK(stbuf.st_mode) ||