Compare commits
5 Commits
ZeroSixTwo
...
ZeroFiveSi
Author | SHA1 | Date | |
---|---|---|---|
583092f7ec | |||
1ac74b6145 | |||
287f27ca26 | |||
36436e3ad4 | |||
bea64f4073 |
@ -1,7 +1,7 @@
|
|||||||
Derek Foreman <derek@signalmarketing.com> and Ben Jansens <xor@orodu.net>
|
Derek Foreman <derek@signalmarketing.com> and Ben Jansens <xor@orodu.net>
|
||||||
Copyright (C) 2002-2006 Derek Foreman and Ben Jansens
|
Copyright (C) 2002-2006 Derek Foreman and Ben Jansens
|
||||||
Mario Danic <mario.danic@gmail.com>, Thomas Schmitt <scdbackup@gmx.net>
|
Mario Danic <mario.danic@gmail.com>, Thomas Schmitt <scdbackup@gmx.net>
|
||||||
Copyright (C) 2006-2009 Mario Danic, Thomas Schmitt
|
Copyright (C) 2006-2008 Mario Danic, Thomas Schmitt
|
||||||
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
20
Makefile.am
20
Makefile.am
@ -82,34 +82,32 @@ noinst_PROGRAMS = \
|
|||||||
bin_PROGRAMS = \
|
bin_PROGRAMS = \
|
||||||
cdrskin/cdrskin
|
cdrskin/cdrskin
|
||||||
|
|
||||||
LIBBURN_EXTRALIBS = $(LIBBURN_ARCH_LIBS) $(THREAD_LIBS)
|
|
||||||
|
|
||||||
test_libburner_CPPFLAGS = -Ilibburn
|
test_libburner_CPPFLAGS = -Ilibburn
|
||||||
test_libburner_LDADD = $(libburn_libburn_la_OBJECTS) $(LIBBURN_EXTRALIBS)
|
test_libburner_LDADD = $(libburn_libburn_la_OBJECTS) $(THREAD_LIBS)
|
||||||
test_libburner_SOURCES = test/libburner.c
|
test_libburner_SOURCES = test/libburner.c
|
||||||
test_telltoc_CPPFLAGS = -Ilibburn
|
test_telltoc_CPPFLAGS = -Ilibburn
|
||||||
test_telltoc_LDADD = $(libburn_libburn_la_OBJECTS) $(LIBBURN_EXTRALIBS)
|
test_telltoc_LDADD = $(libburn_libburn_la_OBJECTS) $(THREAD_LIBS)
|
||||||
test_telltoc_SOURCES = test/telltoc.c
|
test_telltoc_SOURCES = test/telltoc.c
|
||||||
test_dewav_CPPFLAGS = -Ilibburn
|
test_dewav_CPPFLAGS = -Ilibburn
|
||||||
test_dewav_LDADD = $(libburn_libburn_la_OBJECTS) $(LIBBURN_EXTRALIBS)
|
test_dewav_LDADD = $(libburn_libburn_la_OBJECTS) $(THREAD_LIBS)
|
||||||
test_dewav_SOURCES = test/dewav.c
|
test_dewav_SOURCES = test/dewav.c
|
||||||
test_fake_au_CPPFLAGS =
|
test_fake_au_CPPFLAGS =
|
||||||
test_fake_au_LDADD =
|
test_fake_au_LDADD =
|
||||||
test_fake_au_SOURCES = test/fake_au.c
|
test_fake_au_SOURCES = test/fake_au.c
|
||||||
test_poll_CPPFLAGS = -Ilibburn
|
test_poll_CPPFLAGS = -Ilibburn
|
||||||
test_poll_LDADD = $(libburn_libburn_la_OBJECTS) $(LIBBURN_EXTRALIBS)
|
test_poll_LDADD = $(libburn_libburn_la_OBJECTS) $(THREAD_LIBS)
|
||||||
test_poll_SOURCES = test/poll.c
|
test_poll_SOURCES = test/poll.c
|
||||||
test_structest_CPPFLAGS = -Ilibburn
|
test_structest_CPPFLAGS = -Ilibburn
|
||||||
test_structest_LDADD = $(libburn_libburn_la_OBJECTS) $(LIBBURN_EXTRALIBS)
|
test_structest_LDADD = $(libburn_libburn_la_OBJECTS) $(THREAD_LIBS)
|
||||||
test_structest_SOURCES = test/structest.c
|
test_structest_SOURCES = test/structest.c
|
||||||
|
|
||||||
## cdrskin construction site - ts A60816 - A90220
|
## cdrskin construction site - ts A60816 - A81112
|
||||||
cdrskin_cdrskin_CPPFLAGS = -Ilibburn
|
cdrskin_cdrskin_CPPFLAGS = -Ilibburn
|
||||||
cdrskin_cdrskin_CFLAGS = -DCdrskin_libburn_0_6_2
|
cdrskin_cdrskin_CFLAGS = -DCdrskin_libburn_0_5_6
|
||||||
|
|
||||||
# cdrskin_cdrskin_LDADD = $(libburn_libburn_la_OBJECTS) $(LIBBURN_EXTRALIBS)
|
# cdrskin_cdrskin_LDADD = $(libburn_libburn_la_OBJECTS) $(THREAD_LIBS)
|
||||||
# ts A80123, change proposed by Simon Huggins to cause dynamic libburn linking
|
# ts A80123, change proposed by Simon Huggins to cause dynamic libburn linking
|
||||||
cdrskin_cdrskin_LDADD = libburn/libburn.la $(LIBBURN_EXTRALIBS)
|
cdrskin_cdrskin_LDADD = libburn/libburn.la $(THREAD_LIBS)
|
||||||
|
|
||||||
cdrskin_cdrskin_SOURCES = cdrskin/cdrskin.c cdrskin/cdrfifo.c cdrskin/cdrfifo.h cdrskin/cdrskin_timestamp.h
|
cdrskin_cdrskin_SOURCES = cdrskin/cdrskin.c cdrskin/cdrfifo.c cdrskin/cdrfifo.h cdrskin/cdrskin_timestamp.h
|
||||||
##
|
##
|
||||||
|
120
README
120
README
@ -4,60 +4,43 @@
|
|||||||
This all is under GPL.
|
This all is under GPL.
|
||||||
(See GPL reference, our clarification and commitment at the end of this text)
|
(See GPL reference, our clarification and commitment at the end of this text)
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
libburn-project.org
|
libburnia-project.org
|
||||||
By Mario Danic <mario.danic@gmail.com> and Thomas Schmitt <scdbackup@gmx.net>
|
By Mario Danic <mario.danic@gmail.com> and Thomas Schmitt <scdbackup@gmx.net>
|
||||||
Copyright (C) 2006-2009 Mario Danic, Thomas Schmitt
|
Copyright (C) 2006-2008 Mario Danic, Thomas Schmitt
|
||||||
Still containing parts of Libburn. By Derek Foreman <derek@signalmarketing.com>
|
|
||||||
and Ben Jansens <xor@orodu.net>
|
Still containing parts of
|
||||||
|
Libburn. By Derek Foreman <derek@signalmarketing.com> and
|
||||||
|
Ben Jansens <xor@orodu.net>
|
||||||
Copyright (C) 2002-2006 Derek Foreman and Ben Jansens
|
Copyright (C) 2002-2006 Derek Foreman and Ben Jansens
|
||||||
|
|
||||||
http://files.libburnia-project.org/releases/libburn-0.6.2.pl00.tar.gz
|
This libburnia-project.org toplevel README (C) 2006-2008 Thomas Schmitt
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
Build and Installation
|
Build and Installation
|
||||||
|
|
||||||
From tarball
|
Our build system is based on autotools. For preparing the build of a SVN
|
||||||
|
snapshot you will need autotools of at least version 1.7.
|
||||||
|
Check out from SVN by
|
||||||
|
svn co http://svn.libburnia-project.org/libburn/trunk libburn
|
||||||
|
go into directory libburn and apply autotools by
|
||||||
|
./bootstrap
|
||||||
|
|
||||||
Obtain libburn-0.6.2.pl00.tar.gz, take it to a directory of your choice and do:
|
Alternatively you may unpack a release tarball for which you do not need
|
||||||
|
autotools installed.
|
||||||
|
|
||||||
tar xzf libburn-0.6.2.pl00.tar.gz
|
To build a libburnia-project.org subproject it should be sufficient to go
|
||||||
cd libburn-0.6.2
|
into its toplevel directory (here: "libburn") and execute
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make
|
make
|
||||||
|
|
||||||
To make libburn accessible for running resp. application development,
|
To make libburn accessible for running resp. application development,
|
||||||
and to install the cdrecord compatibility binary cdrskin, do
|
and to install the cdrecord compatibility binary cdrskin, do:
|
||||||
(as Superuser):
|
|
||||||
|
|
||||||
make install
|
make install
|
||||||
|
|
||||||
This procedure installs libburn.so.4 and cdrskin depending on it.
|
|
||||||
|
Above procedure installs cdrskin depending on libburn.so.4 .
|
||||||
For a standalone cdrskin binary, see cdrskin/README.
|
For a standalone cdrskin binary, see cdrskin/README.
|
||||||
|
|
||||||
A behavioral conflict is known between any burn software and demons like hald
|
|
||||||
which probe CD drives. This can spoil burn runs for CD-R or CD-RW.
|
|
||||||
You may have to keep your hald away from the drive. See for example
|
|
||||||
http://www.freebsd.org/gnome/docs/halfaq.html
|
|
||||||
|
|
||||||
|
|
||||||
From SVN
|
|
||||||
|
|
||||||
Our build system is based on autotools. For preparing the build of a SVN
|
|
||||||
snapshot you will need autotools of at least version 1.7.
|
|
||||||
Do in a directory of your choice:
|
|
||||||
|
|
||||||
svn co http://svn.libburnia-project.org/libburn/trunk libburn-0.6.3
|
|
||||||
cd libburn-0.6.3
|
|
||||||
./bootstrap
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
Warning: The trunk might contain experimental features which might not
|
|
||||||
persist until next release.
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
An important part of the project, libisofs, is hosted in a bzr repository at
|
An important part of the project, libisofs, is hosted in a bzr repository at
|
||||||
launchpad.net :
|
launchpad.net :
|
||||||
@ -68,6 +51,7 @@ Another part the project, libisoburn, is hosted in the libburnia SVN, too:
|
|||||||
|
|
||||||
See README files there.
|
See README files there.
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
@ -75,25 +59,24 @@ See README files there.
|
|||||||
|
|
||||||
libburnia-project.org is an open-source software project for reading, mastering
|
libburnia-project.org is an open-source software project for reading, mastering
|
||||||
and writing optical discs.
|
and writing optical discs.
|
||||||
For now this means CD media, all DVD media except DVD-R DL, all BD media.
|
For now this means only CD media and all single layer DVD media except DVD+R.
|
||||||
|
|
||||||
The project comprises of several more or less interdependent parts which
|
The project comprises of several more or less interdependent parts which
|
||||||
together strive to be a usable foundation for application development.
|
together strive to be a usable foundation for application development.
|
||||||
These are libraries, language bindings, and middleware binaries which emulate
|
These are libraries, language bindings, and middleware binaries which emulate
|
||||||
classical (and valuable) Linux tools.
|
classical (and valuable) Linux tools.
|
||||||
Currently it is supported on Linux with kernels >= 2.4 and on FreeBSD versions
|
|
||||||
with ATAPI/CAM support enabled in the kernel, see atapicam(4).
|
|
||||||
|
|
||||||
For ports to other systems we would need : login on a development machine
|
Our scope is currently Linux 2.4 and 2.6 only. For ports to other systems
|
||||||
resp. a live OS on CD or DVD, advise from a system person about the equivalent
|
we would need : login on a development machine resp. a live OS on CD or DVD,
|
||||||
of Linux sg or FreeBSD CAM, volunteers for testing of realistic use cases.
|
advise from a system person about the equivalent of Linux sg or FreeBSD CAM,
|
||||||
|
volunteers for testing of realistic use cases.
|
||||||
|
|
||||||
We have a well tested code base for burning data and audio CDs, DVDs and BDs.
|
We have a well tested code base for burning data and audio CDs and many DVD
|
||||||
The burn API is quite comprehensively documented and can be used to build a
|
types. The burn API is quite comprehensively documented and can be used to
|
||||||
presentable application.
|
build a presentable application.
|
||||||
We have a functional application which emulates the core use cases of cdrecord
|
We have a functional binary which emulates the core use cases of cdrecord in
|
||||||
in order to prove that usability, and in order to allow you to explore
|
order to prove that usability, and in order to allow you to explore libburn's
|
||||||
libburn's scope by help of existing cdrecord frontends.
|
scope by help of existing cdrecord frontends.
|
||||||
|
|
||||||
ISO 9660 filesystems with Rock Ridge and Joliet extensions can be created
|
ISO 9660 filesystems with Rock Ridge and Joliet extensions can be created
|
||||||
and manipulated quite freely. This capability together with our burn capability
|
and manipulated quite freely. This capability together with our burn capability
|
||||||
@ -133,9 +116,8 @@ The project components (list subject to growth, hopefully):
|
|||||||
- xorriso is an application of all three libraries which creates, loads,
|
- xorriso is an application of all three libraries which creates, loads,
|
||||||
manipulates and writes ISO 9660 filesystem images with
|
manipulates and writes ISO 9660 filesystem images with
|
||||||
Rock Ridge extensions. Manipulation is not only adding or
|
Rock Ridge extensions. Manipulation is not only adding or
|
||||||
overwriting of files but also deleting, renaming, attribute
|
overwriting of files but also deletion, renaming, and attribute
|
||||||
changing, incremental backups, activating boot images, and
|
changing.
|
||||||
extracting of files from ISO images to disk.
|
|
||||||
See xorriso/README for more.
|
See xorriso/README for more.
|
||||||
|
|
||||||
- "test" is a collection of application gestures and examples given by the
|
- "test" is a collection of application gestures and examples given by the
|
||||||
@ -154,17 +136,10 @@ any way and even may revoke such new features before the next release of
|
|||||||
x.y.*[02468]. As soon as it is released, a feature is promised to persist.
|
x.y.*[02468]. As soon as it is released, a feature is promised to persist.
|
||||||
|
|
||||||
SONAMES:
|
SONAMES:
|
||||||
libburn.so.4 (since 0.3.4, March 2007),
|
libburn.so.4 (since 0.3.4, March 2007),
|
||||||
libisofs.so.6 (since 0.6.2, February 2008),
|
libisofs.so.6 (since 0.6.2, February 2008),
|
||||||
libisoburn.so.1 (since 0.1.0, February 2008).
|
libisoburn.so.1 (since 0.1.0, February 2008).
|
||||||
|
|
||||||
Applications must use 64 bit off_t. E.g. by defining
|
|
||||||
#define _LARGEFILE_SOURCE
|
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
or take special precautions to interface with the libraries by 64 bit integers
|
|
||||||
where the .h files prescribe off_t. Not to use 64 bit file i/o will keep the
|
|
||||||
application from producing and processing ISO images of more than 2 GB size.
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
Project history as far as known to me:
|
Project history as far as known to me:
|
||||||
@ -347,29 +322,6 @@ Project history as far as known to me:
|
|||||||
- 12th Nov 2008 libburn-0.5.6 fixes usage of freed memory by the fifo thread
|
- 12th Nov 2008 libburn-0.5.6 fixes usage of freed memory by the fifo thread
|
||||||
of an aborted burn run.
|
of an aborted burn run.
|
||||||
|
|
||||||
- 26th Nov 2008 libisofs-0.6.12 can produce a ISOLINUX isohybrid MBR on the fly
|
|
||||||
and allows to produce ISO images which resemble old mkisofs images.
|
|
||||||
|
|
||||||
- 2nd Dec 2008 libisoburn-0.3.0. xorriso now is ready for exotic character
|
|
||||||
sets, for legacy FreeBSD systems which expect an outdated Rock Ridge
|
|
||||||
signature, and for producing ISO images with MBR which boot from hard disk
|
|
||||||
or USB stick. Three minor bugs were fixed.
|
|
||||||
|
|
||||||
- 7th Dec 2008 libburn-0.5.8 prevents a SIGSEGV with wierd CD table-of-content
|
|
||||||
and improves BD-RE formatting.
|
|
||||||
|
|
||||||
- 9th Dec 2008 Our project received a donation from Thomas Weber.
|
|
||||||
|
|
||||||
- 2nd Jan 2009 libburn-0.6.0 allows to format BD-R and to write to either
|
|
||||||
formatted or unformatted BD-R.
|
|
||||||
|
|
||||||
- 6th Jan 2009 libisoburn-0.3.2 can produce and execute commands for mounting
|
|
||||||
older sessions from all kinds of media. Pseudo-drives outside the /dev/ tree
|
|
||||||
can be addressed without prefix "stdio:".
|
|
||||||
|
|
||||||
- 20th Feb 2009 libburn-0.6.2 source release now compiles out of the box
|
|
||||||
on FreeBSD.
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -4,16 +4,15 @@
|
|||||||
cdrskin. By Thomas Schmitt <scdbackup@gmx.net>
|
cdrskin. By Thomas Schmitt <scdbackup@gmx.net>
|
||||||
Integrated sub project of libburnia-project.org but also published via:
|
Integrated sub project of libburnia-project.org but also published via:
|
||||||
http://scdbackup.sourceforge.net/cdrskin_eng.html
|
http://scdbackup.sourceforge.net/cdrskin_eng.html
|
||||||
http://scdbackup.sourceforge.net/cdrskin-0.6.2.pl00.tar.gz
|
http://scdbackup.sourceforge.net/cdrskin-0.5.6.pl00.tar.gz
|
||||||
Copyright (C) 2006-2009 Thomas Schmitt, provided under GPL version 2.
|
Copyright (C) 2006-2008 Thomas Schmitt, provided under GPL version 2.
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
cdrskin is a limited cdrecord compatibility wrapper which allows to use
|
cdrskin is a limited cdrecord compatibility wrapper which allows to use
|
||||||
most of the libburn features from the command line.
|
most of the libburn features from the command line.
|
||||||
|
|
||||||
Currently it is supported on Linux with kernels >= 2.4 and on FreeBSD versions
|
Currently it is only supported on Linux with kernels >= 2.4.
|
||||||
with ATAPI/CAM support enabled in the kernel, see atapicam(4).
|
|
||||||
|
|
||||||
By using this software you agree to the disclaimer at the end of this text
|
By using this software you agree to the disclaimer at the end of this text
|
||||||
"This software is provided as is. There is no warranty implied and ..."
|
"This software is provided as is. There is no warranty implied and ..."
|
||||||
@ -21,10 +20,10 @@ By using this software you agree to the disclaimer at the end of this text
|
|||||||
|
|
||||||
Compilation, First Glimpse, Installation
|
Compilation, First Glimpse, Installation
|
||||||
|
|
||||||
Obtain cdrskin-0.6.2.pl00.tar.gz, take it to a directory of your choice and do:
|
Obtain cdrskin-0.5.6.pl00.tar.gz, take it to a directory of your choice and do:
|
||||||
|
|
||||||
tar xzf cdrskin-0.6.2.pl00.tar.gz
|
tar xzf cdrskin-0.5.6.pl00.tar.gz
|
||||||
cd cdrskin-0.6.2
|
cd cdrskin-0.5.6
|
||||||
|
|
||||||
Within that directory execute:
|
Within that directory execute:
|
||||||
|
|
||||||
@ -119,11 +118,6 @@ as listed device files. This addressing via e.g. /dev/sr0 or /dev/scd1 is
|
|||||||
compatible with generic read programs like dd and with write program growisofs.
|
compatible with generic read programs like dd and with write program growisofs.
|
||||||
For finding /dev/sg1 from /dev/sr0, the program needs rw-access to both files.
|
For finding /dev/sg1 from /dev/sr0, the program needs rw-access to both files.
|
||||||
|
|
||||||
A behavioral conflict is known between any burn software and demons like hald
|
|
||||||
which probe CD drives. This can spoil burn runs for CD-R or CD-RW.
|
|
||||||
You may have to keep your hald away from the drive. See for example
|
|
||||||
http://www.freebsd.org/gnome/docs/halfaq.html
|
|
||||||
|
|
||||||
|
|
||||||
Usage examples
|
Usage examples
|
||||||
|
|
||||||
@ -279,8 +273,8 @@ behavior.
|
|||||||
BD-RE media need formatting before first use. cdrskin option "blank=as_needed"
|
BD-RE media need formatting before first use. cdrskin option "blank=as_needed"
|
||||||
recognizes unformatted BD-RE and applies a lengthy formatting run.
|
recognizes unformatted BD-RE and applies a lengthy formatting run.
|
||||||
|
|
||||||
During write operations DVD-RAM and BD-RE automatically apply Defect
|
During write operations DVD-RAM and BD-RE automatically apply defect
|
||||||
Management. This usually slows them down to half nominal speed. If drive
|
management. This usually slows them down to half nominal speed. If drive
|
||||||
and media produce flawless results anyway, then one can try to reach full
|
and media produce flawless results anyway, then one can try to reach full
|
||||||
nominal speed by option "stream_recording=on".
|
nominal speed by option "stream_recording=on".
|
||||||
In this case bad blocks are not detected during write and not even previously
|
In this case bad blocks are not detected during write and not even previously
|
||||||
@ -355,24 +349,14 @@ Incremental Streaming afterwards. So blank=fast will do full blanking.
|
|||||||
blank=deformat_sequential_quickest is faster but might yield DAO-only media.
|
blank=deformat_sequential_quickest is faster but might yield DAO-only media.
|
||||||
|
|
||||||
|
|
||||||
DVD+R , DVD+R DL , BD-R
|
DVD+R and DVD+R DL
|
||||||
|
|
||||||
From the view of cdrskin they behave much like DVD-R. Each track gets wrapped
|
From the view of cdrskin they behave much like DVD-R. Each track gets wrapped
|
||||||
into an own session, though.
|
into an own session, though.
|
||||||
|
|
||||||
DVD+R DL appear as extra large DVD+R. cdrskin does not allow to set the address
|
DVD+R DL appear as extra large DVD+R. cdrskin does not allow to set the address
|
||||||
of the layer break where a reading drive might show some delay while switching
|
of the layer break where a reading drive might show some delay while switching
|
||||||
between both media layers.
|
between both media layers.
|
||||||
|
|
||||||
BD-R are sold unformatted blank. If used without initial formatting then the
|
|
||||||
drive is supposed to format them to maximum payload size with no Defect
|
|
||||||
Management (see also above with BD-RE).
|
|
||||||
If Defect Management is desired then BD-R need to be formatted before the
|
|
||||||
first attempt to write a session to them.
|
|
||||||
blank=format_if_needed will detect the situation and eventually apply
|
|
||||||
default sized Defect Management formatting.
|
|
||||||
blank=format_defectmgt_* will apply non-default parameters to formatting.
|
|
||||||
|
|
||||||
|
|
||||||
Emulated Drives
|
Emulated Drives
|
||||||
|
|
||||||
@ -423,7 +407,7 @@ are the cause. Any mistake of the burn program is supposed to be caught
|
|||||||
by the drive's firmware and to lead to mere misburns.
|
by the drive's firmware and to lead to mere misburns.
|
||||||
The worst mishaps which hit the author imposed the need to reboot the
|
The worst mishaps which hit the author imposed the need to reboot the
|
||||||
system because of drives gnawing endlessly on ill media. Permanent hardware
|
system because of drives gnawing endlessly on ill media. Permanent hardware
|
||||||
damage did not occur in 3.5 years of development. But one never knows ...
|
damage did not occur in 2.5 years of development. But one never knows ...
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -451,7 +435,7 @@ contributions in a due way.
|
|||||||
Based on and sub project of:
|
Based on and sub project of:
|
||||||
libburnia-project.org
|
libburnia-project.org
|
||||||
By Mario Danic <mario.danic@gmail.com> and Thomas Schmitt <scdbackup@gmx.net>
|
By Mario Danic <mario.danic@gmail.com> and Thomas Schmitt <scdbackup@gmx.net>
|
||||||
Copyright (C) 2006-2009 Mario Danic, Thomas Schmitt
|
Copyright (C) 2006-2008 Mario Danic, Thomas Schmitt
|
||||||
|
|
||||||
libburnia-project.org is inspired by and in other components still containing
|
libburnia-project.org is inspired by and in other components still containing
|
||||||
parts of
|
parts of
|
||||||
|
@ -38,7 +38,7 @@ original="./libburn_svn_release.tgz"
|
|||||||
# My changes are in $changes , mainly in $changes/cdrskin
|
# My changes are in $changes , mainly in $changes/cdrskin
|
||||||
changes="./libburn-release"
|
changes="./libburn-release"
|
||||||
|
|
||||||
skin_release="0.6.2"
|
skin_release="0.5.6"
|
||||||
patch_level=".pl00"
|
patch_level=".pl00"
|
||||||
skin_rev="$skin_release""$patch_level"
|
skin_rev="$skin_release""$patch_level"
|
||||||
|
|
@ -38,7 +38,7 @@ original="./libburn_svn.tgz"
|
|||||||
# My changes are in $changes , mainly in $changes/cdrskin
|
# My changes are in $changes , mainly in $changes/cdrskin
|
||||||
changes="./libburn-develop"
|
changes="./libburn-develop"
|
||||||
|
|
||||||
skin_release="0.6.3"
|
skin_release="0.5.7"
|
||||||
patch_level=""
|
patch_level=""
|
||||||
skin_rev="$skin_release""$patch_level"
|
skin_rev="$skin_release""$patch_level"
|
||||||
|
|
@ -2,7 +2,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 CDRSKIN 1 "Jan 07, 2009"
|
.TH CDRSKIN 1 "Oct 15, 2008"
|
||||||
.\" 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:
|
||||||
@ -16,7 +16,7 @@
|
|||||||
.\" .sp <n> insert n+1 empty lines
|
.\" .sp <n> insert n+1 empty lines
|
||||||
.\" for manpage-specific macros, see man(7)
|
.\" for manpage-specific macros, see man(7)
|
||||||
.SH NAME
|
.SH NAME
|
||||||
cdrskin \- burns preformatted data to CD, DVD, and BD via libburn.
|
cdrskin \- burns preformatted data to CD, DVD, and BD-RE via libburn.
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B cdrskin
|
.B cdrskin
|
||||||
.RI [ options | track_source_addresses ]
|
.RI [ options | track_source_addresses ]
|
||||||
@ -28,14 +28,14 @@ cdrskin \- burns preformatted data to CD, DVD, and BD via libburn.
|
|||||||
.\" respectively.
|
.\" respectively.
|
||||||
.PP
|
.PP
|
||||||
\fBcdrskin\fP is a program that provides some of cdrecord's options
|
\fBcdrskin\fP is a program that provides some of cdrecord's options
|
||||||
in a compatible way for CD media. With DVD and BD it has its own ways.
|
in a compatible way for CD media. With DVD and BD-RE it has its own ways.
|
||||||
You do not need to be superuser for its daily usage.
|
You do not need to be superuser for its daily usage.
|
||||||
.SS
|
.SS
|
||||||
.B Overview of features:
|
.B Overview of features:
|
||||||
.br
|
.br
|
||||||
Blanking of CD-RW and DVD-RW.
|
Blanking of CD-RW and DVD-RW.
|
||||||
.br
|
.br
|
||||||
Formatting of DVD-RW, DVD+RW, DVD-RAM, BD.
|
Formatting of DVD-RW, DVD+RW, DVD-RAM, BD-RE.
|
||||||
.br
|
.br
|
||||||
Burning of data or audio tracks to CD,
|
Burning of data or audio tracks to CD,
|
||||||
.br
|
.br
|
||||||
@ -45,7 +45,7 @@ or in Session at Once mode for seamless tracks.
|
|||||||
.br
|
.br
|
||||||
Multi session on CD (follow-up sessions in TAO only)
|
Multi session on CD (follow-up sessions in TAO only)
|
||||||
.br
|
.br
|
||||||
or on DVD-R[W] (in Incremental mode) or DVD+R[/DL] or BD-R.
|
or on DVD-R[W] (in Incremental mode) or on DVD+R[/DL].
|
||||||
.br
|
.br
|
||||||
Single session on DVD-RW or DVD-R (Disk-at-once).
|
Single session on DVD-RW or DVD-R (Disk-at-once).
|
||||||
.br
|
.br
|
||||||
@ -164,13 +164,12 @@ make it completely unreadable. It is no effective privacy precaution.
|
|||||||
Multiple cycles of blanking and overwriting with random numbers might be
|
Multiple cycles of blanking and overwriting with random numbers might be
|
||||||
needed.
|
needed.
|
||||||
.SS
|
.SS
|
||||||
.B Sequentially Recordable DVD or BD Media:
|
.B Sequentially Recordable DVD Media:
|
||||||
.br
|
.br
|
||||||
Currently DVD-RW, DVD-R , DVD+R[/DL], and BD-R can be used for the Sequential
|
Currently DVD-RW, DVD-R and DVD+R[/DL] can be used for the Sequential recording
|
||||||
recording model. It resembles the model of CD media. Only DVD-RW can be
|
model.
|
||||||
blanked and re-used from scratch.
|
|
||||||
.br
|
.br
|
||||||
DVD-RW are sequential media if they are in state "Sequential Recording".
|
This applies to DVD-RW only if they are in state "Sequential Recording".
|
||||||
The media must be either blank or appendable.
|
The media must be either blank or appendable.
|
||||||
Newly purchased DVD-RW and DVD-R media are in this state.
|
Newly purchased DVD-RW and DVD-R media are in this state.
|
||||||
Used DVD-RW get into blank sequential state by option
|
Used DVD-RW get into blank sequential state by option
|
||||||
@ -202,18 +201,14 @@ unpredicted length and to keep media appendable by option
|
|||||||
The only restriction towards CD-R[W] is the lack of support for -audio tracks.
|
The only restriction towards CD-R[W] is the lack of support for -audio tracks.
|
||||||
Multiple tracks per session are permissible.
|
Multiple tracks per session are permissible.
|
||||||
.br
|
.br
|
||||||
The write modes for DVD+R[/DL] and BD-R resemble those with DVD-R except that
|
The write modes for DVD+R[/DL] resemble those with DVD-R except that with +R
|
||||||
each track gets wrapped in an own session. There is no -dummy writing
|
each track gets wrapped in an own session. There is no -dummy writing with
|
||||||
with DVD+R[/DL] or BD-R.
|
DVD+R[/DL].
|
||||||
.br
|
.br
|
||||||
Quite deliberately write mode -sao insists in the tradition of a predicted
|
Quite deliberately write mode -sao insists in the tradition of a predicted
|
||||||
track size and blank media, whereas -tao writes the tracks open ended and
|
track size and blank media, whereas -tao writes the tracks open ended and
|
||||||
allows appendable media.
|
allows appendable media.
|
||||||
.br
|
.br
|
||||||
BD-R may be formatted before first use to enable the Defect Management which
|
|
||||||
might catch and repair some bad spots at the expense of slow speed
|
|
||||||
even with flawless media.
|
|
||||||
.br
|
|
||||||
.B Note:
|
.B Note:
|
||||||
Option -multi might make DVD media unreadable in some DVD-ROM drives.
|
Option -multi might make DVD media unreadable in some DVD-ROM drives.
|
||||||
Best reader compatibility is achieved without it
|
Best reader compatibility is achieved without it
|
||||||
@ -358,7 +353,7 @@ audio track. Same is done for suffix ".au" and SUN Audio.
|
|||||||
Option -audio may be used only with CD media and not with DVD or BD.
|
Option -audio may be used only with CD media and not with DVD or BD.
|
||||||
.TP
|
.TP
|
||||||
.BI blank= type
|
.BI blank= type
|
||||||
Blank a CD-RW, DVD-RW, or format a DVD-RW, DVD+RW, DVD-RAM, BD.
|
Blank a CD-RW, DVD-RW, or format a DVD-RW, DVD+RW, DVD-RAM, BD-RE.
|
||||||
This is combinable with burning in the same run of cdrskin.
|
This is combinable with burning in the same run of cdrskin.
|
||||||
The type given with blank= selects the particular behavior:
|
The type given with blank= selects the particular behavior:
|
||||||
.RS
|
.RS
|
||||||
@ -370,7 +365,7 @@ It is a reason to abort if the media cannot assume thoroughly writeable state,
|
|||||||
e.g. if it is non-blank write-once.
|
e.g. if it is non-blank write-once.
|
||||||
.br
|
.br
|
||||||
This leaves unformatted DVD-RW in unformatted blank state. To format DVD-RW use
|
This leaves unformatted DVD-RW in unformatted blank state. To format DVD-RW use
|
||||||
blank=format_overwriteable. Blank unformatted BD-R stay unformatted.
|
blank=format_overwriteable.
|
||||||
.br
|
.br
|
||||||
(Note: blank=as_needed is not an original cdrecord option.)
|
(Note: blank=as_needed is not an original cdrecord option.)
|
||||||
.TP
|
.TP
|
||||||
@ -399,11 +394,10 @@ This is faster than full blanking but may yield media incapable of
|
|||||||
Incremental Streaming (-tao).
|
Incremental Streaming (-tao).
|
||||||
.TP
|
.TP
|
||||||
format_if_needed
|
format_if_needed
|
||||||
Format a media if it is not formatted yet,
|
Format a media if it is not overwriteably formatted yet,
|
||||||
and if cdrskin supports formatting for the media type,
|
and if cdrskin supports formatting for the media type,
|
||||||
and if formatting will not happen automatically during write.
|
and if formatting will not happen automatically during write.
|
||||||
This currently applies to unformatted DVD-RW, DVD-RAM, BD-RE,
|
This currently applies to unformatted DVD-RW, DVD-RAM and BD-RE.
|
||||||
and blank unformatted BD-R.
|
|
||||||
Eventually the appropriate default formatting is chosen.
|
Eventually the appropriate default formatting is chosen.
|
||||||
If other media or states are encountered then nothing happens.
|
If other media or states are encountered then nothing happens.
|
||||||
.br
|
.br
|
||||||
@ -433,7 +427,7 @@ For DVD+RW this is the only supported explicit formatting type. It provides
|
|||||||
complete "de-icing" so no reader slips on unwritten data areas.
|
complete "de-icing" so no reader slips on unwritten data areas.
|
||||||
.TP
|
.TP
|
||||||
format_defectmgt
|
format_defectmgt
|
||||||
Format DVD-RAM or BD to reserve the default amount of spare blocks for
|
Format DVD-RAM or BD-RE to reserve the default amount of spare blocks for
|
||||||
defect management.
|
defect management.
|
||||||
.br
|
.br
|
||||||
The following format_defectmgt_* allow to submit user wishes which
|
The following format_defectmgt_* allow to submit user wishes which
|
||||||
@ -457,25 +451,25 @@ Whether there happens certification at all depends much on the media state
|
|||||||
and the actually selected format descriptor.
|
and the actually selected format descriptor.
|
||||||
.TP
|
.TP
|
||||||
format_defectmgt_max
|
format_defectmgt_max
|
||||||
Format DVD-RAM or BD to reserve a maximum number of spare blocks.
|
Format DVD-RAM or BD-RE to reserve a maximum number of spare blocks.
|
||||||
.TP
|
.TP
|
||||||
format_defectmgt_min
|
format_defectmgt_min
|
||||||
Format DVD-RAM or BD to reserve a minimum number of spare blocks.
|
Format DVD-RAM or BD-RE to reserve a minimum number of spare blocks.
|
||||||
It might be necessary to format format_defectmgt_none first in order to get
|
It might be necessary to format format_defectmgt_none first in order to get
|
||||||
offered the most minmal spare blocks sizes for format_defectmgt_min.
|
offered the most minmal spare blocks sizes for format_defectmgt_min.
|
||||||
.TP
|
.TP
|
||||||
format_defectmgt_none
|
format_defectmgt_none
|
||||||
Format DVD-RAM or BD-RE to the largest available payload in the hope to disable
|
Format DVD-RAM or BD-RE to the largest available payload in the hope to disable
|
||||||
defect management at all. This may or may not have a speed increasing effect.
|
defect management at all. This seems not to have a speed increasing effect,
|
||||||
Unformatted blank BD-R will be left unformatted.
|
though.
|
||||||
.TP
|
.TP
|
||||||
format_defectmgt_payload_<size>
|
format_defectmgt_payload_<size>
|
||||||
Format DVD-RAM or BD. The text after "format_defectmgt_payload_" gives a
|
Format DVD-RAM or BD-RE. The text after "format_defectmgt_payload_" gives a
|
||||||
number of bytes, eventually with suffixes "s", "k", "m". The largest number
|
number of bytes, eventually with suffixes "s", "k", "m". The largest number
|
||||||
of spare blocks will be chosen which allows at least the given payload size.
|
of spare blocks will be chosen which allows at least the given payload size.
|
||||||
.TP
|
.TP
|
||||||
format_by_index_<number>
|
format_by_index_<number>
|
||||||
Format DVD-RW, DVD+RW, DVD-RAM or BD.
|
Format DVD-RW, DVD+RW, DVD-RAM or BD-RE.
|
||||||
The number after "format_by_index_" is used as index to the list of available
|
The number after "format_by_index_" is used as index to the list of available
|
||||||
format descriptors. This list can be obtained by option --list_formats.
|
format descriptors. This list can be obtained by option --list_formats.
|
||||||
The numbers after text "Format idx" are the ones to be used with
|
The numbers after text "Format idx" are the ones to be used with
|
||||||
@ -1188,7 +1182,7 @@ original cdrecord.
|
|||||||
.TP
|
.TP
|
||||||
.BI stream_recording="on"|"off"
|
.BI stream_recording="on"|"off"
|
||||||
By setting "on" request that compliance to the desired speed setting is
|
By setting "on" request that compliance to the desired speed setting is
|
||||||
preferred over management of write errors. With DVD-RAM and BD this can
|
preferred over management of write errors. With DVD-RAM and BD-RE this can
|
||||||
bring effective write speed near to the nominal write speed of the media.
|
bring effective write speed near to the nominal write speed of the media.
|
||||||
But it will also disable the automatic use of replacement blocks
|
But it will also disable the automatic use of replacement blocks
|
||||||
if write errors occur. It might as well be disliked or ignored by the drive.
|
if write errors occur. It might as well be disliked or ignored by the drive.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
cdrskin.c , Copyright 2006-2009 Thomas Schmitt <scdbackup@gmx.net>
|
cdrskin.c , Copyright 2006-2008 Thomas Schmitt <scdbackup@gmx.net>
|
||||||
Provided under GPL version 2. See future commitment below.
|
Provided under GPL version 2. See future commitment below.
|
||||||
|
|
||||||
A cdrecord compatible command line interface for libburn.
|
A cdrecord compatible command line interface for libburn.
|
||||||
@ -88,7 +88,7 @@ or
|
|||||||
|
|
||||||
/** The official program version */
|
/** The official program version */
|
||||||
#ifndef Cdrskin_prog_versioN
|
#ifndef Cdrskin_prog_versioN
|
||||||
#define Cdrskin_prog_versioN "0.6.2"
|
#define Cdrskin_prog_versioN "0.5.6"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** The official libburn interface revision to use.
|
/** The official libburn interface revision to use.
|
||||||
@ -98,10 +98,10 @@ or
|
|||||||
#define Cdrskin_libburn_majoR 0
|
#define Cdrskin_libburn_majoR 0
|
||||||
#endif
|
#endif
|
||||||
#ifndef Cdrskin_libburn_minoR
|
#ifndef Cdrskin_libburn_minoR
|
||||||
#define Cdrskin_libburn_minoR 6
|
#define Cdrskin_libburn_minoR 5
|
||||||
#endif
|
#endif
|
||||||
#ifndef Cdrskin_libburn_micrO
|
#ifndef Cdrskin_libburn_micrO
|
||||||
#define Cdrskin_libburn_micrO 2
|
#define Cdrskin_libburn_micrO 6
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -135,44 +135,44 @@ or
|
|||||||
#endif /* Cdrskin_libburn_cvs_A60220_tS */
|
#endif /* Cdrskin_libburn_cvs_A60220_tS */
|
||||||
|
|
||||||
|
|
||||||
#ifdef Cdrskin_libburn_0_6_2
|
#ifdef Cdrskin_libburn_0_5_6
|
||||||
#define Cdrskin_libburn_versioN "0.6.2"
|
#define Cdrskin_libburn_versioN "0.5.6"
|
||||||
#define Cdrskin_libburn_from_pykix_svN 1
|
#define Cdrskin_libburn_from_pykix_svN 1
|
||||||
#endif /* Cdrskin_libburn_0_6_2 */
|
#endif /* Cdrskin_libburn_0_5_6 */
|
||||||
|
|
||||||
#ifdef Cdrskin_libburn_0_6_3
|
#ifdef Cdrskin_libburn_0_5_7
|
||||||
#define Cdrskin_libburn_versioN "0.6.3"
|
#define Cdrskin_libburn_versioN "0.5.7"
|
||||||
#define Cdrskin_libburn_from_pykix_svN 1
|
#define Cdrskin_libburn_from_pykix_svN 1
|
||||||
|
|
||||||
/* Place novelty switch macros here.
|
/* Place novelty switch macros here.
|
||||||
Move them down to Cdrskin_libburn_from_pykix_svN on version leap
|
Move them down to Cdrskin_libburn_from_pykix_svN on version leap
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* there are no libburn novelties in 0.6.3 yet */
|
/* there are no libburn novelties in 0.5.7 yet */
|
||||||
|
|
||||||
#endif /* Cdrskin_libburn_0_6_3 */
|
#endif /* Cdrskin_libburn_0_5_7 */
|
||||||
|
|
||||||
#ifndef Cdrskin_libburn_versioN
|
#ifndef Cdrskin_libburn_versioN
|
||||||
#define Cdrskin_libburn_0_6_2
|
#define Cdrskin_libburn_0_5_6
|
||||||
#define Cdrskin_libburn_versioN "0.6.2"
|
#define Cdrskin_libburn_versioN "0.5.6"
|
||||||
#define Cdrskin_libburn_from_pykix_svN 1
|
#define Cdrskin_libburn_from_pykix_svN 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef Cdrskin_libburn_0_6_2
|
#ifdef Cdrskin_libburn_0_5_6
|
||||||
#undef Cdrskin_libburn_majoR
|
#undef Cdrskin_libburn_majoR
|
||||||
#undef Cdrskin_libburn_minoR
|
#undef Cdrskin_libburn_minoR
|
||||||
#undef Cdrskin_libburn_micrO
|
#undef Cdrskin_libburn_micrO
|
||||||
#define Cdrskin_libburn_majoR 0
|
#define Cdrskin_libburn_majoR 0
|
||||||
#define Cdrskin_libburn_minoR 6
|
#define Cdrskin_libburn_minoR 5
|
||||||
#define Cdrskin_libburn_micrO 2
|
#define Cdrskin_libburn_micrO 6
|
||||||
#endif
|
#endif
|
||||||
#ifdef Cdrskin_libburn_0_6_3
|
#ifdef Cdrskin_libburn_0_5_7
|
||||||
#undef Cdrskin_libburn_majoR
|
#undef Cdrskin_libburn_majoR
|
||||||
#undef Cdrskin_libburn_minoR
|
#undef Cdrskin_libburn_minoR
|
||||||
#undef Cdrskin_libburn_micrO
|
#undef Cdrskin_libburn_micrO
|
||||||
#define Cdrskin_libburn_majoR 0
|
#define Cdrskin_libburn_majoR 0
|
||||||
#define Cdrskin_libburn_minoR 6
|
#define Cdrskin_libburn_minoR 5
|
||||||
#define Cdrskin_libburn_micrO 3
|
#define Cdrskin_libburn_micrO 5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -251,7 +251,7 @@ or
|
|||||||
/* 0.4.8 */
|
/* 0.4.8 */
|
||||||
/* Bug fix release for write_start_address=... on DVD-RAM and BD-RE */
|
/* Bug fix release for write_start_address=... on DVD-RAM and BD-RE */
|
||||||
|
|
||||||
/* 0.5.0 , 0.5.2 , 0.5.4 , 0.5.6 , 0.5.8 , 0.6.0 , 0.6.2 */
|
/* 0.5.0 , 0.5.2 , 0.5.4 , 0.5.6 */
|
||||||
/* novel libburn features are transparent to cdrskin */
|
/* novel libburn features are transparent to cdrskin */
|
||||||
|
|
||||||
|
|
||||||
@ -2414,11 +2414,11 @@ return:
|
|||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\tformat_overwrite_full\t\tfull-size format a DVD-RW or DVD+RW\n");
|
"\tformat_overwrite_full\t\tfull-size format a DVD-RW or DVD+RW\n");
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\tformat_defectmgt[_max|_min|_none]\tformat DVD-RAM or BD-R[E]\n");
|
"\tformat_defectmgt[_max|_min|_none]\tformat DVD-RAM or BD-RE\n");
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\tformat_defectmgt[_cert_on|_cert_off]\tcertification slow|quick\n");
|
"\tformat_defectmgt[_cert_on|_cert_off]\tcertification slow|quick\n");
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\tformat_defectmgt_payload_<size>\tformat DVD-RAM or BD-R[E]\n");
|
"\tformat_defectmgt_payload_<size>\tformat DVD-RAM or BD-RE\n");
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\tformat_by_index_<number>\t\tformat by index from --list_formats\n");
|
"\tformat_by_index_<number>\t\tformat by index from --list_formats\n");
|
||||||
|
|
||||||
@ -2892,7 +2892,7 @@ set_severities:;
|
|||||||
int major, minor, micro;
|
int major, minor, micro;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
"Cdrecord 2.01-Emulation Copyright (C) 2006-2009, see libburnia-project.org\n");
|
"Cdrecord 2.01-Emulation Copyright (C) 2006-2008, see libburnia-project.org\n");
|
||||||
printf("libburn interface : %d.%d.%d\n",
|
printf("libburn interface : %d.%d.%d\n",
|
||||||
burn_header_version_major, burn_header_version_minor,
|
burn_header_version_major, burn_header_version_minor,
|
||||||
burn_header_version_micro);
|
burn_header_version_micro);
|
||||||
@ -3150,12 +3150,12 @@ struct CdrskiN {
|
|||||||
bit10= format to maximum available size
|
bit10= format to maximum available size
|
||||||
bit11= - reserved -
|
bit11= - reserved -
|
||||||
bit12= - reserved -
|
bit12= - reserved -
|
||||||
bit13= try to disable eventual defect management
|
bit13= - reserved -
|
||||||
bit14= - reserved -
|
bit14= - reserved -
|
||||||
bit15= format by index
|
bit15= format by index
|
||||||
2=deformat_sequential (blank_fast might matter)
|
2=deformat_sequential (blank_fast might matter)
|
||||||
3=format (= format_overwrite restricted to DVD+RW)
|
3=format (= format_overwrite restricted to DVD+RW)
|
||||||
4=format_defectmgt for DVD-RAM, BD-R[E]
|
4=format_defectmgt for DVD-RAM, BD-RE
|
||||||
bit8-15: bit0-7 of burn_disc_format(flag)
|
bit8-15: bit0-7 of burn_disc_format(flag)
|
||||||
bit8 = write zeros after formatting
|
bit8 = write zeros after formatting
|
||||||
bit9+10: size mode
|
bit9+10: size mode
|
||||||
@ -5148,12 +5148,10 @@ int Cdrskin_blank(struct CdrskiN *skin, int flag)
|
|||||||
skin->blank_format_type= 1|(1<<8);
|
skin->blank_format_type= 1|(1<<8);
|
||||||
skin->blank_format_size= 128*1024*1024;
|
skin->blank_format_size= 128*1024*1024;
|
||||||
} else if(profile_number == 0x12 ||
|
} else if(profile_number == 0x12 ||
|
||||||
profile_number == 0x43 ||
|
profile_number == 0x43) { /* DVD-RAM , BD-RE */;
|
||||||
(profile_number == 0x41 && do_format==6)) {
|
|
||||||
/* DVD-RAM , BD-RE , BD-R SRM */
|
|
||||||
#ifdef Cdrskin_libburn_has_burn_disc_formaT
|
#ifdef Cdrskin_libburn_has_burn_disc_formaT
|
||||||
ret= burn_disc_get_formats(drive, &status, &size, &dummy, &num_formats);
|
ret= burn_disc_get_formats(drive, &status, &size, &dummy, &num_formats);
|
||||||
if((ret>0 && status!=BURN_FORMAT_IS_FORMATTED)) {
|
if(ret>0 && status!=BURN_FORMAT_IS_FORMATTED) {
|
||||||
do_format= 4;
|
do_format= 4;
|
||||||
skin->blank_format_type= 4|(3<<9); /* default payload size */
|
skin->blank_format_type= 4|(3<<9); /* default payload size */
|
||||||
skin->blank_format_size= 0;
|
skin->blank_format_size= 0;
|
||||||
@ -5230,10 +5228,9 @@ int Cdrskin_blank(struct CdrskiN *skin, int flag)
|
|||||||
|
|
||||||
} else if(do_format==4) {
|
} else if(do_format==4) {
|
||||||
/* Formatting and influencing defect management of DVD-RAM , BD-RE */
|
/* Formatting and influencing defect management of DVD-RAM , BD-RE */
|
||||||
if(!(profile_number == 0x12 || profile_number == 0x41 ||
|
if(!(profile_number == 0x12 || profile_number == 0x43)) {
|
||||||
profile_number == 0x43)) {
|
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"cdrskin: SORRY : blank=%s for now does DVD-RAM and BD only\n",
|
"cdrskin: SORRY : blank=%s for now does DVD-RAM and BD-RE only\n",
|
||||||
fmt_text);
|
fmt_text);
|
||||||
{ret= 0; goto ex;}
|
{ret= 0; goto ex;}
|
||||||
}
|
}
|
||||||
@ -5842,12 +5839,10 @@ int Cdrskin_activate_write_mode(struct CdrskiN *skin, enum burn_disc_status s,
|
|||||||
profile_number==0x12 ||
|
profile_number==0x12 ||
|
||||||
profile_number==0x11 || profile_number==0x14 ||
|
profile_number==0x11 || profile_number==0x14 ||
|
||||||
profile_number==0x15 ||
|
profile_number==0x15 ||
|
||||||
profile_number==0x1b || profile_number==0x2b ||
|
profile_number==0x1b || profile_number==0x2b)
|
||||||
profile_number==0x41 || profile_number==0x43)
|
|
||||||
&& might_do_tao) {
|
&& might_do_tao) {
|
||||||
/* DVD+RW, DVD-RW Restricted Overwrite, DVD-RAM,
|
/* DVD+RW, DVD-RW Restricted Overwrite, DVD-RAM,
|
||||||
DVD-R[W][/DL] Sequential Recording, DVD+R[/DL],
|
DVD-R[W][/DL] Sequential Recording, DVD+R[/DL] */
|
||||||
BD-R SRM , BD-RE */
|
|
||||||
strcpy(skin->preskin->write_mode_name,"TAO");
|
strcpy(skin->preskin->write_mode_name,"TAO");
|
||||||
} else {
|
} else {
|
||||||
strcpy(skin->preskin->write_mode_name,"SAO");
|
strcpy(skin->preskin->write_mode_name,"SAO");
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<HEAD>
|
<HEAD>
|
||||||
<META NAME="description" CONTENT="cdrskin, a limited cdrecord compatibility wrapper for libburn">
|
<META NAME="description" CONTENT="cdrskin, a limited cdrecord compatibility wrapper for libburn">
|
||||||
<META NAME="keywords" CONTENT="cdrskin, libburn, libburnia, burn, CD, DVD, linux, recording, burning, CD-R, CD-RW, DVD-R, DVD-RW, DVD+RW, DVD+R, DVD+R/DL, DVD-RAM, BD-RE, BD-R, cdrecord, compatible, scdbackup">
|
<META NAME="keywords" CONTENT="cdrskin, libburn, libburnia, burn, CD, DVD, linux, recording, burning, CD-R, CD-RW, DVD-R, DVD-RW, DVD+RW, DVD+R, DVD+R/DL, DVD-RAM, BD-RE, cdrecord, compatible, scdbackup">
|
||||||
<META NAME="robots" CONTENT="follow">
|
<META NAME="robots" CONTENT="follow">
|
||||||
<TITLE>cdrskin homepage english</TITLE>
|
<TITLE>cdrskin homepage english</TITLE>
|
||||||
</HEAD>
|
</HEAD>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
<P>
|
<P>
|
||||||
<H2>Purpose:</H2>
|
<H2>Purpose:</H2>
|
||||||
Burns preformatted data to CD, DVD, and BD media:<BR>
|
Burns preformatted data to CD, DVD, and BD media:<BR>
|
||||||
CD-R, DVD-R, DVD+R, DVD+R/DL, BD-R, CD-RW, DVD-RW, DVD-RAM, DVD+RW, BD-RE
|
CD-R, DVD-R, DVD+R, DVD+R/DL, CD-RW, DVD-RW, DVD-RAM, DVD+RW, BD-RE
|
||||||
</P>
|
</P>
|
||||||
<P>
|
<P>
|
||||||
|
|
||||||
@ -47,8 +47,6 @@ and to MMC-5 for DVD or BD).
|
|||||||
<DT>Linux with kernel 2.4 or higher (and libc, of course) :</DT>
|
<DT>Linux with kernel 2.4 or higher (and libc, of course) :</DT>
|
||||||
<DD>With kernel 2.4 an ATA drive has to be under ide-scsi emulation.</DD>
|
<DD>With kernel 2.4 an ATA drive has to be under ide-scsi emulation.</DD>
|
||||||
<DD>With kernel 2.6 the drive should not be under ide-scsi.</DD>
|
<DD>With kernel 2.6 the drive should not be under ide-scsi.</DD>
|
||||||
<DT>or FreeBSD (with libc, of course) :</DT>
|
|
||||||
<DD>ATAPI/CAM support has to be enabled in the kernel, see atapicam(4).</DD>
|
|
||||||
<DT>libpthread</DT>
|
<DT>libpthread</DT>
|
||||||
<DD>is supposed to be a standard system component.</DD>
|
<DD>is supposed to be a standard system component.</DD>
|
||||||
</DL>
|
</DL>
|
||||||
@ -59,18 +57,15 @@ and to MMC-5 for DVD or BD).
|
|||||||
GPL software included:<BR>
|
GPL software included:<BR>
|
||||||
</H2>
|
</H2>
|
||||||
<DL>
|
<DL>
|
||||||
<DT>libburn-0.6.2</DT>
|
<DT>libburn-0.5.6</DT>
|
||||||
<DD>(founded by Derek Foreman and Ben Jansens,
|
<DD>(founded by Derek Foreman and Ben Jansens,
|
||||||
developed and maintained since August 2006 by
|
furthered since August 2006 by Thomas Schmitt from team of libburnia-project.org)</DD>
|
||||||
Thomas Schmitt from team of libburnia-project.org)
|
<DD>transfers data to CD, DVD, BD-RE</DD>
|
||||||
</DD>
|
|
||||||
<DD>transfers data to CD, DVD, BD</DD>
|
|
||||||
</DL>
|
</DL>
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
<P>
|
<P>
|
||||||
This program system has been tested on Intel/AMD Linux and FreeBSD systems
|
This program system has been tested on Intel/AMD Linux systems only.<BR>
|
||||||
only.<BR>
|
|
||||||
Ports to other usable systems are appreciated. Reports are welcome.
|
Ports to other usable systems are appreciated. Reports are welcome.
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
@ -93,7 +88,7 @@ are provided in a compatible way.<BR>
|
|||||||
On all DVD media except DVD-R DL, cdrskin is able to perform any recording job
|
On all DVD media except DVD-R DL, cdrskin is able to perform any recording job
|
||||||
which is possible with cdrecord.
|
which is possible with cdrecord.
|
||||||
Other than with cdrecord, option -multi is supported with many DVD types and
|
Other than with cdrecord, option -multi is supported with many DVD types and
|
||||||
BD-R. Write mode -tao works with anything but quickly blanked DVD-RW.
|
write mode -tao works with anything but quickly blanked DVD-RW.
|
||||||
</DT>
|
</DT>
|
||||||
<BR><BR>
|
<BR><BR>
|
||||||
<DT>Get an overview of drives and their addresses</DT>
|
<DT>Get an overview of drives and their addresses</DT>
|
||||||
@ -191,8 +186,8 @@ or to do experiments on BD-R media.
|
|||||||
<P>
|
<P>
|
||||||
<DL>
|
<DL>
|
||||||
<DT>Download as source code (see README):</DT>
|
<DT>Download as source code (see README):</DT>
|
||||||
<DD><A HREF="cdrskin-0.6.2.pl00.tar.gz">cdrskin-0.6.2.pl00.tar.gz</A>
|
<DD><A HREF="cdrskin-0.5.6.pl00.tar.gz">cdrskin-0.5.6.pl00.tar.gz</A>
|
||||||
(750 KB).
|
(740 KB).
|
||||||
</DD>
|
</DD>
|
||||||
<DD>
|
<DD>
|
||||||
The cdrskin tarballs are source code identical with libburn releases
|
The cdrskin tarballs are source code identical with libburn releases
|
||||||
@ -241,41 +236,44 @@ cdrskin_0.4.2.pl00-x86-suse9_0-static.tar.gz</A>, (310 KB), -static compiled,
|
|||||||
<HR>
|
<HR>
|
||||||
|
|
||||||
<P>
|
<P>
|
||||||
Enhancements towards previous stable version cdrskin-0.6.0.pl00:
|
Enhancements towards previous stable version cdrskin-0.5.4.pl00:
|
||||||
<UL>
|
<UL>
|
||||||
<LI>Improvements with build system for FreeBSD</LI>
|
<LI>none</LI>
|
||||||
|
<!--
|
||||||
|
-->
|
||||||
|
</UL>
|
||||||
|
|
||||||
|
Bug fixes towards cdrskin-0.5.4.pl00:
|
||||||
|
<UL>
|
||||||
|
<LI>
|
||||||
|
libburn fifo thread was not aborted when burn run was aborted which could
|
||||||
|
lead to use of freed memory
|
||||||
|
</LI>
|
||||||
<!--
|
<!--
|
||||||
<LI>none</LI>
|
<LI>none</LI>
|
||||||
-->
|
-->
|
||||||
</UL>
|
</UL>
|
||||||
|
|
||||||
Bug fixes towards cdrskin-0.6.0.pl00:
|
</P>
|
||||||
<UL>
|
|
||||||
<LI>BD-R media were not closed properly.
|
|
||||||
The last session staid open and unreadable.</LI>
|
|
||||||
<!--
|
|
||||||
<LI>none</LI>
|
|
||||||
-->
|
|
||||||
</UL>
|
|
||||||
|
|
||||||
<HR>
|
<HR>
|
||||||
|
|
||||||
<P>
|
<P>
|
||||||
<DL>
|
<DL>
|
||||||
<DT><H3>Development snapshot, version 0.6.3 :</H3></DT>
|
<DT><H3>Development snapshot, version 0.5.7 :</H3></DT>
|
||||||
<DD>Enhancements towards current stable version 0.6.0.pl00:
|
<DD>Enhancements towards current stable version 0.5.6.pl00:
|
||||||
<UL>
|
<UL>
|
||||||
<LI>none yet</LI>
|
|
||||||
<!--
|
<!--
|
||||||
-->
|
-->
|
||||||
|
<LI>none yet</LI>
|
||||||
|
|
||||||
</UL>
|
</UL>
|
||||||
</DD>
|
</DD>
|
||||||
<DD> </DD>
|
<DD> </DD>
|
||||||
<DD><A HREF="README_cdrskin_devel">README 0.6.3</A>
|
<DD><A HREF="README_cdrskin_devel">README 0.5.7</A>
|
||||||
<DD><A HREF="cdrskin__help_devel">cdrskin_0.6.3 --help</A></DD>
|
<DD><A HREF="cdrskin__help_devel">cdrskin_0.5.7 --help</A></DD>
|
||||||
<DD><A HREF="cdrskin_help_devel">cdrskin_0.6.3 -help</A></DD>
|
<DD><A HREF="cdrskin_help_devel">cdrskin_0.5.7 -help</A></DD>
|
||||||
<DD><A HREF="man_1_cdrskin_devel.html">man cdrskin (as of 0.6.3)</A></DD>
|
<DD><A HREF="man_1_cdrskin_devel.html">man cdrskin (as of 0.5.7)</A></DD>
|
||||||
<DD> </DD>
|
<DD> </DD>
|
||||||
<DT>Maintainers of cdrskin unstable packages please use SVN of
|
<DT>Maintainers of cdrskin unstable packages please use SVN of
|
||||||
<A HREF="http://libburnia-project.org"> libburnia-project.org</A></DT>
|
<A HREF="http://libburnia-project.org"> libburnia-project.org</A></DT>
|
||||||
@ -295,8 +293,8 @@ admins with full system souvereignty.</DT>
|
|||||||
<A HREF="README_cdrskin_devel">upcoming README</A> ):
|
<A HREF="README_cdrskin_devel">upcoming README</A> ):
|
||||||
</DD>
|
</DD>
|
||||||
<DD>
|
<DD>
|
||||||
<A HREF="cdrskin-0.6.3.tar.gz">cdrskin-0.6.3.tar.gz</A>
|
<A HREF="cdrskin-0.5.7.tar.gz">cdrskin-0.5.7.tar.gz</A>
|
||||||
(750 KB).
|
(740 KB).
|
||||||
</DD>
|
</DD>
|
||||||
|
|
||||||
<!-- This is not offered any more since spring 2008
|
<!-- This is not offered any more since spring 2008
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2009.02.20.090001"
|
#define Cdrskin_timestamP "2008.11.12.120001"
|
||||||
|
@ -5927,6 +5927,7 @@ Preparing for libburn-0.5.6
|
|||||||
svn delete http://svn.libburnia-project.org/libburn/branches/ZeroFourSix
|
svn delete http://svn.libburnia-project.org/libburn/branches/ZeroFourSix
|
||||||
Removing obsolete libburn branch ZeroFourSix
|
Removing obsolete libburn branch ZeroFourSix
|
||||||
|
|
||||||
|
|
||||||
2008.11.12.120001 [2183]
|
2008.11.12.120001 [2183]
|
||||||
Makefile.am
|
Makefile.am
|
||||||
configure.ac
|
configure.ac
|
||||||
@ -5946,343 +5947,16 @@ Made number transition to 0.5.6
|
|||||||
+ cdrskin/add_ts_changes_to_libburn_0_5_7
|
+ cdrskin/add_ts_changes_to_libburn_0_5_7
|
||||||
Updated cdrskin tarball generator
|
Updated cdrskin tarball generator
|
||||||
|
|
||||||
12 Nov 2008 [2185]
|
12 Nov 2008 []
|
||||||
cdrskin/changelog.txt
|
cdrskin/changelog.txt
|
||||||
Documented changes and release timestamp
|
Documented changes and release timestamp
|
||||||
|
|
||||||
12 Nov 2008 [2186]
|
------------------------------ release - cdrskin-0.5.6.pl00 - 2008.10.06.073001
|
||||||
cdrskin/cdrskin.c
|
|
||||||
Corrected wrong version number of cdrskin
|
|
||||||
|
|
||||||
------------------------------ release - cdrskin-0.5.6.pl00 - 2008.11.12.120001
|
|
||||||
* Bug fix: libburn fifo thread was not aborted when burn run was aborted
|
* Bug fix: libburn fifo thread was not aborted when burn run was aborted
|
||||||
which could lead to use of freed memory
|
which could lead to use of freed memory
|
||||||
|
|
||||||
|
------------------------------------ cycle - cdrskin-0.5.7 -
|
||||||
2008.11.12.121832 [2187]
|
------------------------------------ cycle - cdrskin-0.5.7 -
|
||||||
Makefile.am
|
|
||||||
configure.ac
|
|
||||||
README
|
|
||||||
libburn/libburn.h
|
|
||||||
cdrskin/cdrskin.c
|
|
||||||
cdrskin/README
|
|
||||||
cdrskin/compile_cdrskin.sh
|
|
||||||
cdrskin/cdrskin_timestamp.h
|
|
||||||
cdrskin/cdrskin_eng.html
|
|
||||||
Made number transition to 0.5.7
|
|
||||||
|
|
||||||
12 Nov 2008 [2188]
|
|
||||||
- cdrskin/add_ts_changes_to_libburn_0_5_4
|
|
||||||
- cdrskin/add_ts_changes_to_libburn_0_5_5
|
|
||||||
+ cdrskin/add_ts_changes_to_libburn_0_5_6
|
|
||||||
+ cdrskin/add_ts_changes_to_libburn_0_5_7
|
|
||||||
Updated cdrskin tarball generator
|
|
||||||
|
|
||||||
12 Nov 2008 [2189]
|
|
||||||
cdrskin/changelog.txt
|
|
||||||
Documented changes and release timestamp
|
|
||||||
|
|
||||||
------------------------------------ cycle - cdrskin-0.5.7 - 2008.11.12.130026
|
|
||||||
|
|
||||||
12 Nov 2008 [2191]
|
|
||||||
svn move \
|
|
||||||
http://svn.libburnia-project.org/libburn/"$svn_name" \
|
|
||||||
http://svn.libburnia-project.org/libburn/"$tag_name"
|
|
||||||
libburn release 0.5.6 is ready
|
|
||||||
|
|
||||||
2008.11.15.220652 [2197]
|
|
||||||
libburn/sg-freebsd.c
|
|
||||||
libburn/sg-freebsd-port.c
|
|
||||||
Removed remark that use of statvfs() was untested with FreeBSD
|
|
||||||
|
|
||||||
21 Nov 2008 [2208]
|
|
||||||
README
|
|
||||||
cdrskin/README
|
|
||||||
cdrskin/cdrskin_eng.html
|
|
||||||
Mentioned FreeBSD peculiarities in our docs
|
|
||||||
|
|
||||||
2008.11.26.210608 [2213]
|
|
||||||
libburn/structure.c
|
|
||||||
Added tests against the SIGSEGV of ticket 146
|
|
||||||
|
|
||||||
2008.11.27.081027 [2214]
|
|
||||||
libburn/libdax_msgs.h
|
|
||||||
libburn/structure.c
|
|
||||||
Truncating eventually detected damaged CD table-of-content
|
|
||||||
|
|
||||||
------------------------------------ cycle - cdrskin-0.5.7 - 2008.11.27.081027
|
|
||||||
* Bug fix: Session without leadout entry on CD caused SIGSEGV
|
|
||||||
|
|
||||||
|
|
||||||
2008.11.27.172124 [2215]
|
|
||||||
libburn/libdax_msgs.h
|
|
||||||
libburn/structure.c
|
|
||||||
Changed error severity with TOC truncation to MISHAP
|
|
||||||
|
|
||||||
2008.11.29.140115 [2217]
|
|
||||||
libburn/spc.c
|
|
||||||
Translating ASC=0x31 formatting error messages, reporting command names
|
|
||||||
|
|
||||||
2008.11.29.140404 [2218]
|
|
||||||
libburn/mmc.c
|
|
||||||
Circumventing BD-RE Quick Certification refusal of LG GGW-H20L YL03
|
|
||||||
|
|
||||||
------------------------------------ cycle - cdrskin-0.5.7 - 2008.11.29.140404
|
|
||||||
|
|
||||||
|
|
||||||
2008.12.03.085219 [2239]
|
|
||||||
libburn/mmc.c
|
|
||||||
libburn/structure.c
|
|
||||||
libburn/libdax_msgs.h
|
|
||||||
Defaulting sessions without leadout entry
|
|
||||||
|
|
||||||
------------------------------------ cycle - cdrskin-0.5.7 - 2008.12.03.085219
|
|
||||||
|
|
||||||
|
|
||||||
Dec 07 2008 [2248]
|
|
||||||
svn copy http://svn.libburnia-project.org/libburn/trunk
|
|
||||||
http://svn.libburnia-project.org/libburn/branches/ZeroFiveEight
|
|
||||||
Preparing for libburn-0.5.8
|
|
||||||
|
|
||||||
2008.12.07.140001 [2249]
|
|
||||||
Makefile.am
|
|
||||||
configure.ac
|
|
||||||
README
|
|
||||||
libburn/libburn.h
|
|
||||||
cdrskin/cdrskin.c
|
|
||||||
cdrskin/README
|
|
||||||
cdrskin/compile_cdrskin.sh
|
|
||||||
cdrskin/cdrskin_timestamp.h
|
|
||||||
cdrskin/cdrskin_eng.html
|
|
||||||
Made number transition to 0.5.8
|
|
||||||
|
|
||||||
Dec 07 2008 [2250]
|
|
||||||
- cdrskin/add_ts_changes_to_libburn_0_5_6
|
|
||||||
- cdrskin/add_ts_changes_to_libburn_0_5_7
|
|
||||||
+ cdrskin/add_ts_changes_to_libburn_0_5_8
|
|
||||||
+ cdrskin/add_ts_changes_to_libburn_0_5_9
|
|
||||||
Updated cdrskin tarball generator
|
|
||||||
|
|
||||||
Dec 07 2008 [2251]
|
|
||||||
cdrskin/changelog.txt
|
|
||||||
Documented changes and release timestamp
|
|
||||||
|
|
||||||
------------------------------ release - cdrskin-0.5.8.pl00 - 2008.12.07.140001
|
|
||||||
* Bug fix: A session without leadout entry on CD caused a SIGSEGV by NULL
|
|
||||||
* Improvements about BD-RE formatting
|
|
||||||
|
|
||||||
|
|
||||||
2008.12.07.155219 [2252]
|
|
||||||
Makefile.am
|
|
||||||
configure.ac
|
|
||||||
README
|
|
||||||
libburn/libburn.h
|
|
||||||
cdrskin/cdrskin.c
|
|
||||||
cdrskin/README
|
|
||||||
cdrskin/compile_cdrskin.sh
|
|
||||||
cdrskin/cdrskin_timestamp.h
|
|
||||||
cdrskin/cdrskin_eng.html
|
|
||||||
Made number transition to 0.5.9
|
|
||||||
|
|
||||||
Dec 07 2008 [2253]
|
|
||||||
- cdrskin/add_ts_changes_to_libburn_0_5_6
|
|
||||||
- cdrskin/add_ts_changes_to_libburn_0_5_7
|
|
||||||
+ cdrskin/add_ts_changes_to_libburn_0_5_8
|
|
||||||
+ cdrskin/add_ts_changes_to_libburn_0_5_9
|
|
||||||
Updated cdrskin tarball generator
|
|
||||||
|
|
||||||
Dec 07 2008 [2254]
|
|
||||||
cdrskin/changelog.txt
|
|
||||||
Documented changes and release timestamp
|
|
||||||
|
|
||||||
Dec 07 2008 [2255]
|
|
||||||
svn move -m "libburn release 0.5.8 is ready" \
|
|
||||||
http://svn.libburnia-project.org/libburn/branches/ZeroFiveEigh \
|
|
||||||
http://svn.libburnia-project.org/libburn/tags/ZeroFiveEight
|
|
||||||
|
|
||||||
svn delete -m 'Deleted obsolete branch' \
|
|
||||||
http://svn.libburnia-project.org/libburn/branches/"$svn_name"
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------ cycle - cdrskin-0.5.9 - 2008.12.07.155219
|
|
||||||
|
|
||||||
2008.12.09.123314 [2264]
|
|
||||||
libburn/libburn.h
|
|
||||||
libburn/drive.c
|
|
||||||
libburn/async.c
|
|
||||||
libburn/write.c
|
|
||||||
libburn/mmc.c
|
|
||||||
Beginning to implement write code for BD-R SRM without POW
|
|
||||||
|
|
||||||
2008.12.09.123558 [2265]
|
|
||||||
cdrskin/cdrskin.c
|
|
||||||
Beginning to implement write code for BD-R SRM without POW
|
|
||||||
|
|
||||||
2008.12.10.092535 [2271]
|
|
||||||
libburn/transport.h
|
|
||||||
libburn/async.c
|
|
||||||
libburn/mmc.h
|
|
||||||
libburn/mmc.c
|
|
||||||
Formatting of BD-R SRM to default size and by index
|
|
||||||
|
|
||||||
2008.12.10.114241 [2273]
|
|
||||||
cdrskin/cdrskin.c
|
|
||||||
Formatting of BD-R SRM to default size and by index
|
|
||||||
|
|
||||||
10 Dec 2008 [2274]
|
|
||||||
README
|
|
||||||
cdrskin/README
|
|
||||||
cdrskin/cdrskin.1
|
|
||||||
cdrskin/wiki_plain.txt
|
|
||||||
Mentioning BD-R in documentation
|
|
||||||
|
|
||||||
2008.12.11.072308 [2276]
|
|
||||||
libburn/libdax_msgs.h
|
|
||||||
libburn/async.c
|
|
||||||
Rejecting unformattable BD-R more early
|
|
||||||
|
|
||||||
2008.12.11.092204 [2278]
|
|
||||||
libburn/libdax_msgs.h
|
|
||||||
libburn/async.c
|
|
||||||
libburn/mmc.c
|
|
||||||
cdrskin/cdrskin.1
|
|
||||||
Catching BD-R zero spare formatting with NOTE rather than SORRY
|
|
||||||
|
|
||||||
2008.12.12.112129 [2279]
|
|
||||||
libburn/libburn.h
|
|
||||||
libburn/async.c
|
|
||||||
libburn/mmc.c
|
|
||||||
Making format size of BD-RE and BD-R quite freely adjustable
|
|
||||||
|
|
||||||
2008.12.12.214013 [2280]
|
|
||||||
libburn/transport.h
|
|
||||||
libburn/async.c
|
|
||||||
libburn/mmc.c
|
|
||||||
Interpreting feature 0023h for BD formatting capabilities
|
|
||||||
|
|
||||||
2008.12.13.144909 [2284]
|
|
||||||
configure.ac
|
|
||||||
Now producing libburn.so.4.24.0
|
|
||||||
|
|
||||||
------------------------------------ cycle - cdrskin-0.5.9 - 2008.12.13.144909
|
|
||||||
* Formatting and writing of BD-R media
|
|
||||||
|
|
||||||
|
|
||||||
14 Dec 2008 [2289]
|
|
||||||
test/libburner.c
|
|
||||||
Updated libburner to BD-R
|
|
||||||
|
|
||||||
14 Dec 2008 [2290]
|
|
||||||
cdrskin/cdrskin_eng.html
|
|
||||||
Updated cdrskin web page
|
|
||||||
|
|
||||||
2008.12.17.091905 [2297]
|
|
||||||
libburn/libburn.h
|
|
||||||
libburn/drive.c
|
|
||||||
New API function burn_get_read_capacity()
|
|
||||||
|
|
||||||
17 Dec 2008 [2298] [2302]
|
|
||||||
doc/comments
|
|
||||||
Removed project overview and references to libisofs and libisoburn
|
|
||||||
|
|
||||||
------------------------------------ cycle - cdrskin-0.5.9 - 2008.12.19.070912
|
|
||||||
* New API function burn_get_read_capacity()
|
|
||||||
|
|
||||||
|
|
||||||
2008.12.19.203523 [2306]
|
|
||||||
libburn/libburn.h
|
|
||||||
Clarified blank, appendable, closed burn_disc_status
|
|
||||||
|
|
||||||
2008.12.22.130527 [2323]
|
|
||||||
libburn/async.c
|
|
||||||
Fixed denial of fast formatting with BD-RE introduced by revision 2280
|
|
||||||
|
|
||||||
------------------------------------ cycle - cdrskin-0.5.9 - 2008.12.23.144853
|
|
||||||
|
|
||||||
|
|
||||||
2008.12.29.105341 [2342]
|
|
||||||
libburn/libburn.h
|
|
||||||
test/libburner.c
|
|
||||||
Cosmetic changes
|
|
||||||
|
|
||||||
Jan 02 2009 [2346]
|
|
||||||
svn copy http://svn.libburnia-project.org/libburn/trunk
|
|
||||||
http://svn.libburnia-project.org/libburn/branches/ZeroSixZero
|
|
||||||
Preparing for libburn-0.6.0
|
|
||||||
|
|
||||||
02 Jan 2009 [2347]
|
|
||||||
COPYRIGHT
|
|
||||||
libburn/libdax_msgs.c
|
|
||||||
libburn/libdax_msgs.h
|
|
||||||
test/libburner.c
|
|
||||||
Updated copyright claims to year 2009
|
|
||||||
|
|
||||||
2009.01.02.160001 [2348]
|
|
||||||
Makefile.am
|
|
||||||
configure.ac
|
|
||||||
README
|
|
||||||
libburn/libburn.h
|
|
||||||
cdrskin/cdrskin.c
|
|
||||||
cdrskin/README
|
|
||||||
cdrskin/compile_cdrskin.sh
|
|
||||||
cdrskin/cdrskin_timestamp.h
|
|
||||||
cdrskin/cdrskin_eng.html
|
|
||||||
Made number transition to 0.6.0
|
|
||||||
|
|
||||||
02 Jan 2009 [2349]
|
|
||||||
- cdrskin/add_ts_changes_to_libburn_0_5_8
|
|
||||||
- cdrskin/add_ts_changes_to_libburn_0_5_9
|
|
||||||
+ cdrskin/add_ts_changes_to_libburn_0_6_0
|
|
||||||
+ cdrskin/add_ts_changes_to_libburn_0_6_1
|
|
||||||
Updated cdrskin tarball generator
|
|
||||||
|
|
||||||
02 Jan 2009 [2350]
|
|
||||||
cdrskin/changelog.txt
|
|
||||||
Documented changes and release timestamp
|
|
||||||
|
|
||||||
------------------------------ release - cdrskin-0.6.0.pl00 - 2009.01.02.160001
|
|
||||||
* Formatting and writing of BD-R media
|
|
||||||
* New API function burn_get_read_capacity()
|
|
||||||
|
|
||||||
03 Jan 2009 []
|
|
||||||
COPYRIGHT
|
|
||||||
libburn/libdax_msgs.c
|
|
||||||
libburn/libdax_msgs.h
|
|
||||||
test/libburner.c
|
|
||||||
Updated copyright claims to year 2009
|
|
||||||
|
|
||||||
[]
|
|
||||||
Makefile.am
|
|
||||||
configure.ac
|
|
||||||
README
|
|
||||||
libburn/libburn.h
|
|
||||||
cdrskin/cdrskin.c
|
|
||||||
cdrskin/README
|
|
||||||
cdrskin/compile_cdrskin.sh
|
|
||||||
cdrskin/cdrskin_timestamp.h
|
|
||||||
cdrskin/cdrskin_eng.html
|
|
||||||
Made number transition to 0.6.0
|
|
||||||
|
|
||||||
03 Jan 2009 []
|
|
||||||
- cdrskin/add_ts_changes_to_libburn_0_5_8
|
|
||||||
- cdrskin/add_ts_changes_to_libburn_0_5_9
|
|
||||||
+ cdrskin/add_ts_changes_to_libburn_0_6_0
|
|
||||||
+ cdrskin/add_ts_changes_to_libburn_0_6_1
|
|
||||||
Updated cdrskin tarball generator
|
|
||||||
|
|
||||||
03 Jan 2009 []
|
|
||||||
cdrskin/changelog.txt
|
|
||||||
Documented changes and release timestamp
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------ cycle - cdrskin-0.6.1 -
|
|
||||||
------------------------------------ cycle - cdrskin-0.6.1 -
|
|
||||||
|
|
||||||
|
|
||||||
[]
|
|
||||||
libburn/spc.c
|
|
||||||
Error texts for ASC 73 : power calibration and program memory
|
|
||||||
|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
TODO
|
TODO
|
||||||
@ -6291,15 +5965,11 @@ Error texts for ASC 73 : power calibration and program memory
|
|||||||
|
|
||||||
--------------------------------- bugs -------------------------------------
|
--------------------------------- bugs -------------------------------------
|
||||||
|
|
||||||
- Needed is a system dependend facility: dev_t <-> major, minor
|
|
||||||
|
|
||||||
- Do something about drive->buffer asynchronous race conditions
|
- Do something about drive->buffer asynchronous race conditions
|
||||||
and dangerous use of local heap memory.
|
and dangerous use of local heap memory.
|
||||||
(The various asynchronous operations use the same buffer
|
(The various asynchronous operations use the same buffer
|
||||||
pointer in struct burn_drive and let it point to
|
pointer in struct burn_drive and let it point to
|
||||||
their private memory.
|
their private memory.)
|
||||||
Of course, any problem is due to faulty application
|
|
||||||
... but then it is really hard to detect.)
|
|
||||||
|
|
||||||
- Why are DVD+R tracks labeled "invisible" by dvd+rw-mediainfo ?
|
- Why are DVD+R tracks labeled "invisible" by dvd+rw-mediainfo ?
|
||||||
Why does the DVD drive only show the first session ?
|
Why does the DVD drive only show the first session ?
|
||||||
@ -6313,10 +5983,7 @@ READ TRACK INFORMATION[#5]:
|
|||||||
|
|
||||||
------------------------------ end of bugs ---------------------------------
|
------------------------------ end of bugs ---------------------------------
|
||||||
|
|
||||||
Support for BD-R SRM+POW
|
Enable profile 0x41 BD-R sequential recording (much like DVD+R)
|
||||||
|
|
||||||
? Provide an option to open track source file O_DIRECT ?
|
|
||||||
(needs read chunks much larger than 2 kB)
|
|
||||||
|
|
||||||
? Enable profile 0x42 BD-R random recording
|
? Enable profile 0x42 BD-R random recording
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
debug_opts="-O2"
|
debug_opts="-O2"
|
||||||
def_opts=
|
def_opts=
|
||||||
largefile_opts="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1"
|
largefile_opts="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1"
|
||||||
libvers="-DCdrskin_libburn_0_6_2"
|
libvers="-DCdrskin_libburn_0_5_6"
|
||||||
cleanup_src_or_obj="libburn/cleanup.o"
|
cleanup_src_or_obj="libburn/cleanup.o"
|
||||||
libdax_msgs_o="libburn/libdax_msgs.o"
|
libdax_msgs_o="libburn/libdax_msgs.o"
|
||||||
libdax_audioxtr_o="libburn/libdax_audioxtr.o"
|
libdax_audioxtr_o="libburn/libdax_audioxtr.o"
|
||||||
@ -33,15 +33,15 @@ do
|
|||||||
libdax_audioxtr_o=
|
libdax_audioxtr_o=
|
||||||
libdax_msgs_o="libburn/message.o"
|
libdax_msgs_o="libburn/message.o"
|
||||||
cleanup_src_or_obj="-DCleanup_has_no_libburn_os_H cdrskin/cleanup.c"
|
cleanup_src_or_obj="-DCleanup_has_no_libburn_os_H cdrskin/cleanup.c"
|
||||||
elif test "$i" = "-libburn_0_6_2"
|
elif test "$i" = "-libburn_0_5_6"
|
||||||
then
|
then
|
||||||
libvers="-DCdrskin_libburn_0_6_2"
|
libvers="-DCdrskin_libburn_0_5_6"
|
||||||
libdax_audioxtr_o="libburn/libdax_audioxtr.o"
|
libdax_audioxtr_o="libburn/libdax_audioxtr.o"
|
||||||
libdax_msgs_o="libburn/libdax_msgs.o"
|
libdax_msgs_o="libburn/libdax_msgs.o"
|
||||||
cleanup_src_or_obj="libburn/cleanup.o"
|
cleanup_src_or_obj="libburn/cleanup.o"
|
||||||
elif test "$i" = "-libburn_svn"
|
elif test "$i" = "-libburn_svn"
|
||||||
then
|
then
|
||||||
libvers="-DCdrskin_libburn_0_6_3"
|
libvers="-DCdrskin_libburn_0_5_7"
|
||||||
libdax_audioxtr_o="libburn/libdax_audioxtr.o"
|
libdax_audioxtr_o="libburn/libdax_audioxtr.o"
|
||||||
libdax_msgs_o="libburn/libdax_msgs.o"
|
libdax_msgs_o="libburn/libdax_msgs.o"
|
||||||
cleanup_src_or_obj="libburn/cleanup.o"
|
cleanup_src_or_obj="libburn/cleanup.o"
|
||||||
@ -76,7 +76,7 @@ do
|
|||||||
echo " -compile_cdrfifo compile program cdrskin/cdrfifo."
|
echo " -compile_cdrfifo compile program cdrskin/cdrfifo."
|
||||||
echo " -compile_dewav compile program test/dewav without libburn."
|
echo " -compile_dewav compile program test/dewav without libburn."
|
||||||
echo " -cvs_A60220 set macro to match libburn-CVS of 20 Feb 2006."
|
echo " -cvs_A60220 set macro to match libburn-CVS of 20 Feb 2006."
|
||||||
echo " -libburn_0_6_2 set macro to match libburn-0.6.2"
|
echo " -libburn_0_5_6 set macro to match libburn-0.5.6"
|
||||||
echo " -libburn_svn set macro to match current libburn-SVN."
|
echo " -libburn_svn set macro to match current libburn-SVN."
|
||||||
echo " -no_largefile do not use 64 bit off_t (must match libburn)."
|
echo " -no_largefile do not use 64 bit off_t (must match libburn)."
|
||||||
echo " -do_not_compile_cdrskin omit compilation of cdrskin/cdrskin."
|
echo " -do_not_compile_cdrskin omit compilation of cdrskin/cdrskin."
|
||||||
|
@ -10,8 +10,8 @@ Schilling's cdrtools. cdrskin strives to be a second source for the services
|
|||||||
traditionally provided by cdrecord. Currently it does CD-R and CD-RW this way.
|
traditionally provided by cdrecord. Currently it does CD-R and CD-RW this way.
|
||||||
Overwriteable media DVD-RAM, DVD+RW, DVD-RW, and BD-RE are handled differently
|
Overwriteable media DVD-RAM, DVD+RW, DVD-RW, and BD-RE are handled differently
|
||||||
than with cdrecord-ProDVD in order to offer TAO-like single track recording.
|
than with cdrecord-ProDVD in order to offer TAO-like single track recording.
|
||||||
Sequential DVD-R[W], DVD+R, DVD+R DL, BD-R are handled like CD-R[W] with TAO
|
Sequential DVD-R[W], DVD+R, DVD+R DL are handled like CD-R[W] with TAO and
|
||||||
and multi-session. Additionally cdrskin offers cdrecord-ProDVD-like mode DAO
|
multi-session. Additionally cdrskin offers cdrecord-ProDVD-like mode DAO
|
||||||
with DVD-R[W].
|
with DVD-R[W].
|
||||||
|
|
||||||
cdrskin does not contain any bytes copied from cdrecord's sources.
|
cdrskin does not contain any bytes copied from cdrecord's sources.
|
||||||
|
19
configure.ac
19
configure.ac
@ -1,4 +1,4 @@
|
|||||||
AC_INIT([libburn], [0.6.2], [http://libburnia-project.org])
|
AC_INIT([libburn], [0.5.6], [http://libburnia-project.org])
|
||||||
AC_PREREQ([2.50])
|
AC_PREREQ([2.50])
|
||||||
dnl AC_CONFIG_HEADER([config.h])
|
dnl AC_CONFIG_HEADER([config.h])
|
||||||
|
|
||||||
@ -66,9 +66,6 @@ dnl 0.5.0 = libburn.so.4.15.0
|
|||||||
dnl 0.5.2 = libburn.so.4.17.0
|
dnl 0.5.2 = libburn.so.4.17.0
|
||||||
dnl 0.5.4 = libburn.so.4.19.0
|
dnl 0.5.4 = libburn.so.4.19.0
|
||||||
dnl 0.5.6 = libburn.so.4.21.0
|
dnl 0.5.6 = libburn.so.4.21.0
|
||||||
dnl 0.5.8 = libburn.so.4.23.0
|
|
||||||
dnl 0.6.0 = libburn.so.4.25.0
|
|
||||||
dnl 0.6.2 = libburn.so.4.27.0
|
|
||||||
dnl
|
dnl
|
||||||
dnl So LT_CURRENT, LT_REVISION and LT_AGE get set directly here.
|
dnl So LT_CURRENT, LT_REVISION and LT_AGE get set directly here.
|
||||||
dnl SONAME of the emerging library is LT_CURRENT - LT_AGE.
|
dnl SONAME of the emerging library is LT_CURRENT - LT_AGE.
|
||||||
@ -93,8 +90,8 @@ dnl If BURN_*_VERSION changes, be sure to change AC_INIT above to match.
|
|||||||
dnl
|
dnl
|
||||||
dnl As said: Only copies. Original in libburn/libburn.h : burn_header_version_*
|
dnl As said: Only copies. Original in libburn/libburn.h : burn_header_version_*
|
||||||
BURN_MAJOR_VERSION=0
|
BURN_MAJOR_VERSION=0
|
||||||
BURN_MINOR_VERSION=6
|
BURN_MINOR_VERSION=5
|
||||||
BURN_MICRO_VERSION=2
|
BURN_MICRO_VERSION=6
|
||||||
BURN_VERSION=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
|
BURN_VERSION=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
|
||||||
|
|
||||||
AC_SUBST(BURN_MAJOR_VERSION)
|
AC_SUBST(BURN_MAJOR_VERSION)
|
||||||
@ -105,15 +102,15 @@ AC_SUBST(BURN_VERSION)
|
|||||||
dnl Libtool versioning
|
dnl Libtool versioning
|
||||||
LT_RELEASE=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
|
LT_RELEASE=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
|
||||||
dnl
|
dnl
|
||||||
dnl ts A90220
|
dnl ts A81111
|
||||||
dnl This is the release version libburn-0.6.2 = libburn.so.4.27.0
|
dnl This is the release version libburn-0.5.6 = libburn.so.4.21.0
|
||||||
dnl ### This is the development version after above release version
|
dnl ### This is the development version after above release version
|
||||||
dnl LT_CURRENT++, LT_AGE++ has not yet happened.
|
dnl LT_CURRENT++, LT_AGE++ has not yet happened.
|
||||||
dnl ### LT_CURRENT++, LT_AGE++ has happened meanwhile.
|
dnl ### LT_CURRENT++, LT_AGE++ has happened meanwhile.
|
||||||
dnl
|
dnl
|
||||||
dnl SONAME = 31 - 27 = 4 . Library name = libburn.so.4.27.0
|
dnl SONAME = 25 - 21 = 4 . Library name = libburn.so.4.21.0
|
||||||
LT_CURRENT=31
|
LT_CURRENT=25
|
||||||
LT_AGE=27
|
LT_AGE=21
|
||||||
LT_REVISION=0
|
LT_REVISION=0
|
||||||
LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
|
LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
|
||||||
|
|
||||||
|
128
doc/comments
128
doc/comments
@ -1,51 +1,106 @@
|
|||||||
/**
|
/**
|
||||||
@author Mario Danic, Thomas Schmitt
|
@author Mario Danic, Thomas Schmitt
|
||||||
|
|
||||||
@mainpage Libburn Documentation Index
|
@mainpage Libburnia Documentation Index
|
||||||
|
|
||||||
@section intro Introduction
|
@section intro Introduction
|
||||||
|
|
||||||
Libburnia is an open-source project for reading, mastering and writing
|
Libburnia is an open-source project for reading, mastering and writing
|
||||||
optical discs. This page is about its capability to handle optical media.
|
optical discs.
|
||||||
For now this means CD-R, CD-RW, DVD-RAM, DVD+RW, DVD+R, DVD+R/DL, DVD-RW,
|
For now this means CD-R, CD-RW, DVD-RAM, DVD+RW, DVD+R, DVD+R/DL, DVD-RW,
|
||||||
DVD-R, BD-R, BD-RE.
|
DVD-R, BD-RE.
|
||||||
|
|
||||||
Not supported yet are DVD-R/DL. Testers wanted.
|
Not supported yet are DVD-R/DL, HD-DVD, BD-R (blue ray). Testers for
|
||||||
|
DVD-R/DL are wanted, though. BD-R programming efforts would be made
|
||||||
|
if an interested tester contacts us.
|
||||||
|
|
||||||
Our scope is currently Linux 2.4 and 2.6, or FreeBSD . For ports to other
|
The project comprises of several more or less interdependent parts which
|
||||||
systems we would need : login on a development machine resp. a live OS on CD
|
together strive to be a usable foundation for application development.
|
||||||
or DVD, advise from a system person about the equivalent of Linux sg or FreeBSD
|
These are libraries, language bindings, and middleware binaries which emulate
|
||||||
CAM, volunteers for testing of realistic use cases.
|
classical (and valuable) Linux tools.
|
||||||
|
|
||||||
libburn is the library by which preformatted data get onto optical media.
|
Our scope is currently Linux 2.4 and 2.6 only. For ports to other systems
|
||||||
Its code is independent of cdrecord. Its DVD capabilities are learned from
|
we would need : login on a development machine resp. a live OS on CD or DVD,
|
||||||
studying the code of dvd+rw-tools and MMC-5 specs. No code but only the pure
|
advise from a system person about the equivalent of Linux sg or FreeBSD CAM,
|
||||||
SCSI knowledge has been taken from dvd+rw-tools, though.
|
volunteers for testing of realistic use cases.
|
||||||
|
|
||||||
cdrskin is a limited cdrecord compatibility wrapper for libburn.
|
We have a well tested code base for burning data and audio CDs and many DVD
|
||||||
cdrecord is a powerful GPL'ed burn program included in Joerg Schilling's
|
types. The burn API is quite comprehensively documented and can be used to
|
||||||
cdrtools. cdrskin strives to be a second source for the services traditionally
|
build a presentable application.
|
||||||
provided by cdrecord. Additionally it provides libburn's DVD/BD capabilities,
|
We have a functional binary which emulates the core use cases of cdrecord in
|
||||||
where only -sao is compatible with cdrecord.
|
order to prove that usability, and in order to allow you to explore libburn's
|
||||||
cdrskin does not contain any bytes copied from cdrecord's sources.
|
scope by help of existing cdrecord frontends.
|
||||||
Many bytes have been copied from the message output of cdrecord runs, though.
|
|
||||||
See cdrskin/README for more.
|
|
||||||
|
|
||||||
The burn API example of libburn is named test/libburner.c . The API for media
|
ISO 9660 filesystems with Rock Ridge and Joliet extensions can be created
|
||||||
information inquiry is demonstrated in test/telltoc.c .
|
and manipulated quite freely. This capability together with our burn capability
|
||||||
Explore these examples if you look for inspiration.
|
makes possible a single binary application which covers all steps of image
|
||||||
|
composition, updating and writing. Quite unique in the Linux world.
|
||||||
|
|
||||||
SONAME:
|
@subsection components The project components (list subject to growth, hopefully):
|
||||||
|
|
||||||
|
- libburn is the library by which preformatted data get onto optical media.
|
||||||
|
It uses either /dev/sgN (e.g. on kernel 2.4 with ide-scsi) or
|
||||||
|
/dev/srM or /dev/hdX (e.g. on kernel 2.6).
|
||||||
|
libburn is the foundation of our cdrecord emulation. Its code is
|
||||||
|
independent of cdrecord. Its DVD capabilities are learned from
|
||||||
|
studying the code of dvd+rw-tools and MMC-5 specs. No code but only
|
||||||
|
the pure SCSI knowledge has been taken from dvd+rw-tools, though.
|
||||||
|
|
||||||
|
- libisofs is the library to pack up hard disk files and directories into a
|
||||||
|
ISO 9660 disk image. This may then be brought to CD via libburn.
|
||||||
|
libisofs is to be the foundation of our upcoming mkisofs emulation.
|
||||||
|
|
||||||
|
- libisoburn is an add-on to libburn and libisofs which coordinates both and
|
||||||
|
also allows to grow ISO-9660 filesystem images on multi-session
|
||||||
|
media as well as on overwriteable media via the same API.
|
||||||
|
All media peculiarities are handled automatically.
|
||||||
|
|
||||||
|
- cdrskin is a limited cdrecord compatibility wrapper for libburn.
|
||||||
|
cdrecord is a powerful GPL'ed burn program included in Joerg
|
||||||
|
Schilling's cdrtools. cdrskin strives to be a second source for
|
||||||
|
the services traditionally provided by cdrecord. Additionally it
|
||||||
|
provides libburn's DVD/BD capabilities, where only -sao is
|
||||||
|
compatible with cdrecord.
|
||||||
|
cdrskin does not contain any bytes copied from cdrecord's sources.
|
||||||
|
Many bytes have been copied from the message output of cdrecord
|
||||||
|
runs, though.
|
||||||
|
See cdrskin/README for more.
|
||||||
|
|
||||||
|
- xorriso is an application of all three libraries which creates, loads,
|
||||||
|
manipulates and writes ISO 9660 filesystem images with
|
||||||
|
Rock Ridge extensions. Manipulation is not only adding or
|
||||||
|
overwriting of files but also deletion, renaming, and attribute
|
||||||
|
changing. An incremental backup feature is provided.
|
||||||
|
See xorriso/README for more
|
||||||
|
|
||||||
|
- "test" is a collection of application gestures and examples given by the
|
||||||
|
authors of the library features. The burn API example of libburn
|
||||||
|
is named test/libburner.c . The API for media information inquiry is
|
||||||
|
demonstrated in test/telltoc.c .
|
||||||
|
Explore these examples if you look for inspiration.
|
||||||
|
|
||||||
|
We strive to be a responsive upstream.
|
||||||
|
|
||||||
|
Our libraries are committed to maintain older feature sets in newer versions.
|
||||||
|
This applies to source code headers (API) as well as to linkable objects (ABI).
|
||||||
|
The only exception from this rule is about non-release versions x.y.*[13579]
|
||||||
|
which are allowed to introduce new features, change those new features in
|
||||||
|
any way and even may revoke such new features before the next release of
|
||||||
|
x.y.*[02468]. As soon as it is released, a feature is promised to persist.
|
||||||
|
|
||||||
|
SONAMES:
|
||||||
libburn.so.4 (since 0.3.4, March 2007),
|
libburn.so.4 (since 0.3.4, March 2007),
|
||||||
|
libisofs.so.6 (since 0.6.2, February 2008),
|
||||||
|
libisoburn.so.1 (since 0.1.0, February 2008).
|
||||||
|
|
||||||
|
|
||||||
@section using Using libburn
|
@section using Using the libraries
|
||||||
|
|
||||||
Our build system is based on autotools.
|
Our build system is based on autotools.
|
||||||
User experience tells us that you will need at least autotools version 1.7.
|
User experience tells us that you will need at least autotools version 1.7.
|
||||||
|
|
||||||
To build libburn and its companion applications go into its toplevel directory
|
To build libburn and its subprojects it should be sufficient to go into
|
||||||
and execute
|
its toplevel directory and execute
|
||||||
|
|
||||||
- ./bootstrap (needed if you downloaded from SVN)
|
- ./bootstrap (needed if you downloaded from SVN)
|
||||||
|
|
||||||
@ -57,24 +112,29 @@ To make the libraries accessible for running resp. developing applications
|
|||||||
|
|
||||||
- make install
|
- make install
|
||||||
|
|
||||||
|
Both libraries are written in C language and get built by autotools.
|
||||||
|
Thus we expect them to be useable by a wide range of Linux-implemented
|
||||||
|
languages and development tools.
|
||||||
|
|
||||||
|
|
||||||
@section libburner Libburner
|
@section libburner Libburner
|
||||||
|
|
||||||
libburner is a minimal demo application for the library libburn
|
libburner is a minimal demo application for the library libburn
|
||||||
(see: libburn/libburn.h) as provided on http://libburnia-project.org .
|
(see: libburn/libburn.h) as provided on http://libburnia-project.org .
|
||||||
It can list the available devices, can burn to recordable CD, DVD, or BD,
|
It can list the available devices, can blank a CD-RW or DVD-RW and
|
||||||
can blank a CD-RW or DVD-RW, and can format unformatted DVD-RW, BD-R, or BD-RE.
|
can burn to recordable CD and recordable single layer DVD.
|
||||||
|
|
||||||
It's main purpose, nevertheless, is to show you how to use libburn and also
|
It's main purpose, nevertheless, is to show you how to use libburn and also
|
||||||
to serve the libburnia team as reference application. libburner does indeed
|
to serve the libburnia team as reference application. libburner does indeed
|
||||||
define the standard way how above gestures can be implemented and stay upward
|
define the standard way how above three gestures can be implemented and
|
||||||
compatible for a good while.
|
stay upward compatible for a good while.
|
||||||
|
|
||||||
@subsection libburner-help Libburner --help
|
@subsection libburner-help Libburner --help
|
||||||
<pre>
|
<pre>
|
||||||
Usage: test/libburner
|
Usage: test/libburner
|
||||||
[--drive <address>|<driveno>|"-"] [--audio]
|
[--drive <address>|<driveno>|"-"] [--audio]
|
||||||
[--blank_fast|--blank_full|--format] [--try_to_simulate]
|
[--blank_fast|--blank_full|--format_overwrite]
|
||||||
|
[--try_to_simulate]
|
||||||
[--multi] [<one or more imagefiles>|"-"]
|
[--multi] [<one or more imagefiles>|"-"]
|
||||||
Examples
|
Examples
|
||||||
A bus scan (needs rw-permissions to see a drive):
|
A bus scan (needs rw-permissions to see a drive):
|
||||||
@ -87,8 +147,8 @@ Blank a used CD-RW (is combinable with burning in one run):
|
|||||||
test/libburner --drive /dev/hdc --blank_fast
|
test/libburner --drive /dev/hdc --blank_fast
|
||||||
Blank a used DVD-RW (is combinable with burning in one run):
|
Blank a used DVD-RW (is combinable with burning in one run):
|
||||||
test/libburner --drive /dev/hdc --blank_full
|
test/libburner --drive /dev/hdc --blank_full
|
||||||
Format a DVD-RW, BD-RE or BD-R:
|
Format a DVD-RW to avoid need for blanking before re-use:
|
||||||
test/libburner --drive /dev/hdc --format
|
test/libburner --drive /dev/hdc --format_overwrite
|
||||||
Burn two audio tracks (to CD only):
|
Burn two audio tracks (to CD only):
|
||||||
lame --decode -t /path/to/track1.mp3 track1.cd
|
lame --decode -t /path/to/track1.mp3 track1.cd
|
||||||
test/dewav /path/to/track2.wav -o track2.cd
|
test/dewav /path/to/track2.wav -o track2.cd
|
||||||
|
141
doc/cookbook.txt
141
doc/cookbook.txt
@ -1,4 +1,4 @@
|
|||||||
libburnia-project.org Optical Media Rotisserie Recipes as of January 2009
|
libburnia-project.org Optical Media Rotisserie Recipes as of April 2008
|
||||||
|
|
||||||
Content:
|
Content:
|
||||||
- TAO Multi-Session CD Cookbook (CD-R, CD-RW)
|
- TAO Multi-Session CD Cookbook (CD-R, CD-RW)
|
||||||
@ -6,7 +6,6 @@ Content:
|
|||||||
- Overwriteable DVD Cookbook (DVD-RAM, DVD+RW, DVD-RW, BD-RE)
|
- Overwriteable DVD Cookbook (DVD-RAM, DVD+RW, DVD-RW, BD-RE)
|
||||||
- Sequential DVD-R[W] Cookbook
|
- Sequential DVD-R[W] Cookbook
|
||||||
- DVD+R[/DL] Cookbook
|
- DVD+R[/DL] Cookbook
|
||||||
- BD-R Cookbook
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
TAO Multi-Session CD Cookbook
|
TAO Multi-Session CD Cookbook
|
||||||
@ -405,7 +404,7 @@ correctness of Pre-gap and Post-gap would become evident.
|
|||||||
Inspired by Andy Polyakov's http://fy.chalmers.se/~appro/linux/DVD+RW/tools ,
|
Inspired by Andy Polyakov's http://fy.chalmers.se/~appro/linux/DVD+RW/tools ,
|
||||||
backed by reading mmc5r03c.pdf from http://www.t10.org/ftp/t10/drafts/mmc5/
|
backed by reading mmc5r03c.pdf from http://www.t10.org/ftp/t10/drafts/mmc5/
|
||||||
by own experiments with drives NEC ND-4570A, LG GSA-4082B, PHILIPS SPD3300L,
|
by own experiments with drives NEC ND-4570A, LG GSA-4082B, PHILIPS SPD3300L,
|
||||||
LG GGW H20L, and by BD-RE experiments done by Giulio Orsero on LG BE06LU10.
|
and by BD-RE experiments done by Giulio Orsero on LG BE06LU10.
|
||||||
|
|
||||||
For libburnia-project.org by Thomas Schmitt <scdbackup@gmx.net>
|
For libburnia-project.org by Thomas Schmitt <scdbackup@gmx.net>
|
||||||
|
|
||||||
@ -698,14 +697,9 @@ managment. There is no way to increase payload capacity by format 01h.
|
|||||||
(mmc5r03c.pdf 6.5.4.2.2.1)
|
(mmc5r03c.pdf 6.5.4.2.2.1)
|
||||||
|
|
||||||
With BD-RE there are three format types : 00h, 30h and 31h.
|
With BD-RE there are three format types : 00h, 30h and 31h.
|
||||||
00h offers the default size format. This may be the only fast formatting
|
00h offers the default size format.
|
||||||
mode that is offered by the drive.
|
|
||||||
Feature 0023h tells whether format 31h and certain 30h subtypes are available.
|
|
||||||
(mmc5r03c.pdf 5.3.13)
|
|
||||||
30h offers several sizes with defect management. Usually there are three
|
30h offers several sizes with defect management. Usually there are three
|
||||||
sizes given: #1: default size, #2: maximum spare area, #3: minimal spare.
|
size to choose: #1: default size, #2: maximum spare area, #3: minimal spare.
|
||||||
One may demand any spare size between maximum and minimum. There may be quick
|
|
||||||
certification and full certification. See feature 0023h.
|
|
||||||
31h offers a single size and disables defect management. This has the side
|
31h offers a single size and disables defect management. This has the side
|
||||||
effect to speed up writing to nominal speed.
|
effect to speed up writing to nominal speed.
|
||||||
(mmc5r03c.pdf 6.5.4.2.15, 6.24.3.3, Table 472)
|
(mmc5r03c.pdf 6.5.4.2.15, 6.24.3.3, Table 472)
|
||||||
@ -744,7 +738,7 @@ DVD-RAM and BD-RE tuning :
|
|||||||
|
|
||||||
A special aspect of DVD-RAM and BD-RE is their low speed with write operations,
|
A special aspect of DVD-RAM and BD-RE is their low speed with write operations,
|
||||||
which usually is only half than the nominal speed of media and drive.
|
which usually is only half than the nominal speed of media and drive.
|
||||||
This is blamed to the automatic checkreading which happens for managing
|
This is blamed to the automatic checkreading which happens ifor managing
|
||||||
eventual defects.
|
eventual defects.
|
||||||
|
|
||||||
Defect management of BD-RE can be disabled by format type 31h. See above.
|
Defect management of BD-RE can be disabled by format type 31h. See above.
|
||||||
@ -755,7 +749,7 @@ The only known way to get full speed from DVD-RAM or BD-RE with enabled defect
|
|||||||
management is the use of AAh WRITE12 with Streaming Bit set to 1.
|
management is the use of AAh WRITE12 with Streaming Bit set to 1.
|
||||||
(mmc5r03c.pdf 6.45)
|
(mmc5r03c.pdf 6.45)
|
||||||
With some DVD-RAM drives this fails if a write buffer is not full 32 kB.
|
With some DVD-RAM drives this fails if a write buffer is not full 32 kB.
|
||||||
With the tested BD-RE one has to write full 64 kB buffers.
|
With the tested BD-RE ione has to write write full 64 kB buffers.
|
||||||
|
|
||||||
Although it seems not optimal, this is specified not only to disable the
|
Although it seems not optimal, this is specified not only to disable the
|
||||||
cumbersome checkread but also to ignore known defects and to write data
|
cumbersome checkread but also to ignore known defects and to write data
|
||||||
@ -766,10 +760,10 @@ incorrectable errors.
|
|||||||
|
|
||||||
Caveat:
|
Caveat:
|
||||||
MMC-5 does not guarantee AAh WRITE12 to work on DVD-RAM or BD-RE at all.
|
MMC-5 does not guarantee AAh WRITE12 to work on DVD-RAM or BD-RE at all.
|
||||||
None of the features of profiles 0012h and 0043h promises the existence of
|
None of the features of profiles 0012h and 0043 promises the existence of
|
||||||
AAh WRITE12.
|
AAh WRITE12.
|
||||||
|
Nevertheless it worked on all tested drives is proper alignment was observed.
|
||||||
(mmc5r03c.pdf 5.4.13, 6.45)
|
(mmc5r03c.pdf 5.4.13, 6.45)
|
||||||
Nevertheless it worked on all tested drives if proper alignment was observed.
|
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
@ -796,9 +790,9 @@ The bytes 0 to 5 of a PVD block are
|
|||||||
0x01 'C' 'D' '0' '0' '1'
|
0x01 'C' 'D' '0' '0' '1'
|
||||||
The sector count can then be read from byte 80 to 83
|
The sector count can then be read from byte 80 to 83
|
||||||
sectors= pvd[80] | (pvd[81] << 8) | (pvd[82] << 16) | (pvd[83] << 24);
|
sectors= pvd[80] | (pvd[81] << 8) | (pvd[82] << 16) | (pvd[83] << 24);
|
||||||
(Ecma-119.pdf 8.4)
|
|
||||||
To support CD, DVD and BD media alike, it is advisable to round the NWA
|
To support CD, DVD and BD media alike, it is advisable to round the NWA
|
||||||
to the next multiple of 32 (= 64 KiB).
|
to the next multiple of 32 (= 64 KiB).
|
||||||
|
(Ecma-119.pdf 8.4)
|
||||||
|
|
||||||
So one can use 0 as MSC1 and prepare a new ISO session for the computed NWA.
|
So one can use 0 as MSC1 and prepare a new ISO session for the computed NWA.
|
||||||
After writing the session it is necessary to patch the PVD at LBA 16.
|
After writing the session it is necessary to patch the PVD at LBA 16.
|
||||||
@ -807,7 +801,7 @@ It is stored in both notations LSB and MSB:
|
|||||||
for(i= 0; i < 4; i++)
|
for(i= 0; i < 4; i++)
|
||||||
pvd[87 - i]= pvd[80 + i]= (sectors >> (8 * i)) & 0xff;
|
pvd[87 - i]= pvd[80 + i]= (sectors >> (8 * i)) & 0xff;
|
||||||
|
|
||||||
cdrskin --grow_overwriteable_iso not only patches the sector fields of the
|
cdrskin --grow_overwriteable not only patches the sector fields of the
|
||||||
PVD block but also the blocks up to LBA 31 which begin with
|
PVD block but also the blocks up to LBA 31 which begin with
|
||||||
0xff 'C' 'D' '0' '0' '1'
|
0xff 'C' 'D' '0' '0' '1'
|
||||||
libisoburn submits 64 KiB data buffer to libisofs before image generation and
|
libisoburn submits 64 KiB data buffer to libisofs before image generation and
|
||||||
@ -1279,118 +1273,3 @@ in http://libburnia-project.org/ticket/13 .
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
BD-R Cookbook
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Inspired by reading mmc5r03c.pdf from http://www.t10.org/ftp/t10/drafts/mmc5/
|
|
||||||
backed by experiments iwith drive LG GGW H20L.
|
|
||||||
|
|
||||||
For libburnia-project.org by Thomas Schmitt <scdbackup@gmx.net>
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Media type can be recognized by Current Profile from 46h GET CONFIGURATION.
|
|
||||||
(mmc5r03c.pdf 6.6.2.1)
|
|
||||||
BD-R 0042h
|
|
||||||
|
|
||||||
There are two basic recording modes defined: Sequential Recording Mode SRM and
|
|
||||||
Random Recording Mode RRM. The latter is optional and for now not topic of this
|
|
||||||
text.
|
|
||||||
(mmc5r03c.pdf 4.5.3.5)
|
|
||||||
|
|
||||||
|
|
||||||
- SRM Formatting
|
|
||||||
- Writing a session in SRM-POW
|
|
||||||
(- Pseudo-OverWrite SRM+POW)
|
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
SRM Formatting:
|
|
||||||
|
|
||||||
Despite being write-once media BD-R can optionally carry some formatting.
|
|
||||||
|
|
||||||
SRM has a disc structure model with tracks and sessions.
|
|
||||||
Several tracks may be open at the same time, each having its own NWA.
|
|
||||||
(mmc5r03c.pdf 4.5.3.5.2.2)
|
|
||||||
This structure is formatted onto blank media automatically as soon as the
|
|
||||||
first serious write attempt occurs.
|
|
||||||
(mmc5r03c.pdf 4.5.3.5)
|
|
||||||
Before such a write attempt, blank media may be explicitely formatted with
|
|
||||||
spares, which provide defect management.
|
|
||||||
(mmc5r03c.pdf 4.5.3.5.3)
|
|
||||||
Tracks get created from other tracks via RESERVE TRACK splitting.
|
|
||||||
(mmc5r03c.pdf 4.5.3.5.2.5)
|
|
||||||
|
|
||||||
On top of defect management there may be Pseudo-OverWrite SRM+POW, a costly
|
|
||||||
way to write several times to the same LBA. See below.
|
|
||||||
Fully sequential states are called SRM-POW.
|
|
||||||
(mmc5r03c.pdf 4.5.3.5.4)
|
|
||||||
|
|
||||||
Explicite formatting is done by 04h FORMAT UNIT. Its data payload consists
|
|
||||||
of a Format List Header and a Format Descriptor. It is advisable to set
|
|
||||||
the Immed bit and the FOV bit in header byte number 1. The descriptor should
|
|
||||||
be a copy of a descriptor from 23h READ FORMAT CAPACITIES but the size may be
|
|
||||||
adjusted within a certain range.
|
|
||||||
(mmc5r03c.pdf 6.5, 6.5.3.2, 6.5.3.3)
|
|
||||||
|
|
||||||
Format type 00h creates SRM layouts with a default number of spares (or
|
|
||||||
eventually RRM) chosen by the format sub-type:
|
|
||||||
00b = SRM with support for POW
|
|
||||||
01b = SRM without POW (but with some spares for defect management)
|
|
||||||
10b = (RRM)
|
|
||||||
(mmc5r03c.pdf 6.5.4.2.1.6)
|
|
||||||
|
|
||||||
Format type 32h uses the same sub-types but allows to allocate non-default
|
|
||||||
amounts of spares. Similar to BD-RE format 31h, three format descriptors are
|
|
||||||
offered: #1: default size, #2: maximum spare area, #3: minimal spare.
|
|
||||||
The size may be chosen within that range.
|
|
||||||
|
|
||||||
The sense behind the Type Dependent Parameters is obscure
|
|
||||||
to me. Best will be to set ISA_V and TDMA_V to 0.
|
|
||||||
(mmc5r03c.pdf 6.5.4.2.1.17)
|
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Writing a session in SRM:
|
|
||||||
|
|
||||||
The procedure and constraints for writing BD-R SRM-POW are very similar to
|
|
||||||
DVD+R. libburn flatly re-uses its DVD+R code except the Close Function for
|
|
||||||
finalizing a disc.
|
|
||||||
|
|
||||||
In short:
|
|
||||||
If all written sessions are closed, then there is exactly one NWA.
|
|
||||||
In the beginning there is an empty session and track. A new track can be
|
|
||||||
written either with pre-announced size (by RESERVE TRACK) or open-end by
|
|
||||||
simply starting to write to the NWA. When done the track gets closed by
|
|
||||||
close function 001b. Then either session or disc gets closed depending on
|
|
||||||
the Close Function used:
|
|
||||||
- Close Function 010b closes the session and keeps the media appendable
|
|
||||||
(same as with DVD+R)
|
|
||||||
- Close Function 110b finalizes the media and makes it read-only.
|
|
||||||
(differs from libburn DVD+R procedure which uses 101b)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Pseudo-OverWrite POW: (no used yet by libburn)
|
|
||||||
|
|
||||||
This enhancement of SRM emulates overwriting of existing data blocks.
|
|
||||||
(mmc5r03c.pdf 4.5.3.5.4)
|
|
||||||
|
|
||||||
POW establishes a virtual vLBA space on top of the real address space rLBA.
|
|
||||||
All read and write commands deal with vLBA. It seems that track NWAs are
|
|
||||||
assumed to be identical in vLBA space and in rLBA space.
|
|
||||||
It is not clear whether one may write to vLBA blocks which are neither written
|
|
||||||
yet nor at one of the track NWAs. Probably not, or else one could make NWAs run
|
|
||||||
into vLBAs which are associated with older rLBAs.
|
|
||||||
|
|
||||||
Replacing invalidated blocks consumes addresses in rLBA space at the NWA of
|
|
||||||
some track. I.e. no spares are consumed by POW. Nevertheless it is costly by
|
|
||||||
a special map called Orphanage. It covers rLBA which have been consumed
|
|
||||||
by differing vLBAs. It never shrinks and can grow with each write to remapped
|
|
||||||
addresses.
|
|
||||||
To avoid heavy Orphanage growth it is advised to write mostly to vLBA which
|
|
||||||
still coincide with their rLBA. E.g. those addresses which have neither been
|
|
||||||
written as rLBA nor as vLBA yet. So one should begin the vLBA of new sessions
|
|
||||||
at the NWA of a sufficiently sized track.
|
|
||||||
(mmc5r03c.pdf 4.5.3.5.4.2 , 4.5.3.6.9)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
111
libburn/async.c
111
libburn/async.c
@ -376,7 +376,7 @@ static void *format_worker_func(struct w_list *w)
|
|||||||
void burn_disc_format(struct burn_drive *drive, off_t size, int flag)
|
void burn_disc_format(struct burn_drive *drive, off_t size, int flag)
|
||||||
{
|
{
|
||||||
struct format_opts o;
|
struct format_opts o;
|
||||||
int ok = 0, ret;
|
int ok = 0;
|
||||||
char msg[160];
|
char msg[160];
|
||||||
|
|
||||||
if ((SCAN_GOING()) || find_worker(drive) != NULL) {
|
if ((SCAN_GOING()) || find_worker(drive) != NULL) {
|
||||||
@ -409,82 +409,8 @@ void burn_disc_format(struct burn_drive *drive, off_t size, int flag)
|
|||||||
flag |= 4; /* format up to maximum size */
|
flag |= 4; /* format up to maximum size */
|
||||||
} else if (drive->current_profile == 0x12) {
|
} else if (drive->current_profile == 0x12) {
|
||||||
ok = 1; /* DVD-RAM */
|
ok = 1; /* DVD-RAM */
|
||||||
|
|
||||||
} else if (drive->current_profile == 0x41) {
|
|
||||||
/* BD-R SRM */
|
|
||||||
ok= 1;
|
|
||||||
ret = drive->read_format_capacities(drive, 0x00);
|
|
||||||
if (ret > 0 &&
|
|
||||||
drive->format_descr_type == BURN_FORMAT_IS_FORMATTED)
|
|
||||||
ok = 0;
|
|
||||||
if (drive->status != BURN_DISC_BLANK)
|
|
||||||
ok = 0;
|
|
||||||
if (!ok) {
|
|
||||||
libdax_msgs_submit(libdax_messenger,
|
|
||||||
drive->global_index, 0x00020162,
|
|
||||||
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
"BD-R not unformatted blank any more. Cannot format.",
|
|
||||||
0, 0);
|
|
||||||
drive->cancel = 1;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (flag & 32) {
|
|
||||||
libdax_msgs_submit(libdax_messenger,
|
|
||||||
drive->global_index, 0x00020163,
|
|
||||||
LIBDAX_MSGS_SEV_NOTE, LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
"Blank BD-R left unformatted for zero spare capacity.",
|
|
||||||
0, 0);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
} else if (drive->current_profile == 0x43) {
|
} else if (drive->current_profile == 0x43) {
|
||||||
ok = 1; /* BD-RE */
|
ok = 1; /* BD-RE */
|
||||||
|
|
||||||
if ((flag & 32) && !(drive->current_feat23h_byte4 & 8)) {
|
|
||||||
libdax_msgs_submit(libdax_messenger,
|
|
||||||
drive->global_index, 0x00020164,
|
|
||||||
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
"Drive does not format BD-RE without spares.",
|
|
||||||
0, 0);
|
|
||||||
drive->cancel = 1;
|
|
||||||
return;
|
|
||||||
|
|
||||||
}
|
|
||||||
if ((flag & 6) != 6 || (flag & 128)) {
|
|
||||||
if ((flag & 64) && !(drive->current_feat23h_byte4 & 2)) {
|
|
||||||
if (drive->current_feat23h_byte4 & 1) {
|
|
||||||
libdax_msgs_submit(libdax_messenger,
|
|
||||||
drive->global_index, 0x00020165,
|
|
||||||
LIBDAX_MSGS_SEV_WARNING,
|
|
||||||
LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
"Drive does not support fast formatting",
|
|
||||||
0, 0);
|
|
||||||
flag &= ~64;
|
|
||||||
} else {
|
|
||||||
no_non_default_bd_re:;
|
|
||||||
libdax_msgs_submit(libdax_messenger,
|
|
||||||
drive->global_index, 0x00020167,
|
|
||||||
LIBDAX_MSGS_SEV_SORRY,
|
|
||||||
LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
"Drive does not support non-default formatting",
|
|
||||||
0, 0);
|
|
||||||
drive->cancel = 1;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ((!(flag & 64)) && !(drive->current_feat23h_byte4 & 1)){
|
|
||||||
if (drive->current_feat23h_byte4 & 2) {
|
|
||||||
libdax_msgs_submit(libdax_messenger,
|
|
||||||
drive->global_index, 0x00020166,
|
|
||||||
LIBDAX_MSGS_SEV_WARNING,
|
|
||||||
LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
"Drive does not support full formatting",
|
|
||||||
0, 0);
|
|
||||||
flag |= 64;
|
|
||||||
} else
|
|
||||||
goto no_non_default_bd_re;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
@ -527,15 +453,12 @@ void burn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
|
|||||||
{
|
{
|
||||||
struct write_opts o;
|
struct write_opts o;
|
||||||
char reasons[BURN_REASONS_LEN+80];
|
char reasons[BURN_REASONS_LEN+80];
|
||||||
struct burn_drive *d;
|
|
||||||
|
|
||||||
d = opts->drive;
|
|
||||||
|
|
||||||
/* ts A61006 */
|
/* ts A61006 */
|
||||||
/* a ssert(!SCAN_GOING()); */
|
/* a ssert(!SCAN_GOING()); */
|
||||||
/* a ssert(!find_worker(opts->drive)); */
|
/* a ssert(!find_worker(opts->drive)); */
|
||||||
if ((SCAN_GOING()) || find_worker(opts->drive) != NULL) {
|
if ((SCAN_GOING()) || find_worker(opts->drive) != NULL) {
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
libdax_msgs_submit(libdax_messenger, opts->drive->global_index,
|
||||||
0x00020102,
|
0x00020102,
|
||||||
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
||||||
"A drive operation is still going on (want to write)",
|
"A drive operation is still going on (want to write)",
|
||||||
@ -544,14 +467,14 @@ void burn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* For the next lines any return indicates failure */
|
/* For the next lines any return indicates failure */
|
||||||
d->cancel = 1;
|
opts->drive->cancel = 1;
|
||||||
|
|
||||||
/* ts A70203 : people have been warned in API specs */
|
/* ts A70203 : people have been warned in API specs */
|
||||||
if (opts->write_type == BURN_WRITE_NONE)
|
if (opts->write_type == BURN_WRITE_NONE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (d->drive_role == 0) {
|
if (opts->drive->drive_role == 0) {
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
libdax_msgs_submit(libdax_messenger, opts->drive->global_index,
|
||||||
0x00020146,
|
0x00020146,
|
||||||
LIBDAX_MSGS_SEV_FATAL, LIBDAX_MSGS_PRIO_HIGH,
|
LIBDAX_MSGS_SEV_FATAL, LIBDAX_MSGS_PRIO_HIGH,
|
||||||
"Drive is a virtual placeholder (null-drive)", 0, 0);
|
"Drive is a virtual placeholder (null-drive)", 0, 0);
|
||||||
@ -559,9 +482,9 @@ void burn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ts A61007 : obsolete Assert in spc_select_write_params() */
|
/* ts A61007 : obsolete Assert in spc_select_write_params() */
|
||||||
if (d->drive_role == 1 && !d->mdata->valid) {
|
if (opts->drive->drive_role == 1 && !opts->drive->mdata->valid) {
|
||||||
libdax_msgs_submit(libdax_messenger,
|
libdax_msgs_submit(libdax_messenger,
|
||||||
d->global_index, 0x00020113,
|
opts->drive->global_index, 0x00020113,
|
||||||
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
||||||
"Drive capabilities not inquired yet", 0, 0);
|
"Drive capabilities not inquired yet", 0, 0);
|
||||||
return;
|
return;
|
||||||
@ -574,33 +497,21 @@ void burn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
|
|||||||
if (burn_precheck_write(opts, disc, reasons + strlen(reasons), 1)
|
if (burn_precheck_write(opts, disc, reasons + strlen(reasons), 1)
|
||||||
<= 0) {
|
<= 0) {
|
||||||
libdax_msgs_submit(libdax_messenger,
|
libdax_msgs_submit(libdax_messenger,
|
||||||
d->global_index, 0x00020139,
|
opts->drive->global_index, 0x00020139,
|
||||||
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
||||||
reasons, 0, 0);
|
reasons, 0, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ts A90106 : early catching of unformatted BD-RE */
|
opts->drive->cancel = 0; /* End of the return = failure area */
|
||||||
if (d->current_profile == 0x43)
|
|
||||||
if (d->read_format_capacities(d, 0x00) > 0 &&
|
|
||||||
d->format_descr_type != BURN_FORMAT_IS_FORMATTED) {
|
|
||||||
libdax_msgs_submit(libdax_messenger,
|
|
||||||
d->global_index, 0x00020168,
|
|
||||||
LIBDAX_MSGS_SEV_FAILURE, LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
"Media not properly formatted. Cannot write.",
|
|
||||||
0, 0);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
d->cancel = 0; /* End of the return = failure area */
|
o.drive = opts->drive;
|
||||||
|
|
||||||
o.drive = d;
|
|
||||||
o.opts = opts;
|
o.opts = opts;
|
||||||
o.disc = disc;
|
o.disc = disc;
|
||||||
|
|
||||||
opts->refcount++;
|
opts->refcount++;
|
||||||
|
|
||||||
add_worker(Burnworker_type_writE, d,
|
add_worker(Burnworker_type_writE, opts->drive,
|
||||||
(WorkerFunc) write_disc_worker_func, &o);
|
(WorkerFunc) write_disc_worker_func, &o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2246,9 +2246,8 @@ int burn_disc_get_multi_caps(struct burn_drive *d, enum burn_write_types wt,
|
|||||||
o->might_do_sao = 4;
|
o->might_do_sao = 4;
|
||||||
o->might_do_tao = 2;
|
o->might_do_tao = 2;
|
||||||
o->advised_write_mode = BURN_WRITE_TAO;
|
o->advised_write_mode = BURN_WRITE_TAO;
|
||||||
} else if (d->current_profile == 0x1b || d->current_profile == 0x2b ||
|
} else if (d->current_profile == 0x1b || d->current_profile == 0x2b) {
|
||||||
d->current_profile == 0x41) {
|
/* DVD+R , DVD+R/DL */
|
||||||
/* DVD+R , DVD+R/DL , BD-R SRM */
|
|
||||||
o->multi_session = o->multi_track = 1;
|
o->multi_session = o->multi_track = 1;
|
||||||
o->might_do_tao = 2;
|
o->might_do_tao = 2;
|
||||||
o->might_do_sao = 1;
|
o->might_do_sao = 1;
|
||||||
@ -2507,10 +2506,3 @@ int burn_drive_set_media_capacity_remaining(struct burn_drive *d, off_t value)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ts A81215 : API */
|
|
||||||
int burn_get_read_capacity(struct burn_drive *d, int *capacity, int flag)
|
|
||||||
{
|
|
||||||
*capacity = d->media_read_capacity;
|
|
||||||
return (d->media_read_capacity != 0x7fffffff);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -3,15 +3,11 @@
|
|||||||
#ifndef LIBBURN_H
|
#ifndef LIBBURN_H
|
||||||
#define LIBBURN_H
|
#define LIBBURN_H
|
||||||
|
|
||||||
/*
|
/* Needed for off_t which is the (POSIX-ly) appropriate type for
|
||||||
|
expressing a file or stream size.
|
||||||
Applications must use 64 bit off_t. E.g. by defining
|
|
||||||
#define _LARGEFILE_SOURCE
|
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
or take special precautions to interface with the library by 64 bit integers
|
|
||||||
where this .h files prescribe off_t. Not to use 64 bit file i/o will keep the
|
|
||||||
application from producing and processing ISO images of more than 2 GB size.
|
|
||||||
|
|
||||||
|
XXX we should enforce 64-bitness for off_t
|
||||||
|
ts A61101 : this is usually done by the build system (if it is not broken)
|
||||||
*/
|
*/
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
@ -187,41 +183,18 @@ enum burn_block_types
|
|||||||
BURN_BLOCK_SAO = 16384
|
BURN_BLOCK_SAO = 16384
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Possible status of the drive in regard to the disc in it. */
|
/** Possible status' of the drive in regard to the disc in it. */
|
||||||
enum burn_disc_status
|
enum burn_disc_status
|
||||||
{
|
{
|
||||||
/** The current status is not yet known */
|
/** The current status is not yet known */
|
||||||
BURN_DISC_UNREADY,
|
BURN_DISC_UNREADY,
|
||||||
|
/** The drive holds a blank disc */
|
||||||
/** The drive holds a blank disc. It is ready for writing from scratch.
|
|
||||||
Unused multi-session media:
|
|
||||||
CD-R, CD-RW, DVD-R, DVD-RW, DVD+R, BD-R
|
|
||||||
Blanked multi-session media (i.e. treated by burn_disc_erase())
|
|
||||||
CD-RW, DVD-RW
|
|
||||||
Overwriteable media with or without valid data
|
|
||||||
DVD-RAM, DVD+RW, formatted DVD-RW, BD-RE
|
|
||||||
*/
|
|
||||||
BURN_DISC_BLANK,
|
BURN_DISC_BLANK,
|
||||||
|
|
||||||
/** There is no disc at all in the drive */
|
/** There is no disc at all in the drive */
|
||||||
BURN_DISC_EMPTY,
|
BURN_DISC_EMPTY,
|
||||||
|
/** There is an incomplete disc in the drive */
|
||||||
/** There is an incomplete disc in the drive. It is ready for appending
|
|
||||||
another session.
|
|
||||||
Written but not yet closed multi-session media
|
|
||||||
CD-R, CD-RW, DVD-R, DVD-RW, DVD+R, BD-R
|
|
||||||
*/
|
|
||||||
BURN_DISC_APPENDABLE,
|
BURN_DISC_APPENDABLE,
|
||||||
|
/** There is a disc with data on it in the drive */
|
||||||
/** There is a disc with data on it in the drive. It is usable only for
|
|
||||||
reading.
|
|
||||||
Written and closed multi-session media
|
|
||||||
CD-R, CD-RW, DVD-R, DVD-RW, DVD+R, BD-R
|
|
||||||
Read-Only media
|
|
||||||
CD-ROM, DVD-ROM, BD-ROM
|
|
||||||
Note that many DVD-ROM drives report any written media
|
|
||||||
as Read-Only media and not by their real media types.
|
|
||||||
*/
|
|
||||||
BURN_DISC_FULL,
|
BURN_DISC_FULL,
|
||||||
|
|
||||||
/* ts A61007 */
|
/* ts A61007 */
|
||||||
@ -231,7 +204,7 @@ enum burn_disc_status
|
|||||||
|
|
||||||
/* ts A61020 */
|
/* ts A61020 */
|
||||||
/* @since 0.2.6 */
|
/* @since 0.2.6 */
|
||||||
/** The media seems to be unsuitable for reading and for writing */
|
/** The media seems not to be suitable for burning */
|
||||||
BURN_DISC_UNSUITABLE
|
BURN_DISC_UNSUITABLE
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1164,8 +1137,7 @@ off_t burn_disc_available_space(struct burn_drive *d,
|
|||||||
0x11 "DVD-R sequential recording", 0x12 "DVD-RAM",
|
0x11 "DVD-R sequential recording", 0x12 "DVD-RAM",
|
||||||
0x13 "DVD-RW restricted overwrite", 0x14 "DVD-RW sequential recording",
|
0x13 "DVD-RW restricted overwrite", 0x14 "DVD-RW sequential recording",
|
||||||
0x1a "DVD+RW", 0x1b "DVD+R",
|
0x1a "DVD+RW", 0x1b "DVD+R",
|
||||||
0x2b "DVD+R/DL",
|
0x2b "DVD+R/DL", 0x43 "BD-RE",
|
||||||
0x41 "BD-R sequential recording", 0x43 "BD-RE",
|
|
||||||
0xffff "stdio file"
|
0xffff "stdio file"
|
||||||
Note: 0xffff is not a MMC profile but a libburn invention.
|
Note: 0xffff is not a MMC profile but a libburn invention.
|
||||||
If enabled by burn_allow_untested_profiles() it also writes to profiles
|
If enabled by burn_allow_untested_profiles() it also writes to profiles
|
||||||
@ -1173,8 +1145,8 @@ off_t burn_disc_available_space(struct burn_drive *d,
|
|||||||
Read-only are the profiles
|
Read-only are the profiles
|
||||||
0x08 "CD-ROM", 0x10 "DVD-ROM",
|
0x08 "CD-ROM", 0x10 "DVD-ROM",
|
||||||
0x40 "BD-ROM",
|
0x40 "BD-ROM",
|
||||||
For now read-only is BD-R profile (testers wanted)
|
For now read-only are BD-R profiles (testers wanted)
|
||||||
0x42 "BD-R random recording"
|
0x41 "BD-R sequential recording", 0x42 "BD-R random recording"
|
||||||
@param d The drive where the media is inserted.
|
@param d The drive where the media is inserted.
|
||||||
@param pno Profile Number. See also mmc5r03c.pdf, table 89
|
@param pno Profile Number. See also mmc5r03c.pdf, table 89
|
||||||
@param name Profile Name (see above list, unknown profiles have empty name)
|
@param name Profile Name (see above list, unknown profiles have empty name)
|
||||||
@ -1197,8 +1169,8 @@ int burn_disc_erasable(struct burn_drive *d);
|
|||||||
enum burn_drive_status burn_drive_get_status(struct burn_drive *drive,
|
enum burn_drive_status burn_drive_get_status(struct burn_drive *drive,
|
||||||
struct burn_progress *p);
|
struct burn_progress *p);
|
||||||
|
|
||||||
/** Creates a write_opts struct for burning to the specified drive.
|
/** Creates a write_opts struct for burning to the specified drive
|
||||||
The returned object must later be freed with burn_write_opts_free().
|
must be freed with burn_write_opts_free
|
||||||
@param drive The drive to write with
|
@param drive The drive to write with
|
||||||
@return The write_opts, NULL on error
|
@return The write_opts, NULL on error
|
||||||
*/
|
*/
|
||||||
@ -1264,8 +1236,7 @@ void burn_disc_erase(struct burn_drive *drive, int fast);
|
|||||||
bit1+2: size mode
|
bit1+2: size mode
|
||||||
0 = use parameter size as far as it makes sense
|
0 = use parameter size as far as it makes sense
|
||||||
1 = insist in size 0 even if there is a better default known
|
1 = insist in size 0 even if there is a better default known
|
||||||
(on DVD-RAM or BD-R identical to size mode 0,
|
(on DVD-RAM or BD-RE identical to size mode 0)
|
||||||
i.e. they never get formatted with payload size 0)
|
|
||||||
2 = without bit7: format to maximum available size
|
2 = without bit7: format to maximum available size
|
||||||
with bit7 : take size from indexed format descriptor
|
with bit7 : take size from indexed format descriptor
|
||||||
3 = without bit7: format to default size
|
3 = without bit7: format to default size
|
||||||
@ -1281,9 +1252,8 @@ void burn_disc_erase(struct burn_drive *drive, int fast);
|
|||||||
the format to use. See burn_disc_get_formats(),
|
the format to use. See burn_disc_get_formats(),
|
||||||
burn_disc_get_format_descr().
|
burn_disc_get_format_descr().
|
||||||
Acceptable types are: 0x00, 0x01, 0x10, 0x11, 0x13,
|
Acceptable types are: 0x00, 0x01, 0x10, 0x11, 0x13,
|
||||||
0x15, 0x26, 0x30, 0x31, 0x32.
|
0x15, 0x26, 0x30, 0x31.
|
||||||
If bit7 is set, then bit4 is set automatically.
|
If bit7 is set, then bit4 is set automatically.
|
||||||
bit16= enable POW on blank BD-R
|
|
||||||
@since 0.3.0
|
@since 0.3.0
|
||||||
*/
|
*/
|
||||||
void burn_disc_format(struct burn_drive *drive, off_t size, int flag);
|
void burn_disc_format(struct burn_drive *drive, off_t size, int flag);
|
||||||
@ -2234,8 +2204,8 @@ void burn_version(int *major, int *minor, int *micro);
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
#define burn_header_version_major 0
|
#define burn_header_version_major 0
|
||||||
#define burn_header_version_minor 6
|
#define burn_header_version_minor 5
|
||||||
#define burn_header_version_micro 2
|
#define burn_header_version_micro 6
|
||||||
/** Note:
|
/** Note:
|
||||||
Above version numbers are also recorded in configure.ac because libtool
|
Above version numbers are also recorded in configure.ac because libtool
|
||||||
wants them as parameters at build time.
|
wants them as parameters at build time.
|
||||||
@ -2444,21 +2414,6 @@ int burn_random_access_write(struct burn_drive *d, off_t byte_address,
|
|||||||
char *data, off_t data_count, int flag);
|
char *data, off_t data_count, int flag);
|
||||||
|
|
||||||
|
|
||||||
/* ts A81215 */
|
|
||||||
/** Inquire the maximum amount of readable data.
|
|
||||||
It is supposed that all LBAs in the range from 0 to media_read_acpacity-1
|
|
||||||
can be read via burn_read_data() although some of them may never have been
|
|
||||||
recorded. If tracks are recognizable then it is better to only read
|
|
||||||
LBAs which are part of some track.
|
|
||||||
@param d The drive from which to read
|
|
||||||
@param capacity Will return the result if valid
|
|
||||||
@param flag Bitfield for control purposes: Unused yet, submit 0.
|
|
||||||
@return 1=sucessful , <=0 an error occured
|
|
||||||
@since 0.6.0
|
|
||||||
*/
|
|
||||||
int burn_get_read_capacity(struct burn_drive *d, int *capacity, int flag);
|
|
||||||
|
|
||||||
|
|
||||||
/* ts A70812 */
|
/* ts A70812 */
|
||||||
/** Read data in random access mode.
|
/** Read data in random access mode.
|
||||||
The drive must be grabbed successfully before calling this function.
|
The drive must be grabbed successfully before calling this function.
|
||||||
@ -2468,7 +2423,7 @@ int burn_get_read_capacity(struct burn_drive *d, int *capacity, int flag);
|
|||||||
This is a synchronous call which returns only after the full read job
|
This is a synchronous call which returns only after the full read job
|
||||||
has ended (sucessfully or not). So it is wise not to read giant amounts
|
has ended (sucessfully or not). So it is wise not to read giant amounts
|
||||||
of data in a single call.
|
of data in a single call.
|
||||||
@param d The drive from which to read
|
@param d The drive to which to write
|
||||||
@param byte_address The start address of the read in byte (aligned to 2048)
|
@param byte_address The start address of the read in byte (aligned to 2048)
|
||||||
@param data A memory buffer capable of taking data_size bytes
|
@param data A memory buffer capable of taking data_size bytes
|
||||||
@param data_size The amount of data to be read. This does not have to
|
@param data_size The amount of data to be read. This does not have to
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* libdax_msgs
|
/* libdax_msgs
|
||||||
Message handling facility of libdax.
|
Message handling facility of libdax.
|
||||||
Copyright (C) 2006 - 2009 Thomas Schmitt <scdbackup@gmx.net>,
|
Copyright (C) 2006 - 2008 Thomas Schmitt <scdbackup@gmx.net>,
|
||||||
provided under GPL version 2
|
provided under GPL version 2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* libdax_msgs
|
/* libdax_msgs
|
||||||
Message handling facility of libdax.
|
Message handling facility of libdax.
|
||||||
Copyright (C) 2006-2009 Thomas Schmitt <scdbackup@gmx.net>,
|
Copyright (C) 2006-2008 Thomas Schmitt <scdbackup@gmx.net>,
|
||||||
provided under GPL version 2
|
provided under GPL version 2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -531,19 +531,6 @@ Range "scdbackup" : 0x00020000 to 0x0002ffff
|
|||||||
0x0002015c (FAILURE,HIGH) = Fifo size is smaller than desired peek buffer
|
0x0002015c (FAILURE,HIGH) = Fifo size is smaller than desired peek buffer
|
||||||
0x0002015d (FAILURE,HIGH) = Fifo input ended short of desired peek buffer size
|
0x0002015d (FAILURE,HIGH) = Fifo input ended short of desired peek buffer size
|
||||||
0x0002015e (FATAL,HIGH) = Fifo is already under consumption when peeking
|
0x0002015e (FATAL,HIGH) = Fifo is already under consumption when peeking
|
||||||
0x0002015f (MISHAP,HIGH) = Damaged CD table-of-content detected and truncated
|
|
||||||
0x00020160 (WARNING,HIGH) = Session without leadout encountered
|
|
||||||
0x00020161 (WARNING,HIGH) = Empty session deleted
|
|
||||||
0x00020162 (SORRY,HIGH) = BD-R not unformatted blank any more. Cannot format
|
|
||||||
0x00020163 (NOTE,HIGH) = Blank BD-R left unformatted for zero spare capacity
|
|
||||||
0x00020164 (SORRY,HIGH) = Drive does not format BD-RE without spares
|
|
||||||
0x00020165 (WARNING,HIGH) = Drive does not support fast formatting
|
|
||||||
0x00020166 (WARNING,HIGH) = Drive does not support full formatting
|
|
||||||
0x00020167 (SORRY,HIGH) = Drive does not support non-default formatting
|
|
||||||
0x00020168 (FAILURE,HIGH) = Media not properly formatted. Cannot write.
|
|
||||||
0x00020169 (WARNING,HIGH) = Last session on media is still open
|
|
||||||
0x00020170 (NOTE,HIGH) = Closing open session before writing new one
|
|
||||||
0x00020171 (NOTE,HIGH) = Closing BD-R with accidently open session
|
|
||||||
|
|
||||||
libdax_audioxtr:
|
libdax_audioxtr:
|
||||||
0x00020200 (SORRY,HIGH) = Cannot open audio source file
|
0x00020200 (SORRY,HIGH) = Cannot open audio source file
|
||||||
|
366
libburn/mmc.c
366
libburn/mmc.c
@ -58,9 +58,6 @@ extern struct libdax_msgs *libdax_messenger;
|
|||||||
/* ts A70509 : handling 0x41 and 0x42 as read-only types */
|
/* ts A70509 : handling 0x41 and 0x42 as read-only types */
|
||||||
#define Libburn_support_bd_r_readonlY 1
|
#define Libburn_support_bd_r_readonlY 1
|
||||||
|
|
||||||
/* >>> ts A81208 */
|
|
||||||
#define Libburn_support_bd_plus_r_srM 1
|
|
||||||
|
|
||||||
|
|
||||||
/* ts A80410 : <<< Dangerous experiment: Pretend that DVD-RAM is BD-RE
|
/* ts A80410 : <<< Dangerous experiment: Pretend that DVD-RAM is BD-RE
|
||||||
# define Libburn_dvd_ram_as_bd_rE yes
|
# define Libburn_dvd_ram_as_bd_rE yes
|
||||||
@ -122,8 +119,6 @@ extern struct libdax_msgs *libdax_messenger;
|
|||||||
drive->do_stream_recording it does full nominal speed.
|
drive->do_stream_recording it does full nominal speed.
|
||||||
ts A80506 : Giulio Orsero reports success with BD-RE formatting.
|
ts A80506 : Giulio Orsero reports success with BD-RE formatting.
|
||||||
BD-RE is now an officially supported profile.
|
BD-RE is now an officially supported profile.
|
||||||
ts A81209 : The first two sessions have been written to BD-R SRM
|
|
||||||
(auto formatted without Defect Management).
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* ts A70519 : With MMC commands of data direction FROM_DRIVE:
|
/* ts A70519 : With MMC commands of data direction FROM_DRIVE:
|
||||||
@ -203,10 +198,6 @@ static unsigned char MMC_RESERVE_TRACK[] =
|
|||||||
static unsigned char MMC_READ_10[] =
|
static unsigned char MMC_READ_10[] =
|
||||||
{ 0x28, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
{ 0x28, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
||||||
|
|
||||||
/* ts A81210 : Determine the upper limit of readable data size */
|
|
||||||
static unsigned char MMC_READ_CAPACITY[] =
|
|
||||||
{ 0x25, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
|
||||||
|
|
||||||
|
|
||||||
static int mmc_function_spy_do_tell = 0;
|
static int mmc_function_spy_do_tell = 0;
|
||||||
|
|
||||||
@ -1152,9 +1143,8 @@ static int mmc_read_toc_al(struct burn_drive *d, int *alloc_len)
|
|||||||
struct buffer buf;
|
struct buffer buf;
|
||||||
struct command c;
|
struct command c;
|
||||||
int dlen;
|
int dlen;
|
||||||
int i, bpl= 12, old_alloc_len, t_idx;
|
int i, bpl= 12, old_alloc_len;
|
||||||
unsigned char *tdata;
|
unsigned char *tdata;
|
||||||
char msg[321];
|
|
||||||
|
|
||||||
if (*alloc_len < 4)
|
if (*alloc_len < 4)
|
||||||
return 0;
|
return 0;
|
||||||
@ -1230,9 +1220,7 @@ static int mmc_read_toc_al(struct burn_drive *d, int *alloc_len)
|
|||||||
ts A61007 : if re-enabled then not via Assert.
|
ts A61007 : if re-enabled then not via Assert.
|
||||||
a ssert(((dlen - 2) % 11) == 0);
|
a ssert(((dlen - 2) % 11) == 0);
|
||||||
*/
|
*/
|
||||||
/* ts A81202: plus number of sessions as reserve for leadout default */
|
d->toc_entry = calloc(d->toc_entries, sizeof(struct burn_toc_entry));
|
||||||
d->toc_entry = calloc(d->toc_entries + (unsigned char) c.page->data[3],
|
|
||||||
sizeof(struct burn_toc_entry));
|
|
||||||
if(d->toc_entry == NULL) /* ts A70825 */
|
if(d->toc_entry == NULL) /* ts A70825 */
|
||||||
return 0;
|
return 0;
|
||||||
tdata = c.page->data + 4;
|
tdata = c.page->data + 4;
|
||||||
@ -1319,42 +1307,6 @@ static int mmc_read_toc_al(struct burn_drive *d, int *alloc_len)
|
|||||||
d->status = BURN_DISC_FULL;
|
d->status = BURN_DISC_FULL;
|
||||||
toc_find_modes(d);
|
toc_find_modes(d);
|
||||||
|
|
||||||
/* ts A81202 ticket 146 : a drive reported a session with no leadout */
|
|
||||||
for (i = 0; i < d->disc->sessions; i++) {
|
|
||||||
if (d->disc->session[i]->leadout_entry != NULL)
|
|
||||||
continue;
|
|
||||||
sprintf(msg, "Session %d of %d encountered without leadout",
|
|
||||||
i + 1, d->disc->sessions);
|
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
|
||||||
0x00020160,
|
|
||||||
LIBDAX_MSGS_SEV_WARNING, LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
msg, 0, 0);
|
|
||||||
|
|
||||||
/* Produce default leadout entry from last track of session
|
|
||||||
which will thus get its size set to 0 */;
|
|
||||||
if (d->disc->session[i]->track != NULL &&
|
|
||||||
d->disc->session[i]->tracks > 0) {
|
|
||||||
t_idx = d->toc_entries++;
|
|
||||||
memcpy(d->toc_entry + t_idx,
|
|
||||||
d->disc->session[i]->track[
|
|
||||||
d->disc->session[i]->tracks - 1]->entry,
|
|
||||||
sizeof(struct burn_toc_entry));
|
|
||||||
d->toc_entry[t_idx].point = 0xA2;
|
|
||||||
d->disc->session[i]->leadout_entry =
|
|
||||||
d->toc_entry + t_idx;
|
|
||||||
} else {
|
|
||||||
burn_disc_remove_session(d->disc, d->disc->session[i]);
|
|
||||||
sprintf(msg,
|
|
||||||
"Empty session %d deleted. Now %d sessions.",
|
|
||||||
i + 1, d->disc->sessions);
|
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
|
||||||
0x00020161,
|
|
||||||
LIBDAX_MSGS_SEV_WARNING, LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
msg, 0, 0);
|
|
||||||
i--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* A80808 */
|
/* A80808 */
|
||||||
burn_disc_cd_toc_extensions(d->disc, 0);
|
burn_disc_cd_toc_extensions(d->disc, 0);
|
||||||
|
|
||||||
@ -1466,8 +1418,7 @@ static int mmc_read_disc_info_al(struct burn_drive *d, int *alloc_len)
|
|||||||
struct command c;
|
struct command c;
|
||||||
char msg[160];
|
char msg[160];
|
||||||
/* ts A70131 : had to move mmc_read_toc() to end of function */
|
/* ts A70131 : had to move mmc_read_toc() to end of function */
|
||||||
int do_read_toc = 0, disc_status, len, old_alloc_len;
|
int do_read_toc = 0, session_state, disc_status, len, old_alloc_len;
|
||||||
int ret, number_of_sessions = -1;
|
|
||||||
|
|
||||||
/* ts A61020 */
|
/* ts A61020 */
|
||||||
d->start_lba = d->end_lba = -2000000000;
|
d->start_lba = d->end_lba = -2000000000;
|
||||||
@ -1478,9 +1429,6 @@ static int mmc_read_disc_info_al(struct burn_drive *d, int *alloc_len)
|
|||||||
d->media_capacity_remaining = 0;
|
d->media_capacity_remaining = 0;
|
||||||
d->media_lba_limit = 0;
|
d->media_lba_limit = 0;
|
||||||
|
|
||||||
/* ts A81210 */
|
|
||||||
d->media_read_capacity = 0x7fffffff;
|
|
||||||
|
|
||||||
/* ts A61202 */
|
/* ts A61202 */
|
||||||
d->toc_entries = 0;
|
d->toc_entries = 0;
|
||||||
if (d->status == BURN_DISC_EMPTY)
|
if (d->status == BURN_DISC_EMPTY)
|
||||||
@ -1526,9 +1474,6 @@ static int mmc_read_disc_info_al(struct burn_drive *d, int *alloc_len)
|
|||||||
d->erasable = !!(data[2] & 16);
|
d->erasable = !!(data[2] & 16);
|
||||||
|
|
||||||
disc_status = data[2] & 3;
|
disc_status = data[2] & 3;
|
||||||
d->state_of_last_session = (data[2] >> 2) & 3;
|
|
||||||
number_of_sessions = (data[9] << 8) | data[4];
|
|
||||||
|
|
||||||
if (d->current_profile == 0x10 || d->current_profile == 0x40) {
|
if (d->current_profile == 0x10 || d->current_profile == 0x40) {
|
||||||
/* DVD-ROM , BD-ROM */
|
/* DVD-ROM , BD-ROM */
|
||||||
disc_status = 2; /* always full and finalized */
|
disc_status = 2; /* always full and finalized */
|
||||||
@ -1544,15 +1489,8 @@ static int mmc_read_disc_info_al(struct burn_drive *d, int *alloc_len)
|
|||||||
#ifdef Libburn_support_bd_r_readonlY
|
#ifdef Libburn_support_bd_r_readonlY
|
||||||
/* <<< For now: declaring BD-R read-only
|
/* <<< For now: declaring BD-R read-only
|
||||||
*/
|
*/
|
||||||
#ifndef Libburn_support_bd_plus_r_srM
|
if (d->current_profile == 0x41 || d->current_profile == 0x42) {
|
||||||
if (d->current_profile == 0x41) {
|
/* BD-R seq, BD-R rnd */
|
||||||
/* BD-R seq as readonly dummy */
|
|
||||||
disc_status = 2; /* always full and finalized */
|
|
||||||
d->erasable = 0; /* never erasable */
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
if (d->current_profile == 0x42) {
|
|
||||||
/* BD-R rnd */
|
|
||||||
disc_status = 2; /* always full and finalized */
|
disc_status = 2; /* always full and finalized */
|
||||||
d->erasable = 0; /* never erasable */
|
d->erasable = 0; /* never erasable */
|
||||||
}
|
}
|
||||||
@ -1560,7 +1498,6 @@ static int mmc_read_disc_info_al(struct burn_drive *d, int *alloc_len)
|
|||||||
|
|
||||||
switch (disc_status) {
|
switch (disc_status) {
|
||||||
case 0:
|
case 0:
|
||||||
regard_as_blank:;
|
|
||||||
d->toc_entries = 0;
|
d->toc_entries = 0;
|
||||||
d->start_lba = burn_msf_to_lba(data[17], data[18], data[19]);
|
d->start_lba = burn_msf_to_lba(data[17], data[18], data[19]);
|
||||||
d->end_lba = burn_msf_to_lba(data[21], data[22], data[23]);
|
d->end_lba = burn_msf_to_lba(data[21], data[22], data[23]);
|
||||||
@ -1575,40 +1512,28 @@ regard_as_blank:;
|
|||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
d->status = BURN_DISC_APPENDABLE;
|
d->status = BURN_DISC_APPENDABLE;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
if (disc_status == 2)
|
if (disc_status == 2)
|
||||||
d->status = BURN_DISC_FULL;
|
d->status = BURN_DISC_FULL;
|
||||||
|
|
||||||
/* ts A81210 */
|
|
||||||
ret = mmc_read_capacity(d);
|
|
||||||
/* Freshly formatted, unwritten BD-R pretend to be appendable
|
|
||||||
but in our model they need to be regarded as blank.
|
|
||||||
Criterion: BD-R seq, read capacity known and 0,
|
|
||||||
declared appendable, single empty session
|
|
||||||
*/
|
|
||||||
if (d->current_profile == 0x41 &&
|
|
||||||
d->status == BURN_DISC_APPENDABLE &&
|
|
||||||
ret > 0 && d->media_read_capacity == 0 &&
|
|
||||||
d->state_of_last_session == 0 && number_of_sessions == 1)
|
|
||||||
goto regard_as_blank;
|
|
||||||
|
|
||||||
if (d->current_profile == 0x41 &&
|
|
||||||
d->status == BURN_DISC_APPENDABLE &&
|
|
||||||
d->state_of_last_session == 1) {
|
|
||||||
|
|
||||||
/* ??? apply this test to other media types ? */
|
|
||||||
|
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
|
||||||
0x00020169,
|
|
||||||
LIBDAX_MSGS_SEV_WARNING, LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
"Last session on media is still open.", 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
do_read_toc = 1;
|
do_read_toc = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef NIX
|
||||||
|
/* <<< on its way out. DVD-R DL are current_is_supported_profile
|
||||||
|
unconditionally. Writeability is handled above now.
|
||||||
|
*/
|
||||||
|
/* ts A80207 : DVD - R DL can normally be read but not be written */
|
||||||
|
if(d->current_profile == 0x15 && !d->current_is_supported_profile) {
|
||||||
|
if(d->status == BURN_DISC_APPENDABLE)
|
||||||
|
d->status = BURN_DISC_FULL;
|
||||||
|
d->erasable = 0; /* never erasable */
|
||||||
|
d->current_is_supported_profile = 1;
|
||||||
|
}
|
||||||
|
#endif /* NIX */
|
||||||
|
|
||||||
|
|
||||||
if ((d->current_profile != 0 || d->status != BURN_DISC_UNREADY)
|
if ((d->current_profile != 0 || d->status != BURN_DISC_UNREADY)
|
||||||
&& ! d->current_is_supported_profile) {
|
&& ! d->current_is_supported_profile) {
|
||||||
if (!d->silent_on_scsi_error) {
|
if (!d->silent_on_scsi_error) {
|
||||||
@ -1652,9 +1577,10 @@ regard_as_blank:;
|
|||||||
d->complete_sessions = 0;
|
d->complete_sessions = 0;
|
||||||
} else {
|
} else {
|
||||||
/* ts A70131 : number of non-empty sessions */
|
/* ts A70131 : number of non-empty sessions */
|
||||||
d->complete_sessions = number_of_sessions;
|
d->complete_sessions = (data[9] << 8) | data[4];
|
||||||
|
session_state = (data[2] >> 2) & 3;
|
||||||
/* mmc5r03c.pdf 6.22.3.1.3 State of Last Session: 3=complete */
|
/* mmc5r03c.pdf 6.22.3.1.3 State of Last Session: 3=complete */
|
||||||
if (d->state_of_last_session != 3 && d->complete_sessions >= 1)
|
if (session_state != 3 && d->complete_sessions >= 1)
|
||||||
d->complete_sessions--;
|
d->complete_sessions--;
|
||||||
|
|
||||||
/* ts A70129 : mmc5r03c.pdf 6.22.3.1.7
|
/* ts A70129 : mmc5r03c.pdf 6.22.3.1.7
|
||||||
@ -2228,8 +2154,6 @@ static int mmc_get_configuration_al(struct burn_drive *d, int *alloc_len)
|
|||||||
d->current_is_supported_profile = 0;
|
d->current_is_supported_profile = 0;
|
||||||
d->current_has_feat21h = 0;
|
d->current_has_feat21h = 0;
|
||||||
d->current_feat21h_link_size = -1;
|
d->current_feat21h_link_size = -1;
|
||||||
d->current_feat23h_byte4 = 0;
|
|
||||||
d->current_feat23h_byte8 = 0;
|
|
||||||
d->current_feat2fh_byte4 = -1;
|
d->current_feat2fh_byte4 = -1;
|
||||||
|
|
||||||
scsi_init_command(&c, MMC_GET_CONFIGURATION,
|
scsi_init_command(&c, MMC_GET_CONFIGURATION,
|
||||||
@ -2276,11 +2200,7 @@ static int mmc_get_configuration_al(struct burn_drive *d, int *alloc_len)
|
|||||||
d->current_is_supported_profile = 1;
|
d->current_is_supported_profile = 1;
|
||||||
|
|
||||||
#ifdef Libburn_support_bd_r_readonlY
|
#ifdef Libburn_support_bd_r_readonlY
|
||||||
#ifndef Libburn_support_bd_plus_r_srM
|
if (cp == 0x41 || cp == 0x42) /* BD-R sequential, BD-R random */
|
||||||
if (cp == 0x41) /* BD-R sequential (here as read-only dummy) */
|
|
||||||
d->current_is_supported_profile = 1;
|
|
||||||
#endif
|
|
||||||
if (cp == 0x42) /* BD-R random recording */
|
|
||||||
d->current_is_supported_profile = 1;
|
d->current_is_supported_profile = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -2321,10 +2241,6 @@ static int mmc_get_configuration_al(struct burn_drive *d, int *alloc_len)
|
|||||||
if (cp == 0x1b || cp == 0x2b) /* DVD+R , DVD+R/DL */
|
if (cp == 0x1b || cp == 0x2b) /* DVD+R , DVD+R/DL */
|
||||||
d->current_is_supported_profile = 1;
|
d->current_is_supported_profile = 1;
|
||||||
#endif
|
#endif
|
||||||
#ifdef Libburn_support_bd_plus_r_srM
|
|
||||||
if (cp == 0x41) /* BD-R SRM */
|
|
||||||
d->current_is_supported_profile = 1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Enable this to get loud and repeated reports about the feature set :
|
/* Enable this to get loud and repeated reports about the feature set :
|
||||||
#define Libburn_print_feature_descriptorS 1
|
#define Libburn_print_feature_descriptorS 1
|
||||||
@ -2391,20 +2307,6 @@ static int mmc_get_configuration_al(struct burn_drive *d, int *alloc_len)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (feature_code == 0x23) {
|
|
||||||
d->current_feat23h_byte4 = descr[4];
|
|
||||||
d->current_feat23h_byte8 = descr[8];
|
|
||||||
#ifdef Libburn_print_feature_descriptorS
|
|
||||||
if (cp >= 0x41 && cp <= 0x43)
|
|
||||||
fprintf(stderr,
|
|
||||||
"LIBBURN_EXPERIMENTAL : BD formats: %s%s%s%s%s\n",
|
|
||||||
descr[4] & 1 ? " Cert" : "",
|
|
||||||
descr[4] & 2 ? " QCert" : "",
|
|
||||||
descr[4] & 4 ? " Expand" : "",
|
|
||||||
descr[4] & 8 ? " RENoSA" : "",
|
|
||||||
descr[8] & 1 ? " RRM" : "");
|
|
||||||
#endif /* Libburn_print_feature_descriptorS */
|
|
||||||
|
|
||||||
} else if (feature_code == 0x2F) {
|
} else if (feature_code == 0x2F) {
|
||||||
if (descr[2] & 1)
|
if (descr[2] & 1)
|
||||||
d->current_feat2fh_byte4 = descr[4];
|
d->current_feat2fh_byte4 = descr[4];
|
||||||
@ -2812,7 +2714,6 @@ int mmc_read_buffer_capacity(struct burn_drive *d)
|
|||||||
bit6= try to avoid lengthy media certification
|
bit6= try to avoid lengthy media certification
|
||||||
bit7= bit8 to bit15 contain the index of the format to use
|
bit7= bit8 to bit15 contain the index of the format to use
|
||||||
bit8-bit15 = see bit7
|
bit8-bit15 = see bit7
|
||||||
bit16= enable POW on blank BD-R
|
|
||||||
*/
|
*/
|
||||||
int mmc_format_unit(struct burn_drive *d, off_t size, int flag)
|
int mmc_format_unit(struct burn_drive *d, off_t size, int flag)
|
||||||
{
|
{
|
||||||
@ -2822,7 +2723,6 @@ int mmc_format_unit(struct burn_drive *d, off_t size, int flag)
|
|||||||
int index, format_sub_type = 0, format_00_index, size_mode;
|
int index, format_sub_type = 0, format_00_index, size_mode;
|
||||||
int accept_count = 0;
|
int accept_count = 0;
|
||||||
off_t num_of_blocks = 0, diff, format_size, i_size, format_00_max_size;
|
off_t num_of_blocks = 0, diff, format_size, i_size, format_00_max_size;
|
||||||
off_t min_size = -1, max_size = -1;
|
|
||||||
char msg[256],descr[80];
|
char msg[256],descr[80];
|
||||||
int key, asc, ascq;
|
int key, asc, ascq;
|
||||||
int full_format_type = 0x00; /* Full Format (or 0x10 for DVD-RW ?) */
|
int full_format_type = 0x00; /* Full Format (or 0x10 for DVD-RW ?) */
|
||||||
@ -2869,8 +2769,7 @@ selected_not_suitable:;
|
|||||||
d->current_profile == 0x14 ||
|
d->current_profile == 0x14 ||
|
||||||
d->current_profile == 0x1a ||
|
d->current_profile == 0x1a ||
|
||||||
d->current_profile == 0x12 ||
|
d->current_profile == 0x12 ||
|
||||||
d->current_profile == 0x41 ||
|
d->current_profile == 0x43))
|
||||||
d->current_profile == 0x43))
|
|
||||||
goto unsuitable_media;
|
goto unsuitable_media;
|
||||||
|
|
||||||
format_type = d->format_descriptors[index].type;
|
format_type = d->format_descriptors[index].type;
|
||||||
@ -2878,8 +2777,7 @@ selected_not_suitable:;
|
|||||||
format_type == 0x10 ||
|
format_type == 0x10 ||
|
||||||
format_type == 0x11 || format_type == 0x13 ||
|
format_type == 0x11 || format_type == 0x13 ||
|
||||||
format_type == 0x15 || format_type == 0x26 ||
|
format_type == 0x15 || format_type == 0x26 ||
|
||||||
format_type == 0x30 || format_type == 0x31 ||
|
format_type == 0x30 || format_type == 0x31 ))
|
||||||
format_type == 0x32))
|
|
||||||
goto selected_not_suitable;
|
goto selected_not_suitable;
|
||||||
if (flag & 4) {
|
if (flag & 4) {
|
||||||
num_of_blocks =
|
num_of_blocks =
|
||||||
@ -2891,8 +2789,7 @@ selected_not_suitable:;
|
|||||||
c.page->data[9 + i] =
|
c.page->data[9 + i] =
|
||||||
( d->format_descriptors[index].tdp >>
|
( d->format_descriptors[index].tdp >>
|
||||||
(16 - 8 * i)) & 0xff;
|
(16 - 8 * i)) & 0xff;
|
||||||
if (format_type == 0x30 || format_type == 0x31 ||
|
if (format_type == 0x30 || format_type == 0x31) {
|
||||||
format_type == 0x32) {
|
|
||||||
if (flag & 64)
|
if (flag & 64)
|
||||||
format_sub_type = 3; /* Quick certification */
|
format_sub_type = 3; /* Quick certification */
|
||||||
else
|
else
|
||||||
@ -3108,116 +3005,6 @@ no_suitable_formatting_type:;
|
|||||||
c.opcode[1] |= 0x08;
|
c.opcode[1] |= 0x08;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (d->current_profile == 0x41) {
|
|
||||||
/* BD-R SRM */
|
|
||||||
|
|
||||||
index = -1;
|
|
||||||
format_size = -1;
|
|
||||||
if (d->num_format_descr <= 0)
|
|
||||||
goto no_suitable_formatting_type;
|
|
||||||
if (d->format_descriptors[0].type != 0)
|
|
||||||
goto no_suitable_formatting_type;
|
|
||||||
for (i = 0; i < d->num_format_descr; i++) {
|
|
||||||
format_type = d->format_descriptors[i].type;
|
|
||||||
i_size = d->format_descriptors[i].size;
|
|
||||||
if (format_type != 0x00 && format_type != 0x32)
|
|
||||||
continue;
|
|
||||||
if (flag & 32) { /* No defect mgt */
|
|
||||||
/* ts A81211 : MMC-5 6.5.4.2.17.1
|
|
||||||
When formatted with Format Type 32h,
|
|
||||||
the BD-R disc is required to allocate
|
|
||||||
a non-zero number of spares.
|
|
||||||
*/
|
|
||||||
goto no_suitable_formatting_type;
|
|
||||||
|
|
||||||
} else if(size_mode == 2) { /* max payload size */
|
|
||||||
/* search largest 0x32 format descriptor */
|
|
||||||
if(format_type != 0x32)
|
|
||||||
continue;
|
|
||||||
} else if(size_mode == 3) { /* default payload size */
|
|
||||||
if (format_type == 0x00) {
|
|
||||||
index = i;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
} else { /* defect managed format with size wish */
|
|
||||||
|
|
||||||
#ifdef Libburn_bd_r_format_olD
|
|
||||||
|
|
||||||
/* search for smallest 0x32 >= size */
|
|
||||||
if(format_type != 0x32)
|
|
||||||
continue;
|
|
||||||
if (i_size < size)
|
|
||||||
continue;
|
|
||||||
if (format_size >= 0 && i_size >= format_size)
|
|
||||||
continue;
|
|
||||||
index = i;
|
|
||||||
format_size = i_size;
|
|
||||||
continue;
|
|
||||||
|
|
||||||
#else /* Libburn_bd_r_format_olD */
|
|
||||||
|
|
||||||
/* search largest and smallest 0x32 */
|
|
||||||
if(format_type != 0x32)
|
|
||||||
continue;
|
|
||||||
if (i_size < min_size || min_size < 0)
|
|
||||||
min_size = i_size;
|
|
||||||
if (i_size > max_size)
|
|
||||||
max_size = i_size;
|
|
||||||
|
|
||||||
#endif /* ! Libburn_bd_r_format_olD */
|
|
||||||
|
|
||||||
}
|
|
||||||
/* common for all cases which search largest
|
|
||||||
descriptors */
|
|
||||||
if (i_size > format_size) {
|
|
||||||
format_size = i_size;
|
|
||||||
index = i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (size_mode == 2 && index < 0 && !(flag & 32))
|
|
||||||
index = 0;
|
|
||||||
if (index < 0)
|
|
||||||
goto no_suitable_formatting_type;
|
|
||||||
format_type = d->format_descriptors[index].type;
|
|
||||||
if (flag & (1 << 16))
|
|
||||||
format_sub_type = 0; /* SRM + POW */
|
|
||||||
else
|
|
||||||
format_sub_type = 1; /* SRM (- POW) */
|
|
||||||
|
|
||||||
#ifdef Libburn_bd_r_format_olD
|
|
||||||
if (0) {
|
|
||||||
#else
|
|
||||||
if (size_mode == 0 || size_mode == 1) {
|
|
||||||
#endif /* ! Libburn_bd_r_format_olD */
|
|
||||||
|
|
||||||
if (min_size < 0 || max_size < 0)
|
|
||||||
goto no_suitable_formatting_type;
|
|
||||||
if (size <= 0)
|
|
||||||
size = min_size;
|
|
||||||
if (size % 0x10000)
|
|
||||||
size += 0x10000 - (size % 0x10000);
|
|
||||||
if (size < min_size)
|
|
||||||
goto no_suitable_formatting_type;
|
|
||||||
else if(size > max_size)
|
|
||||||
goto no_suitable_formatting_type;
|
|
||||||
num_of_blocks = size / 2048;
|
|
||||||
mmc_int_to_four_char(c.page->data + 4, num_of_blocks);
|
|
||||||
for (i = 0; i < 3; i++)
|
|
||||||
c.page->data[9 + i] = 0;
|
|
||||||
} else {
|
|
||||||
num_of_blocks =
|
|
||||||
d->format_descriptors[index].size / 2048;
|
|
||||||
mmc_int_to_four_char(c.page->data + 4, num_of_blocks);
|
|
||||||
for (i = 0; i < 3; i++)
|
|
||||||
c.page->data[9 + i] =
|
|
||||||
( d->format_descriptors[index].tdp >>
|
|
||||||
(16 - 8 * i)) & 0xff;
|
|
||||||
}
|
|
||||||
sprintf(descr, "%s", d->current_profile_text);
|
|
||||||
return_immediately = 1; /* caller must do the waiting */
|
|
||||||
c.page->data[1] |= 0x80; /* FOV = this flag vector is valid */
|
|
||||||
|
|
||||||
} else if (d->current_profile == 0x43) {
|
} else if (d->current_profile == 0x43) {
|
||||||
/* BD-RE */
|
/* BD-RE */
|
||||||
index = -1;
|
index = -1;
|
||||||
@ -3243,17 +3030,6 @@ no_suitable_formatting_type:;
|
|||||||
} else if(size_mode == 3) { /* default payload size */
|
} else if(size_mode == 3) { /* default payload size */
|
||||||
if (accept_count < 1)
|
if (accept_count < 1)
|
||||||
index = 0; /* this cannot certify */
|
index = 0; /* this cannot certify */
|
||||||
|
|
||||||
/* ts A81129
|
|
||||||
LG GGW-H20L YL03 refuses on 0x30 with
|
|
||||||
"Quick certification". dvd+rw-format
|
|
||||||
does 0x00 by default and succeeds quickly.
|
|
||||||
*/
|
|
||||||
if ((flag & 64) && format_type == 0x00) {
|
|
||||||
index = i;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(format_type != 0x30)
|
if(format_type != 0x30)
|
||||||
continue;
|
continue;
|
||||||
accept_count++;
|
accept_count++;
|
||||||
@ -3261,9 +3037,6 @@ no_suitable_formatting_type:;
|
|||||||
index = i;
|
index = i;
|
||||||
continue;
|
continue;
|
||||||
} else { /* defect managed format with size wish */
|
} else { /* defect managed format with size wish */
|
||||||
|
|
||||||
#ifdef Libburn_bd_re_format_olD
|
|
||||||
|
|
||||||
/* search for smallest 0x30 >= size */
|
/* search for smallest 0x30 >= size */
|
||||||
if(format_type != 0x30)
|
if(format_type != 0x30)
|
||||||
continue;
|
continue;
|
||||||
@ -3274,19 +3047,6 @@ no_suitable_formatting_type:;
|
|||||||
index = i;
|
index = i;
|
||||||
format_size = i_size;
|
format_size = i_size;
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
#else /* Libburn_bd_re_format_olD */
|
|
||||||
|
|
||||||
/* search largest and smallest 0x30 */
|
|
||||||
if(format_type != 0x30)
|
|
||||||
continue;
|
|
||||||
if (i_size < min_size || min_size < 0)
|
|
||||||
min_size = i_size;
|
|
||||||
if (i_size > max_size)
|
|
||||||
max_size = i_size;
|
|
||||||
|
|
||||||
#endif /* ! Libburn_bd_re_format_olD */
|
|
||||||
|
|
||||||
}
|
}
|
||||||
/* common for all cases which search largest
|
/* common for all cases which search largest
|
||||||
descriptors */
|
descriptors */
|
||||||
@ -3295,7 +3055,6 @@ no_suitable_formatting_type:;
|
|||||||
index = i;
|
index = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size_mode == 2 && index < 0 && !(flag & 32))
|
if (size_mode == 2 && index < 0 && !(flag & 32))
|
||||||
index = 0;
|
index = 0;
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
@ -3307,36 +3066,12 @@ no_suitable_formatting_type:;
|
|||||||
else
|
else
|
||||||
format_sub_type = 2; /* Full certification */
|
format_sub_type = 2; /* Full certification */
|
||||||
}
|
}
|
||||||
|
num_of_blocks = d->format_descriptors[index].size / 2048;
|
||||||
#ifdef Libburn_bd_re_format_olD
|
mmc_int_to_four_char(c.page->data + 4, num_of_blocks);
|
||||||
if (0) {
|
for (i = 0; i < 3; i++)
|
||||||
#else
|
c.page->data[9 + i] =
|
||||||
if (size_mode == 0 || size_mode == 1) {
|
( d->format_descriptors[index].tdp >>
|
||||||
#endif /* ! Libburn_bd_re_format_olD */
|
(16 - 8 * i)) & 0xff;
|
||||||
|
|
||||||
if (min_size < 0 || max_size < 0)
|
|
||||||
goto no_suitable_formatting_type;
|
|
||||||
if (size <= 0)
|
|
||||||
size = min_size;
|
|
||||||
if (size % 0x10000)
|
|
||||||
size += 0x10000 - (size % 0x10000);
|
|
||||||
if (size < min_size)
|
|
||||||
goto no_suitable_formatting_type;
|
|
||||||
else if(size > max_size)
|
|
||||||
goto no_suitable_formatting_type;
|
|
||||||
num_of_blocks = size / 2048;
|
|
||||||
mmc_int_to_four_char(c.page->data + 4, num_of_blocks);
|
|
||||||
for (i = 0; i < 3; i++)
|
|
||||||
c.page->data[9 + i] = 0;
|
|
||||||
} else {
|
|
||||||
num_of_blocks =
|
|
||||||
d->format_descriptors[index].size / 2048;
|
|
||||||
mmc_int_to_four_char(c.page->data + 4, num_of_blocks);
|
|
||||||
for (i = 0; i < 3; i++)
|
|
||||||
c.page->data[9 + i] =
|
|
||||||
( d->format_descriptors[index].tdp >>
|
|
||||||
(16 - 8 * i)) & 0xff;
|
|
||||||
}
|
|
||||||
sprintf(descr, "%s", d->current_profile_text);
|
sprintf(descr, "%s", d->current_profile_text);
|
||||||
return_immediately = 1; /* caller must do the waiting */
|
return_immediately = 1; /* caller must do the waiting */
|
||||||
c.page->data[1] |= 0x80; /* FOV = this flag vector is valid */
|
c.page->data[1] |= 0x80; /* FOV = this flag vector is valid */
|
||||||
@ -3655,9 +3390,8 @@ int mmc_compose_mode_page_5(struct burn_drive *d,
|
|||||||
|
|
||||||
} else if (d->current_profile == 0x1a || d->current_profile == 0x1b ||
|
} else if (d->current_profile == 0x1a || d->current_profile == 0x1b ||
|
||||||
d->current_profile == 0x2b || d->current_profile == 0x12 ||
|
d->current_profile == 0x2b || d->current_profile == 0x12 ||
|
||||||
d->current_profile == 0x41 || d->current_profile == 0x42 ||
|
|
||||||
d->current_profile == 0x43) {
|
d->current_profile == 0x43) {
|
||||||
/* not with DVD+R[W][/DL] or DVD-RAM or BD-R[E] */;
|
/* not with DVD+R[W][/DL] or DVD-RAM or BD-RE */;
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
/* Traditional setup for CD */
|
/* Traditional setup for CD */
|
||||||
@ -3742,34 +3476,6 @@ int mmc_read_10(struct burn_drive *d, int start,int amount, struct buffer *buf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ts A81210 : Determine the upper limit of readable data size */
|
|
||||||
int mmc_read_capacity(struct burn_drive *d)
|
|
||||||
{
|
|
||||||
struct buffer buf;
|
|
||||||
struct command c;
|
|
||||||
int alloc_len= 8;
|
|
||||||
|
|
||||||
d->media_read_capacity = 0x7fffffff;
|
|
||||||
if (mmc_function_spy(d, "mmc_read_capacity") <= 0)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
scsi_init_command(&c, MMC_READ_CAPACITY, sizeof(MMC_READ_CAPACITY));
|
|
||||||
c.dxfer_len = alloc_len;
|
|
||||||
c.retry = 1;
|
|
||||||
c.page = &buf;
|
|
||||||
c.page->bytes = 0;
|
|
||||||
c.page->sectors = 0;
|
|
||||||
c.dir = FROM_DRIVE;
|
|
||||||
d->issue_command(d, &c);
|
|
||||||
d->media_read_capacity = mmc_four_char_to_int(c.page->data);
|
|
||||||
if (d->media_read_capacity < 0) {
|
|
||||||
d->media_read_capacity = 0x7fffffff;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* ts A61021 : the mmc specific part of sg.c:enumerate_common()
|
/* ts A61021 : the mmc specific part of sg.c:enumerate_common()
|
||||||
*/
|
*/
|
||||||
int mmc_setup_drive(struct burn_drive *d)
|
int mmc_setup_drive(struct burn_drive *d)
|
||||||
@ -3811,19 +3517,15 @@ int mmc_setup_drive(struct burn_drive *d)
|
|||||||
d->current_is_supported_profile = 0;
|
d->current_is_supported_profile = 0;
|
||||||
d->current_has_feat21h = 0;
|
d->current_has_feat21h = 0;
|
||||||
d->current_feat21h_link_size = -1;
|
d->current_feat21h_link_size = -1;
|
||||||
d->current_feat23h_byte4 = 0;
|
|
||||||
d->current_feat23h_byte8 = 0;
|
|
||||||
d->current_feat2fh_byte4 = -1;
|
d->current_feat2fh_byte4 = -1;
|
||||||
d->needs_close_session = 0;
|
d->needs_close_session = 0;
|
||||||
d->needs_sync_cache = 0;
|
d->needs_sync_cache = 0;
|
||||||
d->bg_format_status = -1;
|
d->bg_format_status = -1;
|
||||||
d->num_format_descr = 0;
|
d->num_format_descr = 0;
|
||||||
d->complete_sessions = 0;
|
d->complete_sessions = 0;
|
||||||
d->state_of_last_session = -1;
|
|
||||||
d->last_track_no = 1;
|
d->last_track_no = 1;
|
||||||
d->media_capacity_remaining = 0;
|
d->media_capacity_remaining = 0;
|
||||||
d->media_lba_limit = 0;
|
d->media_lba_limit = 0;
|
||||||
d->media_read_capacity = 0x7fffffff;
|
|
||||||
d->pessimistic_buffer_free = 0;
|
d->pessimistic_buffer_free = 0;
|
||||||
d->pbf_altered = 0;
|
d->pbf_altered = 0;
|
||||||
d->wait_for_buffer_free = Libburn_wait_for_buffer_freE;
|
d->wait_for_buffer_free = Libburn_wait_for_buffer_freE;
|
||||||
|
@ -72,8 +72,6 @@ int mmc_compose_mode_page_5(struct burn_drive *d,
|
|||||||
int mmc_read_10(struct burn_drive *d, int start, int amount,
|
int mmc_read_10(struct burn_drive *d, int start, int amount,
|
||||||
struct buffer *buf);
|
struct buffer *buf);
|
||||||
|
|
||||||
/* ts A81210 : Determine the upper limit of readable data size */
|
|
||||||
int mmc_read_capacity(struct burn_drive *d);
|
|
||||||
|
|
||||||
|
|
||||||
/* mmc5r03c.pdf 4.3.4.4.1 d) "The maximum number of RZones is 2 302." */
|
/* mmc5r03c.pdf 4.3.4.4.1 d) "The maximum number of RZones is 2 302." */
|
||||||
|
@ -76,7 +76,7 @@ Send feedback to libburn-hackers@pykix.org .
|
|||||||
#include <err.h> /* XXX */
|
#include <err.h> /* XXX */
|
||||||
|
|
||||||
|
|
||||||
/* ts A70909 */
|
/* ts A70909 : >>> untestet yet wether this compiles */
|
||||||
#include <sys/statvfs.h>
|
#include <sys/statvfs.h>
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include <err.h> /* XXX */
|
#include <err.h> /* XXX */
|
||||||
|
|
||||||
|
|
||||||
/* ts A70909 */
|
/* ts A70909 : >>> untestet yet wether this compiles */
|
||||||
#include <sys/statvfs.h>
|
#include <sys/statvfs.h>
|
||||||
|
|
||||||
|
|
||||||
@ -622,6 +622,7 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
|
|||||||
struct statvfs vfsbuf;
|
struct statvfs vfsbuf;
|
||||||
char testpath[4096], *cpt;
|
char testpath[4096], *cpt;
|
||||||
long blocks;
|
long blocks;
|
||||||
|
int open_mode = O_RDWR, fd, ret;
|
||||||
off_t add_size = 0;
|
off_t add_size = 0;
|
||||||
|
|
||||||
testpath[0] = 0;
|
testpath[0] = 0;
|
||||||
@ -641,8 +642,6 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
|
|||||||
#ifdef Libburn_if_this_was_linuX
|
#ifdef Libburn_if_this_was_linuX
|
||||||
|
|
||||||
} else if(S_ISBLK(stbuf.st_mode)) {
|
} else if(S_ISBLK(stbuf.st_mode)) {
|
||||||
int open_mode = O_RDWR, fd, ret;
|
|
||||||
|
|
||||||
if(burn_sg_open_o_excl)
|
if(burn_sg_open_o_excl)
|
||||||
open_mode |= O_EXCL;
|
open_mode |= O_EXCL;
|
||||||
fd = open(path, open_mode);
|
fd = open(path, open_mode);
|
||||||
|
106
libburn/spc.c
106
libburn/spc.c
@ -104,9 +104,7 @@ int spc_wait_unit_attention(struct burn_drive *d, int max_sec, char *cmd_text,
|
|||||||
int flag)
|
int flag)
|
||||||
{
|
{
|
||||||
int i, ret = 1, key = 0, asc = 0, ascq = 0;
|
int i, ret = 1, key = 0, asc = 0, ascq = 0;
|
||||||
char msg[320];
|
char msg[160];
|
||||||
unsigned char sense[14];
|
|
||||||
enum response resp;
|
|
||||||
|
|
||||||
if (!(flag & 1))
|
if (!(flag & 1))
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
@ -140,24 +138,10 @@ int spc_wait_unit_attention(struct burn_drive *d, int max_sec, char *cmd_text,
|
|||||||
/* media change notice = try again */
|
/* media change notice = try again */
|
||||||
goto slumber;
|
goto slumber;
|
||||||
|
|
||||||
#ifdef NIX
|
|
||||||
sprintf(msg,
|
sprintf(msg,
|
||||||
"Asynchromous SCSI error on %s: key=%X asc=%2.2Xh ascq=%2.2Xh",
|
"Asynchromous SCSI error on %s: key=%X asc=%2.2Xh ascq=%2.2Xh",
|
||||||
cmd_text, (unsigned) key, (unsigned) asc,
|
cmd_text, (unsigned) key, (unsigned) asc,
|
||||||
(unsigned) ascq);
|
(unsigned) ascq);
|
||||||
#else
|
|
||||||
|
|
||||||
/* ts A90213 */
|
|
||||||
sprintf(msg,
|
|
||||||
"Asynchromous SCSI error on %s: ", cmd_text);
|
|
||||||
sense[2] = key;
|
|
||||||
sense[12] = asc;
|
|
||||||
sense[13] = ascq;
|
|
||||||
resp = scsi_error_msg(d, sense, 14, msg + strlen(msg),
|
|
||||||
&key, &asc, &ascq);
|
|
||||||
|
|
||||||
#endif /* ! NIX */
|
|
||||||
|
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
libdax_msgs_submit(libdax_messenger, d->global_index,
|
||||||
0x0002014d,
|
0x0002014d,
|
||||||
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
||||||
@ -1081,14 +1065,6 @@ enum response scsi_error_msg(struct burn_drive *d, unsigned char *sense,
|
|||||||
else
|
else
|
||||||
sprintf(msg, "Incompatible medium installed");
|
sprintf(msg, "Incompatible medium installed");
|
||||||
return FAIL;
|
return FAIL;
|
||||||
case 0x31:
|
|
||||||
if (*key != 3)
|
|
||||||
break;
|
|
||||||
if (*ascq == 0)
|
|
||||||
sprintf(msg, "Medium unformatted or format corrupted");
|
|
||||||
else if (*ascq == 1)
|
|
||||||
sprintf(msg, "Format command failed");
|
|
||||||
return FAIL;
|
|
||||||
case 0x3A:
|
case 0x3A:
|
||||||
if (*key != 2)
|
if (*key != 2)
|
||||||
break;
|
break;
|
||||||
@ -1138,20 +1114,6 @@ enum response scsi_error_msg(struct burn_drive *d, unsigned char *sense,
|
|||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
return FAIL;
|
return FAIL;
|
||||||
case 0x73:
|
|
||||||
if (*key == 3 && *ascq == 0)
|
|
||||||
sprintf(msg, "CD control error");
|
|
||||||
else if (*key == 3 && *ascq == 2)
|
|
||||||
sprintf(msg, "Power calibration area is full");
|
|
||||||
else if (*key == 3 && *ascq == 3)
|
|
||||||
sprintf(msg, "Power calibration area error");
|
|
||||||
else if (*key == 3 && *ascq == 4)
|
|
||||||
sprintf(msg, "Program memory area update failure");
|
|
||||||
else if (*key == 3 && *ascq == 5)
|
|
||||||
sprintf(msg, "Program memory area is full");
|
|
||||||
else
|
|
||||||
break;
|
|
||||||
return FAIL;
|
|
||||||
}
|
}
|
||||||
sprintf(msg_data,
|
sprintf(msg_data,
|
||||||
"Failure. See mmc3r10g.pdf: Sense Key %X ASC %2.2X ASCQ %2.2X",
|
"Failure. See mmc3r10g.pdf: Sense Key %X ASC %2.2X ASCQ %2.2X",
|
||||||
@ -1178,68 +1140,6 @@ enum response scsi_error(struct burn_drive *d, unsigned char *sense,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static char *scsi_command_name(unsigned int c, int flag)
|
|
||||||
{
|
|
||||||
switch (c) {
|
|
||||||
case 0x00:
|
|
||||||
return "TEST UNIT READY";
|
|
||||||
case 0x03:
|
|
||||||
return "REQUEST SENSE";
|
|
||||||
case 0x04:
|
|
||||||
return "FORMAT UNIT";
|
|
||||||
case 0x1b:
|
|
||||||
return "START/STOP UNIT";
|
|
||||||
case 0x1e:
|
|
||||||
return "PREVENT/ALLOW MEDIA REMOVAL";
|
|
||||||
case 0x23:
|
|
||||||
return "READ FORMAT CAPACITIES";
|
|
||||||
case 0x28:
|
|
||||||
return "READ(10)";
|
|
||||||
case 0x2a:
|
|
||||||
return "WRITE(10)";
|
|
||||||
case 0x35:
|
|
||||||
return "SYNCHRONIZE CACHE";
|
|
||||||
case 0x43:
|
|
||||||
return "READ TOC/PMA/ATIP";
|
|
||||||
case 0x46:
|
|
||||||
return "GET CONFIGURATION";
|
|
||||||
case 0x4a:
|
|
||||||
return "GET EVENT STATUS NOTIFICATION";
|
|
||||||
case 0x51:
|
|
||||||
return "READ DISC INFORMATION";
|
|
||||||
case 0x52:
|
|
||||||
return "READ TRACK INFORMATION";
|
|
||||||
case 0x53:
|
|
||||||
return "RESERVE TRACK";
|
|
||||||
case 0x54:
|
|
||||||
return "SEND OPC INFORMATION";
|
|
||||||
case 0x55:
|
|
||||||
return "MODE SELECT";
|
|
||||||
case 0x5a:
|
|
||||||
return "SEND OPC INFORMATION";
|
|
||||||
case 0x5b:
|
|
||||||
return "CLOSE TRACK/SESSION";
|
|
||||||
case 0x5c:
|
|
||||||
return "READ BUFFER CAPACITY";
|
|
||||||
case 0x5d:
|
|
||||||
return "SEND CUE SHEET";
|
|
||||||
case 0xa1:
|
|
||||||
return "BLANK";
|
|
||||||
case 0xaa:
|
|
||||||
return "WRITE(12)";
|
|
||||||
case 0xac:
|
|
||||||
return "GET PERFORMANCE";
|
|
||||||
case 0xb6:
|
|
||||||
return "SET STREAMING";
|
|
||||||
case 0xbb:
|
|
||||||
return "SET CD SPEED";
|
|
||||||
case 0xbe:
|
|
||||||
return "READ CD";
|
|
||||||
}
|
|
||||||
return "(NOT IN COMMAND LIST)";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* ts A61030 - A61115 */
|
/* ts A61030 - A61115 */
|
||||||
/* @param flag bit0=do report conditions which are considered not an error */
|
/* @param flag bit0=do report conditions which are considered not an error */
|
||||||
int scsi_notify_error(struct burn_drive *d, struct command *c,
|
int scsi_notify_error(struct burn_drive *d, struct command *c,
|
||||||
@ -1264,9 +1164,7 @@ int scsi_notify_error(struct burn_drive *d, struct command *c,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(msg, "SCSI error condition on command %2.2Xh %s: ",
|
sprintf(msg,"SCSI error condition on command %2.2Xh : ", c->opcode[0]);
|
||||||
c->opcode[0],
|
|
||||||
scsi_command_name((unsigned int) c->opcode[0], 0));
|
|
||||||
|
|
||||||
#ifdef NIX
|
#ifdef NIX
|
||||||
if (key>=0)
|
if (key>=0)
|
||||||
|
@ -104,30 +104,6 @@ int burn_disc_add_session(struct burn_disc *d, struct burn_session *s,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ts A81202: this function was in the API but not implemented.
|
|
||||||
*/
|
|
||||||
int burn_disc_remove_session(struct burn_disc *d, struct burn_session *s)
|
|
||||||
{
|
|
||||||
int i, skip = 0;
|
|
||||||
|
|
||||||
if (d->session == NULL)
|
|
||||||
return 0;
|
|
||||||
for (i = 0; i < d->sessions; i++) {
|
|
||||||
if (s == d->session[i]) {
|
|
||||||
skip++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
d->session[i - skip] = d->session[i];
|
|
||||||
}
|
|
||||||
if (!skip)
|
|
||||||
return 0;
|
|
||||||
burn_session_free(s);
|
|
||||||
d->sessions--;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
struct burn_track *burn_track_create(void)
|
struct burn_track *burn_track_create(void)
|
||||||
{
|
{
|
||||||
struct burn_track *t;
|
struct burn_track *t;
|
||||||
@ -553,53 +529,14 @@ int burn_session_get_hidefirst(struct burn_session *session)
|
|||||||
/* ts A80808 : Enhance CD toc to DVD toc */
|
/* ts A80808 : Enhance CD toc to DVD toc */
|
||||||
int burn_disc_cd_toc_extensions(struct burn_disc *d, int flag)
|
int burn_disc_cd_toc_extensions(struct burn_disc *d, int flag)
|
||||||
{
|
{
|
||||||
int sidx= 0, tidx= 0;
|
int sidx, tidx;
|
||||||
struct burn_toc_entry *entry, *prev_entry= NULL;
|
struct burn_toc_entry *entry, *prev_entry= NULL;
|
||||||
/* ts A81126 : ticket 146 : There was a SIGSEGV in here */
|
|
||||||
char msg_data[321], *msg;
|
|
||||||
|
|
||||||
strcpy(msg_data,
|
|
||||||
"Damaged CD table-of-content detected and truncated.");
|
|
||||||
strcat(msg_data, " In burn_disc_cd_toc_extensions: ");
|
|
||||||
msg = msg_data + strlen(msg_data);
|
|
||||||
if (d->session == NULL) {
|
|
||||||
strcpy(msg, "d->session == NULL");
|
|
||||||
goto failure;
|
|
||||||
}
|
|
||||||
for (sidx = 0; sidx < d->sessions; sidx++) {
|
for (sidx = 0; sidx < d->sessions; sidx++) {
|
||||||
if (d->session[sidx] == NULL) {
|
|
||||||
sprintf(msg, "d->session[%d of %d] == NULL",
|
|
||||||
sidx, d->sessions);
|
|
||||||
goto failure;
|
|
||||||
}
|
|
||||||
if (d->session[sidx]->track == NULL) {
|
|
||||||
sprintf(msg, "d->session[%d of %d]->track == NULL",
|
|
||||||
sidx, d->sessions);
|
|
||||||
goto failure;
|
|
||||||
}
|
|
||||||
if (d->session[sidx]->leadout_entry == NULL) {
|
|
||||||
sprintf(msg,
|
|
||||||
" Session %d of %d: Leadout entry missing.",
|
|
||||||
sidx, d->sessions);
|
|
||||||
goto failure;
|
|
||||||
}
|
|
||||||
for (tidx = 0; tidx < d->session[sidx]->tracks + 1; tidx++) {
|
for (tidx = 0; tidx < d->session[sidx]->tracks + 1; tidx++) {
|
||||||
if (tidx < d->session[sidx]->tracks) {
|
if (tidx < d->session[sidx]->tracks)
|
||||||
if (d->session[sidx]->track[tidx] == NULL) {
|
|
||||||
sprintf(msg,
|
|
||||||
"d->session[%d of %d]->track[%d of %d] == NULL",
|
|
||||||
sidx, d->sessions, tidx, d->session[sidx]->tracks);
|
|
||||||
goto failure;
|
|
||||||
}
|
|
||||||
entry = d->session[sidx]->track[tidx]->entry;
|
entry = d->session[sidx]->track[tidx]->entry;
|
||||||
if (entry == NULL) {
|
else
|
||||||
sprintf(msg,
|
|
||||||
"session %d of %d, track %d of %d, entry == NULL",
|
|
||||||
sidx, d->sessions, tidx,
|
|
||||||
d->session[sidx]->tracks);
|
|
||||||
goto failure;
|
|
||||||
}
|
|
||||||
} else
|
|
||||||
entry = d->session[sidx]->leadout_entry;
|
entry = d->session[sidx]->leadout_entry;
|
||||||
entry->session_msb = 0;
|
entry->session_msb = 0;
|
||||||
entry->point_msb = 0;
|
entry->point_msb = 0;
|
||||||
@ -621,11 +558,6 @@ int burn_disc_cd_toc_extensions(struct burn_disc *d, int flag)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
failure:
|
|
||||||
libdax_msgs_submit(libdax_messenger, -1, 0x0002015f,
|
|
||||||
LIBDAX_MSGS_SEV_MISHAP, LIBDAX_MSGS_PRIO_HIGH, msg_data, 0, 0);
|
|
||||||
d->sessions= sidx;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -171,19 +171,6 @@ struct burn_drive
|
|||||||
/* Link Size item number 0 from feature 0021h descriptor */
|
/* Link Size item number 0 from feature 0021h descriptor */
|
||||||
int current_feat21h_link_size;
|
int current_feat21h_link_size;
|
||||||
|
|
||||||
/* Flags from feature 0023h for formatting BD mmc5r03c.pdf 5.3.13
|
|
||||||
Byte 4 BD-RE:
|
|
||||||
bit0= Cert format 30h sub-type 10b
|
|
||||||
bit1= QCert format 30h sub-type 11b
|
|
||||||
bit2= Expand format 01h
|
|
||||||
bit3= RENoSA format 31h
|
|
||||||
Byte 8 BD-R:
|
|
||||||
bit0= RRM format 32h sub-type 10b
|
|
||||||
*/
|
|
||||||
int current_feat23h_byte4;
|
|
||||||
int current_feat23h_byte8;
|
|
||||||
|
|
||||||
|
|
||||||
/* Flags from feature 002Fh feature descriptor mmc5r03c.pdf 5.3.25 :
|
/* Flags from feature 002Fh feature descriptor mmc5r03c.pdf 5.3.25 :
|
||||||
bit1= DVD-RW supported
|
bit1= DVD-RW supported
|
||||||
bit2= Test Write available
|
bit2= Test Write available
|
||||||
@ -236,9 +223,6 @@ struct burn_drive
|
|||||||
|
|
||||||
/* ts A70131 : from 51h READ DISC INFORMATION Number of Sessions (-1)*/
|
/* ts A70131 : from 51h READ DISC INFORMATION Number of Sessions (-1)*/
|
||||||
int complete_sessions;
|
int complete_sessions;
|
||||||
/* ts A90107 */
|
|
||||||
int state_of_last_session;
|
|
||||||
|
|
||||||
/* ts A70129 :
|
/* ts A70129 :
|
||||||
from 51h READ DISC INFORMATION Last Track Number in Last Session */
|
from 51h READ DISC INFORMATION Last Track Number in Last Session */
|
||||||
int last_track_no;
|
int last_track_no;
|
||||||
@ -251,9 +235,6 @@ struct burn_drive
|
|||||||
/* ts A70215 : if > 0 : first lba on media that is too high for write*/
|
/* ts A70215 : if > 0 : first lba on media that is too high for write*/
|
||||||
int media_lba_limit;
|
int media_lba_limit;
|
||||||
|
|
||||||
/* ts A81210 : Upper limit of readable data size,
|
|
||||||
0x7fffffff = unknown */
|
|
||||||
int media_read_capacity;
|
|
||||||
|
|
||||||
int toc_temp;
|
int toc_temp;
|
||||||
struct burn_disc *disc; /* disc structure */
|
struct burn_disc *disc; /* disc structure */
|
||||||
|
132
libburn/write.c
132
libburn/write.c
@ -1005,10 +1005,8 @@ int burn_precheck_write(struct burn_write_opts *o, struct burn_disc *disc,
|
|||||||
} else if (d->drive_role == 3 ||
|
} else if (d->drive_role == 3 ||
|
||||||
d->current_profile == 0x11 || d->current_profile == 0x14 ||
|
d->current_profile == 0x11 || d->current_profile == 0x14 ||
|
||||||
d->current_profile == 0x15 ||
|
d->current_profile == 0x15 ||
|
||||||
d->current_profile == 0x1b || d->current_profile == 0x2b ||
|
d->current_profile == 0x1b || d->current_profile == 0x2b ) {
|
||||||
d->current_profile == 0x41) {
|
/* DVD-R* Sequential , DVD+R[/DL] , sequential stdio "drive" */
|
||||||
/* DVD-R* Sequential , DVD+R[/DL] , BD-R,
|
|
||||||
sequential stdio "drive" */
|
|
||||||
if (o->start_byte >= 0)
|
if (o->start_byte >= 0)
|
||||||
strcat(reasons, "write start address not supported, ");
|
strcat(reasons, "write start address not supported, ");
|
||||||
} else {
|
} else {
|
||||||
@ -1108,10 +1106,6 @@ int burn_disc_open_track_dvd_plus_r(struct burn_write_opts *o,
|
|||||||
if (o->write_type == BURN_WRITE_SAO &&
|
if (o->write_type == BURN_WRITE_SAO &&
|
||||||
! burn_track_is_open_ended(s->track[tnum])) {
|
! burn_track_is_open_ended(s->track[tnum])) {
|
||||||
/* Round track size up to 32 KiB and reserve track */
|
/* Round track size up to 32 KiB and reserve track */
|
||||||
|
|
||||||
/* ts A81208 */
|
|
||||||
/* >>> ??? round to 64 KiB for BD-R ? (It is not mandatory) */
|
|
||||||
|
|
||||||
size = ((off_t) burn_track_get_sectors(s->track[tnum]))
|
size = ((off_t) burn_track_get_sectors(s->track[tnum]))
|
||||||
* (off_t) 2048;
|
* (off_t) 2048;
|
||||||
size = (size + (off_t) 0x7fff) & ~((off_t) 0x7fff);
|
size = (size + (off_t) 0x7fff) & ~((off_t) 0x7fff);
|
||||||
@ -1159,29 +1153,19 @@ int burn_disc_close_track_dvd_minus_r(struct burn_write_opts *o,
|
|||||||
int burn_disc_finalize_dvd_plus_r(struct burn_write_opts *o)
|
int burn_disc_finalize_dvd_plus_r(struct burn_write_opts *o)
|
||||||
{
|
{
|
||||||
struct burn_drive *d = o->drive;
|
struct burn_drive *d = o->drive;
|
||||||
char msg[80];
|
|
||||||
|
|
||||||
sprintf(msg, "Finalizing %s ...",
|
|
||||||
d->current_profile_text);
|
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
libdax_msgs_submit(libdax_messenger, d->global_index,
|
||||||
0x00000002,
|
0x00000002,
|
||||||
LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_ZERO,
|
LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_ZERO,
|
||||||
msg, 0, 0);
|
"Finalizing DVD+R ...", 0, 0);
|
||||||
|
|
||||||
if(d->current_profile == 0x41) { /* BD-R */
|
/* CLOSE SESSION, 101b, Finalize with minimal radius */
|
||||||
/* CLOSE SESSION, 110b, Finalize Disc */
|
d->close_track_session(d, 2, 1); /* (2<<1)|1 = 5 */
|
||||||
d->close_track_session(d, 3, 0); /* (3<<1)|0 = 6 */
|
|
||||||
} else {
|
|
||||||
/* CLOSE SESSION, 101b, Finalize with minimal radius */
|
|
||||||
d->close_track_session(d, 2, 1); /* (2<<1)|1 = 5 */
|
|
||||||
}
|
|
||||||
|
|
||||||
sprintf(msg, "... finalizing %s done ",
|
|
||||||
d->current_profile_text);
|
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
libdax_msgs_submit(libdax_messenger, d->global_index,
|
||||||
0x00000002,
|
0x00000002,
|
||||||
LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_ZERO,
|
LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_ZERO,
|
||||||
msg, 0, 0);
|
"... finalizing DVD+R done ", 0, 0);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -1216,7 +1200,7 @@ int burn_disc_close_track_dvd_plus_r(struct burn_write_opts *o,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ts A61218 - A81208 */
|
/* ts A61218 - A70129 */
|
||||||
int burn_dvd_write_track(struct burn_write_opts *o,
|
int burn_dvd_write_track(struct burn_write_opts *o,
|
||||||
struct burn_session *s, int tnum, int is_last_track)
|
struct burn_session *s, int tnum, int is_last_track)
|
||||||
{
|
{
|
||||||
@ -1240,11 +1224,6 @@ int burn_dvd_write_track(struct burn_write_opts *o,
|
|||||||
ret = burn_disc_open_track_dvd_plus_r(o, s, tnum);
|
ret = burn_disc_open_track_dvd_plus_r(o, s, tnum);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
goto ex;
|
goto ex;
|
||||||
} else if (d->current_profile == 0x41) {
|
|
||||||
/* BD-R SRM */
|
|
||||||
ret = burn_disc_open_track_dvd_plus_r(o, s, tnum);
|
|
||||||
if (ret <= 0)
|
|
||||||
goto ex;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sectors = burn_track_get_sectors(t);
|
sectors = burn_track_get_sectors(t);
|
||||||
@ -1313,12 +1292,6 @@ int burn_dvd_write_track(struct burn_write_opts *o,
|
|||||||
is_last_track);
|
is_last_track);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
goto ex;
|
goto ex;
|
||||||
} else if (d->current_profile == 0x41) {
|
|
||||||
/* BD-R SRM */
|
|
||||||
ret = burn_disc_close_track_dvd_plus_r(o, s, tnum,
|
|
||||||
is_last_track);
|
|
||||||
if (ret <= 0)
|
|
||||||
goto ex;
|
|
||||||
}
|
}
|
||||||
ret = 1;
|
ret = 1;
|
||||||
ex:;
|
ex:;
|
||||||
@ -1399,70 +1372,10 @@ int burn_disc_close_session_dvd_minus_r(struct burn_write_opts *o,
|
|||||||
int burn_dvd_write_session(struct burn_write_opts *o,
|
int burn_dvd_write_session(struct burn_write_opts *o,
|
||||||
struct burn_session *s, int is_last_session)
|
struct burn_session *s, int is_last_session)
|
||||||
{
|
{
|
||||||
int i, ret, multi_mem;
|
int i,ret;
|
||||||
struct burn_drive *d = o->drive;
|
struct burn_drive *d = o->drive;
|
||||||
|
|
||||||
/* ts A90108 */
|
/* >>> open_session ? */
|
||||||
if (d->current_profile == 0x41 && d->status == BURN_DISC_APPENDABLE &&
|
|
||||||
d->state_of_last_session == 1) {
|
|
||||||
/* last session on BD-R is still open */;
|
|
||||||
|
|
||||||
/* BR-R were not closed by libburn-0.6.0.pl00 if o->multi==0.
|
|
||||||
This leads to an unreadable, but recoverable) media state.
|
|
||||||
Technically they are appendable although the last session
|
|
||||||
is not readable.
|
|
||||||
|
|
||||||
By default the open session gets closed here before the new
|
|
||||||
session is written. E.g. after writing a small dummy seesion
|
|
||||||
number 2 one can read session 1 and write session 3 which
|
|
||||||
points to data of session 1.
|
|
||||||
|
|
||||||
For the case that no media with 3 sessions is desired it is
|
|
||||||
possible to activate the following coarse single-session
|
|
||||||
closing code:
|
|
||||||
No new session will be written but calling programs will
|
|
||||||
report success. Quite misleading.
|
|
||||||
Activate only if really needed by
|
|
||||||
# define Libburn_bug_A90108_close_disC yes
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef Libburn_bug_A90108_close_disC
|
|
||||||
|
|
||||||
/* Close open session and media.
|
|
||||||
That was the goal of the failed run which led to the
|
|
||||||
unreadable (but recoverable) media state.
|
|
||||||
|
|
||||||
It is not easy to implement a general close function for
|
|
||||||
all media types. Therefore this pseudo write code is under
|
|
||||||
control of #ifdef.
|
|
||||||
*/
|
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
|
||||||
0x00020171,
|
|
||||||
LIBDAX_MSGS_SEV_NOTE, LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
"Closing BD-R with accidently open session",
|
|
||||||
0, 0);
|
|
||||||
d->close_track_session(d, 3, 0); /* CLOSE SESSION, 110b */
|
|
||||||
d->state_of_last_session = 3; /* mark as complete session */
|
|
||||||
d->status = BURN_DISC_FULL;
|
|
||||||
sleep(3); /* The caller might need time to arrange itself */
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
#else /* Libburn_bug_A90108_close_disC */
|
|
||||||
|
|
||||||
/* This is the default mode.
|
|
||||||
*/
|
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
|
||||||
0x00020170,
|
|
||||||
LIBDAX_MSGS_SEV_NOTE, LIBDAX_MSGS_PRIO_HIGH,
|
|
||||||
"Closing open session before writing new one",
|
|
||||||
0, 0);
|
|
||||||
d->close_track_session(d, 1, 0); /* CLOSE SESSION, 010b */
|
|
||||||
d->state_of_last_session = 3; /* mark as complete session */
|
|
||||||
|
|
||||||
#endif /* ! Libburn_bug_A90108_close_disC */
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < s->tracks; i++) {
|
for (i = 0; i < s->tracks; i++) {
|
||||||
ret = burn_dvd_write_track(o, s, i,
|
ret = burn_dvd_write_track(o, s, i,
|
||||||
@ -1473,11 +1386,7 @@ int burn_dvd_write_session(struct burn_write_opts *o,
|
|||||||
if (d->current_profile == 0x11 || d->current_profile == 0x14 ||
|
if (d->current_profile == 0x11 || d->current_profile == 0x14 ||
|
||||||
d->current_profile == 0x15) {
|
d->current_profile == 0x15) {
|
||||||
/* DVD-R , DVD-RW Sequential, DVD-R/DL Sequential */
|
/* DVD-R , DVD-RW Sequential, DVD-R/DL Sequential */
|
||||||
multi_mem = o->multi;
|
|
||||||
if (!is_last_session)
|
|
||||||
o->multi = 1;
|
|
||||||
ret = burn_disc_close_session_dvd_minus_r(o, s);
|
ret = burn_disc_close_session_dvd_minus_r(o, s);
|
||||||
o->multi = multi_mem;
|
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
} else if (d->current_profile == 0x12 || d->current_profile == 0x43) {
|
} else if (d->current_profile == 0x12 || d->current_profile == 0x43) {
|
||||||
@ -1499,8 +1408,6 @@ int burn_dvd_write_session(struct burn_write_opts *o,
|
|||||||
}
|
}
|
||||||
} else if (d->current_profile == 0x1b || d->current_profile == 0x2b) {
|
} else if (d->current_profile == 0x1b || d->current_profile == 0x2b) {
|
||||||
/* DVD+R , DVD+R/DL do each track as an own session */;
|
/* DVD+R , DVD+R/DL do each track as an own session */;
|
||||||
} else if (d->current_profile == 0x41) {
|
|
||||||
/* BD-R SRM do each track as an own session */;
|
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -1704,12 +1611,8 @@ int burn_dvd_write_sync(struct burn_write_opts *o,
|
|||||||
/* ??? padding needed ??? cowardly doing it for now */
|
/* ??? padding needed ??? cowardly doing it for now */
|
||||||
o->obs_pad = 1; /* fill-up track's last 32k buffer */
|
o->obs_pad = 1; /* fill-up track's last 32k buffer */
|
||||||
|
|
||||||
} else if (d->current_profile == 0x1b || d->current_profile == 0x2b ||
|
} else if (d->current_profile == 0x1b || d->current_profile == 0x2b) {
|
||||||
d->current_profile == 0x41) {
|
/* DVD+R , DVD+R/DL */
|
||||||
/* DVD+R , DVD+R/DL , BD-R SRM */
|
|
||||||
|
|
||||||
/* >>> ts A81208 : with BD-R set o->obs to 64 kB ? */
|
|
||||||
|
|
||||||
t = disc->session[0]->track[0];
|
t = disc->session[0]->track[0];
|
||||||
o_end = ( burn_track_is_open_ended(t) && !o->fill_up_media );
|
o_end = ( burn_track_is_open_ended(t) && !o->fill_up_media );
|
||||||
default_size = burn_track_get_default_size(t);
|
default_size = burn_track_get_default_size(t);
|
||||||
@ -1724,8 +1627,8 @@ int burn_dvd_write_sync(struct burn_write_opts *o,
|
|||||||
}
|
}
|
||||||
ret = burn_disc_setup_dvd_plus_r(o, disc);
|
ret = burn_disc_setup_dvd_plus_r(o, disc);
|
||||||
if (ret <= 0) {
|
if (ret <= 0) {
|
||||||
sprintf(msg, "Write preparation setup failed for %s",
|
sprintf(msg,
|
||||||
d->current_profile == 0x41 ? "BD-R" : "DVD+R");
|
"Write preparation setup failed for DVD+R");
|
||||||
libdax_msgs_submit(libdax_messenger, d->global_index,
|
libdax_msgs_submit(libdax_messenger, d->global_index,
|
||||||
0x00020121,
|
0x00020121,
|
||||||
LIBDAX_MSGS_SEV_FATAL, LIBDAX_MSGS_PRIO_HIGH,
|
LIBDAX_MSGS_SEV_FATAL, LIBDAX_MSGS_PRIO_HIGH,
|
||||||
@ -2095,7 +1998,7 @@ void burn_disc_write_sync(struct burn_write_opts *o, struct burn_disc *disc)
|
|||||||
struct burn_drive *d = o->drive;
|
struct burn_drive *d = o->drive;
|
||||||
struct buffer buf, *buffer_mem = o->drive->buffer;
|
struct buffer buf, *buffer_mem = o->drive->buffer;
|
||||||
struct burn_track *lt, *t;
|
struct burn_track *lt, *t;
|
||||||
int first = 1, i, ret, lba, nwa = 0, multi_mem;
|
int first = 1, i, ret, lba, nwa = 0;
|
||||||
off_t default_size;
|
off_t default_size;
|
||||||
char msg[80];
|
char msg[80];
|
||||||
|
|
||||||
@ -2245,12 +2148,7 @@ return crap. so we send the command, then ignore the result.
|
|||||||
d->alba += 4500;
|
d->alba += 4500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
multi_mem = o->multi;
|
if (!burn_write_session(o, disc->session[i]))
|
||||||
if(i < disc->sessions - 1)
|
|
||||||
o->multi = 1;
|
|
||||||
ret = burn_write_session(o, disc->session[i]);
|
|
||||||
o->multi = multi_mem;
|
|
||||||
if (!ret)
|
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
lt = disc->session[i]->track[disc->session[i]->tracks - 1];
|
lt = disc->session[i]->track[disc->session[i]->tracks - 1];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
/* test/libburner.c , API illustration of burning data or audio tracks to CD */
|
/* test/libburner.c , API illustration of burning data or audio tracks to CD */
|
||||||
/* Copyright (C) 2005 - 2009 Thomas Schmitt <scdbackup@gmx.net> */
|
/* Copyright (C) 2005 - 2007 Thomas Schmitt <scdbackup@gmx.net> */
|
||||||
/* Provided under GPLv2,see also "License and copyright aspects" at file end */
|
/* Provided under GPLv2,see also "License and copyright aspects" at file end */
|
||||||
|
|
||||||
|
|
||||||
@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
libburner is a minimal demo application for the library libburn as provided
|
libburner is a minimal demo application for the library libburn as provided
|
||||||
on http://libburnia-project.org . It can list the available devices, can
|
on http://libburnia-project.org . It can list the available devices, can
|
||||||
blank a CD-RW or DVD-RW, can format DVD-RW and BD, can burn to CD-R,
|
blank a CD-RW or DVD-RW, can format DVD-RW and BD-RE, can burn to CD-R,
|
||||||
CD-RW, DVD-R, DVD+R, DVD+R/DL, DVD+RW, DVD-RW, DVD-RAM, BD-R, BD-RE.
|
CD-RW, DVD-R, DVD+R, DVD+R/DL, DVD+RW, DVD-RW, DVD-RAM, BD-RE.
|
||||||
Not supported yet: DVD-R/DL.
|
Not supported yet: DVD-R/DL, BD-R.
|
||||||
|
|
||||||
It's main purpose, nevertheless, is to show you how to use libburn and also
|
It's main purpose, nevertheless, is to show you how to use libburn and also
|
||||||
to serve the libburnia team as reference application. libburner.c does indeed
|
to serve the libburnia team as reference application. libburner.c does indeed
|
||||||
@ -29,9 +29,9 @@
|
|||||||
With that aquired drive you can blank a CD-RW
|
With that aquired drive you can blank a CD-RW
|
||||||
libburner_blank_disc()
|
libburner_blank_disc()
|
||||||
or you can format a DVD-RW to profile "Restricted Overwrite" (needed once)
|
or you can format a DVD-RW to profile "Restricted Overwrite" (needed once)
|
||||||
or an unused BD to default size with spare blocks
|
or an unused BD-RE to default size
|
||||||
libburner_format()
|
libburner_format_owrt()
|
||||||
With the aquired drive you can burn to CD, DVD, BD
|
With the aquired drive you can burn to CD or DVD
|
||||||
libburner_payload()
|
libburner_payload()
|
||||||
When everything is done, main() releases the drive and shuts down libburn:
|
When everything is done, main() releases the drive and shuts down libburn:
|
||||||
burn_drive_release();
|
burn_drive_release();
|
||||||
@ -260,8 +260,7 @@ int libburner_aquire_by_driveno(int *driveno)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Makes a previously used CD-RW or unformatted DVD-RW ready for thorough
|
/** Makes a previously used CD-RW ready for thorough re-usal.
|
||||||
re-usal.
|
|
||||||
|
|
||||||
To our knowledge it is hardly possible to abort an ongoing blank operation
|
To our knowledge it is hardly possible to abort an ongoing blank operation
|
||||||
because after start it is entirely handled by the drive.
|
because after start it is entirely handled by the drive.
|
||||||
@ -323,35 +322,24 @@ int libburner_blank_disc(struct burn_drive *drive, int blank_fast)
|
|||||||
Formats unformatted BD-RE to default size. This will allocate some
|
Formats unformatted BD-RE to default size. This will allocate some
|
||||||
reserve space, test for bad blocks and make the media ready for writing.
|
reserve space, test for bad blocks and make the media ready for writing.
|
||||||
Expect a very long run time.
|
Expect a very long run time.
|
||||||
|
|
||||||
Formats unformatted blank BD-R to hold a default amount of spare blocks
|
|
||||||
for eventual mishaps during writing. If BD-R get written without being
|
|
||||||
formatted, then they get no such reserve and will burn at full speed.
|
|
||||||
*/
|
*/
|
||||||
int libburner_format(struct burn_drive *drive)
|
int libburner_format_owrt(struct burn_drive *drive)
|
||||||
{
|
{
|
||||||
struct burn_progress p;
|
struct burn_progress p;
|
||||||
double percent = 1.0;
|
double percent = 1.0;
|
||||||
int ret, status, num_formats, format_flag= 0;
|
int ret, status, num_formats, format_flag= 0;
|
||||||
off_t size = 0;
|
off_t size = 0;
|
||||||
unsigned dummy;
|
unsigned dummy;
|
||||||
enum burn_disc_status disc_state;
|
|
||||||
|
|
||||||
if (current_profile == 0x13) {
|
if (current_profile == 0x13) {
|
||||||
fprintf(stderr, "IDLE: DVD-RW media is already formatted\n");
|
fprintf(stderr, "IDLE: DVD-RW media is already formatted\n");
|
||||||
return 2;
|
return 2;
|
||||||
} else if (current_profile == 0x41 || current_profile == 0x43) {
|
} else if (current_profile == 0x43) {
|
||||||
disc_state = burn_disc_get_status(drive);
|
|
||||||
if (disc_state != BURN_DISC_BLANK && current_profile == 0x41) {
|
|
||||||
fprintf(stderr,
|
|
||||||
"FATAL: BD-R is not blank. Cannot format.\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
ret = burn_disc_get_formats(drive, &status, &size, &dummy,
|
ret = burn_disc_get_formats(drive, &status, &size, &dummy,
|
||||||
&num_formats);
|
&num_formats);
|
||||||
if (ret > 0 && status != BURN_FORMAT_IS_UNFORMATTED) {
|
if (ret > 0 && status == BURN_FORMAT_IS_FORMATTED) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"IDLE: BD media is already formatted\n");
|
"IDLE: BD-RE media is already formatted\n");
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
size = 0; /* does not really matter */
|
size = 0; /* does not really matter */
|
||||||
@ -360,7 +348,7 @@ int libburner_format(struct burn_drive *drive)
|
|||||||
size = 128 * 1024 * 1024;
|
size = 128 * 1024 * 1024;
|
||||||
format_flag = 1; /* write initial 128 MiB */
|
format_flag = 1; /* write initial 128 MiB */
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "FATAL: Can only format DVD-RW or BD\n");
|
fprintf(stderr, "FATAL: Can only format DVD-RW or BD-RE\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -488,7 +476,7 @@ int libburner_payload(struct burn_drive *drive,
|
|||||||
/* Give up local reference to the data burn_source object */
|
/* Give up local reference to the data burn_source object */
|
||||||
burn_source_free(data_src);
|
burn_source_free(data_src);
|
||||||
|
|
||||||
} /* trackno loop end */
|
} /* trackno loop end */
|
||||||
|
|
||||||
/* Evaluate drive and media */
|
/* Evaluate drive and media */
|
||||||
disc_state = burn_disc_get_status(drive);
|
disc_state = burn_disc_get_status(drive);
|
||||||
@ -626,8 +614,7 @@ int libburner_setup(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
strcpy(drive_adr, argv[i]);
|
strcpy(drive_adr, argv[i]);
|
||||||
}
|
}
|
||||||
} else if ((!strcmp(argv[i], "--format_overwrite")) ||
|
} else if (!strcmp(argv[i], "--format_overwrite")) {
|
||||||
(!strcmp(argv[i], "--format"))) {
|
|
||||||
do_blank = 101;
|
do_blank = 101;
|
||||||
|
|
||||||
} else if (!strcmp(argv[i], "--multi")) {
|
} else if (!strcmp(argv[i], "--multi")) {
|
||||||
@ -668,7 +655,8 @@ int libburner_setup(int argc, char **argv)
|
|||||||
if (print_help || insuffient_parameters ) {
|
if (print_help || insuffient_parameters ) {
|
||||||
printf("Usage: %s\n", argv[0]);
|
printf("Usage: %s\n", argv[0]);
|
||||||
printf(" [--drive <address>|<driveno>|\"-\"] [--audio]\n");
|
printf(" [--drive <address>|<driveno>|\"-\"] [--audio]\n");
|
||||||
printf(" [--blank_fast|--blank_full|--format] [--try_to_simulate]\n");
|
printf(" [--blank_fast|--blank_full|--format_overwrite]\n");
|
||||||
|
printf(" [--try_to_simulate]\n");
|
||||||
printf(" [--multi] [<one or more imagefiles>|\"-\"]\n");
|
printf(" [--multi] [<one or more imagefiles>|\"-\"]\n");
|
||||||
printf("Examples\n");
|
printf("Examples\n");
|
||||||
printf("A bus scan (needs rw-permissions to see a drive):\n");
|
printf("A bus scan (needs rw-permissions to see a drive):\n");
|
||||||
@ -681,8 +669,8 @@ int libburner_setup(int argc, char **argv)
|
|||||||
printf(" %s --drive /dev/hdc --blank_fast\n",argv[0]);
|
printf(" %s --drive /dev/hdc --blank_fast\n",argv[0]);
|
||||||
printf("Blank a used DVD-RW (is combinable with burning in one run):\n");
|
printf("Blank a used DVD-RW (is combinable with burning in one run):\n");
|
||||||
printf(" %s --drive /dev/hdc --blank_full\n",argv[0]);
|
printf(" %s --drive /dev/hdc --blank_full\n",argv[0]);
|
||||||
printf("Format a DVD-RW, BD-RE or BD-R:\n");
|
printf("Format a DVD-RW to avoid need for blanking before re-use:\n");
|
||||||
printf(" %s --drive /dev/hdc --format\n", argv[0]);
|
printf(" %s --drive /dev/hdc --format_overwrite\n", argv[0]);
|
||||||
printf("Burn two audio tracks (to CD only):\n");
|
printf("Burn two audio tracks (to CD only):\n");
|
||||||
printf(" lame --decode -t /path/to/track1.mp3 track1.cd\n");
|
printf(" lame --decode -t /path/to/track1.mp3 track1.cd\n");
|
||||||
printf(" test/dewav /path/to/track2.wav -o track2.cd\n");
|
printf(" test/dewav /path/to/track2.wav -o track2.cd\n");
|
||||||
@ -732,7 +720,7 @@ int main(int argc, char **argv)
|
|||||||
{ ret = 0; goto release_drive; }
|
{ ret = 0; goto release_drive; }
|
||||||
if (do_blank) {
|
if (do_blank) {
|
||||||
if (do_blank > 100)
|
if (do_blank > 100)
|
||||||
ret = libburner_format(drive_list[driveno].drive);
|
ret = libburner_format_owrt(drive_list[driveno].drive);
|
||||||
else
|
else
|
||||||
ret = libburner_blank_disc(drive_list[driveno].drive,
|
ret = libburner_blank_disc(drive_list[driveno].drive,
|
||||||
do_blank == 1);
|
do_blank == 1);
|
||||||
|
Reference in New Issue
Block a user