From b30a2af7c732935564a538ff2d61116b04f0aa4b 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 --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/os-freebsd.h | 9 +++++++-- libburn/os-libcdio.h | 11 ++++------- libburn/os-solaris.h | 2 -- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 00151e0..8337ef2 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2010.06.15.155739" +#define Cdrskin_timestamP "2010.06.16.082457" diff --git a/libburn/os-freebsd.h b/libburn/os-freebsd.h index 97b87a8..1f0793d 100644 --- a/libburn/os-freebsd.h +++ b/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/os-libcdio.h b/libburn/os-libcdio.h index 68c64ae..87d4132 100644 --- a/libburn/os-libcdio.h +++ b/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/os-solaris.h b/libburn/os-solaris.h index 591cce7..d72b40b 100644 --- a/libburn/os-solaris.h +++ b/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