From bb15c126eec82aeb90c43f57269797a64244aa09 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 16 Jun 2010 08:25:57 +0000 Subject: [PATCH] Allowed 64 kB max output buffer size on all OSes --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/os-freebsd.h | 9 +++++++-- libburn/trunk/libburn/os-libcdio.h | 11 ++++------- libburn/trunk/libburn/os-solaris.h | 2 -- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 00151e0d..8337ef21 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2010.06.15.155739" +#define Cdrskin_timestamP "2010.06.16.082457" diff --git a/libburn/trunk/libburn/os-freebsd.h b/libburn/trunk/libburn/os-freebsd.h index 97b87a88..1f0793d0 100644 --- a/libburn/trunk/libburn/os-freebsd.h +++ b/libburn/trunk/libburn/os-freebsd.h @@ -4,7 +4,8 @@ by os.h in case of compilation for FreeBSD with CAM - Copyright (C) 2006 Thomas Schmitt , provided under GPLv2+ + Copyright (C) 2006 - 2010 Thomas Schmitt , + provided under GPLv2+ */ /** List of all signals which shall be caught by signal handlers and trigger @@ -41,7 +42,11 @@ SIGKILL, SIGCHLD, SIGSTOP, SIGURG, SIGWINCH /* The maximum size for a (SCSI) i/o transaction */ /* Important : MUST be at least 32768 ! */ -#define BURN_OS_TRANSPORT_BUFFER_SIZE 32768 +/* Older BSD info says that 32 kB is maximum. But 64 kB seems to work well + on 8-STABLE. It is by default only used with BD in streaming mode. + So older systems should still be quite safe with this buffer max size. +*/ +#define BURN_OS_TRANSPORT_BUFFER_SIZE 65536 /** To hold all state information of BSD device enumeration diff --git a/libburn/trunk/libburn/os-libcdio.h b/libburn/trunk/libburn/os-libcdio.h index 68c64ae6..87d41328 100644 --- a/libburn/trunk/libburn/os-libcdio.h +++ b/libburn/trunk/libburn/os-libcdio.h @@ -64,17 +64,14 @@ SIGKILL, SIGCHLD, SIGSTOP BURN_OS_SIG_WINCH BURN_OS_SIG_URG /* The maximum size for a (SCSI) i/o transaction */ -/* Important : MUST be at least 32768 ! */ /* My Blu-ray burner LG GGW-H20 writes junk if stream recording is combined with buffer size 32 kB. So stream recording is allowed only with size 64k. - This makes it worth to have a special case for GNU/Linux buffer size here. + Older BSD info says that 32 kB is maximum. But 64 kB seems to work well + on 8-STABLE. It is by default only used with BD in streaming mode. + So older systems should still be quite safe with this buffer max size. */ -#ifdef __linux +/* Important : MUST be at least 32768 ! */ #define BURN_OS_TRANSPORT_BUFFER_SIZE 65536 -#else -/* (It might be risky to use 64k. FreeBSD is said to can only 32k.) */ -#define BURN_OS_TRANSPORT_BUFFER_SIZE 32768 -#endif /* To hold the position of the most recently delivered address from diff --git a/libburn/trunk/libburn/os-solaris.h b/libburn/trunk/libburn/os-solaris.h index 591cce7a..d72b40b2 100644 --- a/libburn/trunk/libburn/os-solaris.h +++ b/libburn/trunk/libburn/os-solaris.h @@ -41,8 +41,6 @@ SIGKILL, SIGCHLD, SIGSTOP, SIGURG, SIGWINCH /* Important : MUST be at least 32768 ! */ /* My Blu-ray burner LG GGW-H20 writes junk if stream recording is combined with buffer size 32 kB. So stream recording is allowed only with size 64k. - - >>> ??? is 64 kB ok for Solaris uscsi ? */ #define BURN_OS_TRANSPORT_BUFFER_SIZE 65536