I was wondering if it was possible to rewrite a part of dvd-handler to
use dvd+rw-mediainfo instead of growisofs to grab the freespace on a DVD
media.
That is, because I didn't find a patch for dvd+rw-tools 7.0 (which I
have installed), and also, if we can use dvd+rw-mediainfo, we would need
no patch!
Is the information here good to extract the 'appendableness' and
free-space of a DVD medium ?
Also, mediainfo is called already by dvd-handler (although perhaps not
at the same moment ?)
thanks
Alexandre Bourget
dvd+rw-mediainfo outputs follow
####
#### That's the output I get on a full disk (with DVD video on it):
####
INQUIRY: [TSSTcorp][CD/DVDW SH-S162L][LC02]
GET [CURRENT] CONFIGURATION:
Mounted Media: 11h, DVD-R Sequential
Media ID: MCC 03RG20
Current Write Speed: 16.0x1385=22160KB/s
Write Speed #0: 16.0x1385=22160KB/s
Write Speed #1: 12.0x1385=16620KB/s
Write Speed #2: 8.0x1385=11080KB/s
Write Speed #3: 4.0x1385=5540KB/s
GET [CURRENT] PERFORMANCE:
Write Performance: 16.0x1385=22160KB/s < at > [0 -> 2298496]
Speed Descriptor#0: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 16.0x1385=22160KB/s
Speed Descriptor#1: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 12.0x1385=16620KB/s
Speed Descriptor#2: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 8.0x1385=11080KB/s
Speed Descriptor#3: 00/2297887 R < at > 12.0x1385=16620KB/s
W < at > 4.0x1385=5540KB/s
READ DVD STRUCTURE[#10h]:
Media Book Type: 00h, DVD-ROM book [revision 0]
Legacy lead-out at: 2298496*2KB=4707319808
READ DVD STRUCTURE[#0h]:
Media Book Type: 25h, DVD-R book [revision 5]
Last border-out at: 2045*2KB=4188160
READ DISC INFORMATION:
Disc status: complete
Number of Sessions: 1
State of Last Session: complete
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: complete incremental
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 1398048*2KB
Last Recorded Address: 1398047*2KB
FABRICATED TOC:
Track#1 : 14 < at > 0
Track#AA : 17 < at > 1398048
Multi-session Info: #1 < at > 0
READ CAPACITY: 1398048*2048=2863202304
####
#### On a blank disk
####
INQUIRY: [TSSTcorp][CD/DVDW SH-S162L][LC02]
GET [CURRENT] CONFIGURATION:
Mounted Media: 11h, DVD-R Sequential
Media ID: MCC 03RG20
Current Write Speed: 16.0x1385=22160KB/s
Write Speed #0: 16.0x1385=22160KB/s
Write Speed #1: 12.0x1385=16620KB/s
Write Speed #2: 8.0x1385=11080KB/s
Write Speed #3: 4.0x1385=5540KB/s
GET [CURRENT] PERFORMANCE:
Write Performance: 16.0x1385=22160KB/s < at > [0 -> 2298496]
Speed Descriptor#0: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 16.0x1385=22160KB/s
Speed Descriptor#1: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 12.0x1385=16620KB/s
Speed Descriptor#2: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 8.0x1385=11080KB/s
Speed Descriptor#3: 00/2297887 R < at > 12.0x1385=16620KB/s
W < at > 4.0x1385=5540KB/s
READ DVD STRUCTURE[#10h]:
Media Book Type: 00h, DVD-ROM book [revision 0]
Legacy lead-out at: 2298496*2KB=4707319808
READ DVD STRUCTURE[#0h]:
Media Book Type: 25h, DVD-R book [revision 5]
Last border-out at: 2045*2KB=4188160
READ DISC INFORMATION:
Disc status: blank
Number of Sessions: 1
State of Last Session: empty
"Next" Track: 1
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: blank
Track Start Address: 0*2KB
Next Writable Address: 0*2KB
Free Blocks: 2298496*2KB
Track Size: 2298496*2KB
READ CAPACITY: 0*2048=0
####
#### Output of an already Bacula-written disk:
####
INQUIRY: [TSSTcorp][CD/DVDW TS-H552U][US03]
GET [CURRENT] CONFIGURATION:
Mounted Media: 11h, DVD-R Sequential
Media ID: PRINCO8X02
Current Write Speed: 8.0x1385=11080KB/s
Write Speed #0: 8.0x1385=11080KB/s
Write Speed #1: 6.0x1385=8310KB/s
Write Speed #2: 4.0x1385=5540KB/s
Write Speed #3: 2.0x1385=2770KB/s
Speed Descriptor#0: 08/2297887 R < at > 8.0x1385=11080KB/s
W < at > 8.0x1385=11080KB/s
Speed Descriptor#1: 08/2297887 R < at > 8.0x1385=11080KB/s
W < at > 6.0x1385=8310KB/s
Speed Descriptor#2: 00/2297887 R < at > 8.0x1385=11080KB/s
W < at > 4.0x1385=5540KB/s
Speed Descriptor#3: 00/2297887 R < at > 8.0x1385=11080KB/s
W < at > 2.0x1385=2770KB/s
READ DVD STRUCTURE[#10h]:
Media Book Type: 25h, DVD-R book [revision 5]
Legacy lead-out at: 2298496*2KB=4707319808
READ DVD STRUCTURE[#0h]:
Media Book Type: 25h, DVD-R book [revision 5]
Last border-out at: 2176176*2KB=4456808448
READ DISC INFORMATION:
Disc status: appendable
Number of Sessions: 7
State of Last Session: empty
"Next" Track: 7
Number of Tracks: 7
READ TRACK INFORMATION[#1]:
Track State: complete incremental
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 65264*2KB
Last Recorded Address: 175*2KB
READ TRACK INFORMATION[#2]:
Track State: complete incremental
Track Start Address: 93952*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 503727*2KB
READ TRACK INFORMATION[#3]:
Track State: complete incremental
Track Start Address: 509888*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 919663*2KB
READ TRACK INFORMATION[#4]:
Track State: complete incremental
Track Start Address: 927360*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 1337135*2KB
READ TRACK INFORMATION[#5]:
Track State: complete incremental
Track Start Address: 1346880*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 1756655*2KB
READ TRACK INFORMATION[#6]:
Track State: complete incremental
Track Start Address: 1766400*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 2176175*2KB
READ TRACK INFORMATION[#7]:
Track State: invisible incremental
Track Start Address: 2185920*2KB
Next Writable Address: 2185920*2KB
Free Blocks: 111968*2KB
Track Size: 111968*2KB
READ CAPACITY: 2176176*2048=4456808448
