Browse Source

Allowed 64 kB max output buffer size on all OSes

ZeroEightFour
Thomas Schmitt 10 years ago
parent
commit
b30a2af7c7
4 changed files with 12 additions and 12 deletions
  1. +1
    -1
      cdrskin/cdrskin_timestamp.h
  2. +7
    -2
      libburn/os-freebsd.h
  3. +4
    -7
      libburn/os-libcdio.h
  4. +0
    -2
      libburn/os-solaris.h

+ 1
- 1
cdrskin/cdrskin_timestamp.h View File

@ -1 +1 @@
#define Cdrskin_timestamP "2010.06.15.155739"
#define Cdrskin_timestamP "2010.06.16.082457"

+ 7
- 2
libburn/os-freebsd.h View File

@ -4,7 +4,8 @@
by os.h in case of compilation for
FreeBSD with CAM
Copyright (C) 2006 Thomas Schmitt <scdbackup@gmx.net>, provided under GPLv2+
Copyright (C) 2006 - 2010 Thomas Schmitt <scdbackup@gmx.net>,
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

+ 4
- 7
libburn/os-libcdio.h View File

@ -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

+ 0
- 2
libburn/os-solaris.h View File

@ -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

Loading…
Cancel
Save