home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / cdrom / 5281 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  4.0 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!tools!jk
  2. From: jk@tools.de (Juergen Keil)
  3. Newsgroups: alt.cd-rom
  4. Subject: Re: multi-session Photo CDs (was Re: Reading CD-I)
  5. Date: 21 Dec 92 21:19:57
  6. Organization: TooLs GmbH, Bonn, Germany
  7. Lines: 69
  8. Message-ID: <JK.92Dec21211957@leo.tools.de>
  9. References: <1992Dec16.075227.302@mble.philips.be> <1992Dec17.085006.1436@ica.philips.nl>
  10.     <JK.92Dec17202429@leo.tools.de> <1992Dec21.104904.1693@ica.philips.nl>
  11. NNTP-Posting-Host: leo.tools.de
  12. In-reply-to: adrie@ica.philips.nl's message of Mon, 21 Dec 1992 10:49:04 GMT
  13.  
  14. In article <1992Dec21.104904.1693@ica.philips.nl> adrie@ica.philips.nl
  15. (Adrie Koolen) writes:
  16.  
  17. > In article <JK.92Dec17202429@leo.tools.de> jk@tools.de (Juergen Keil) writes:
  18. > >But things get really interesting with a real 2 session Photo-CD I've
  19. > >got: Here you have an updated ISO 9660 filesystem starting on track 3
  20. > >pointing to pictures in track 2 and track 4 (overwriting the ISO 9660
  21. > >filesystem in track 1 which (obviously) has only pointers to the
  22. > >pictures from the first session).
  23. > How are the blocks numbered? Normally, in an ISO9660 fs, the first block
  24. > is block 150 in the track. If files are stored in previous track, one
  25.        ^^^
  26. This block has the address 0min 2sec frame#0; normally it is the first
  27. user accessible block on a CD (e.g. all SCSI cd-rom drive I know address
  28. this block with a logical block address of 0).  This block is logical
  29. sector# 0 in an ISO9660 fs.
  30.  
  31. > should use negative numbers, or what? Or do they use absolute block
  32. > numbers, in stead of track relative numbers?
  33.  
  34. Absolute block numbers.  If you have a session starting at min M, sec S,
  35. frame# F (which is the ISO9660 block# x = (M*60+S)*75+F - 150, assuming
  36. 2KByte ISO9660 logical sector size), you have ISO9660 volume descriptor
  37. blocks starting at block# x+16.
  38.  
  39. > >I'm surpised that I havn't seen someone complaining that he still can
  40. > >only access the first session of a multi-session Photo-CD on his brand
  41. > >new multi-session drive, because the OSs ISO 9660 filesystem code is
  42. > >unaware of the updated directory structure of the disc!
  43. > I suspect that the multi-session MSCDEX low-level device driver recognizes
  44. > a multi-session CD and presents only the last fs to MSCDEX.
  45.  
  46. Perhaps the ISO9660 filesystem code (MSCDEX?) should ask the device driver
  47. for a 'last session offset' and use this offset for reading the volume
  48. descriptor from the cd.  The Toshiba XM-3301BC drives have a vendor unique
  49. command READ DISC INFORMATION which returns a 'last session offset'. For the
  50. multisession disc I mentionen in my previous posting the drive returns
  51.  
  52.     Vendor   : TOSHIBA 
  53.     Product  : CD-ROM XM-3301TA
  54.     Revision : 2162
  55.     first track : 1
  56.     last track : 4
  57.     track  1 starts at  0 min,  2 sec, frame#  0
  58.             adr = 1, control = 4, data track, digital copy prohibited
  59.     track  2 starts at  0 min,  9 sec, frame# 65
  60.             adr = 1, control = 4, data track, digital copy prohibited
  61.     track  3 starts at  3 min, 16 sec, frame# 35
  62.             adr = 1, control = 4, data track, digital copy prohibited
  63.     track  4 starts at  3 min, 22 sec, frame# 37
  64.             adr = 1, control = 4, data track, digital copy prohibited
  65.     lead out track at  3 min, 49 sec, frame#  8
  66.     CD-ROM/XA disc
  67.     last session at min 03, sec 22, frame# 53
  68.     
  69. Unfortunatelly the 'last session' information that the drive returns is
  70. rather useless, since it simply points 16 sectors into the last track (track
  71. 4) which only contains the pictures recorded in the second session!  (The
  72. last (photo recording) session starts with track 3 and I would expect a
  73. 'last session' information like 3 min, 16 sec, frame# 41, which would be a
  74. useful pointer to the last session; this is either a bug in the Toshiba's
  75. firmware or the photo goofed things up).  My multisession ISO9660 file
  76. system code ended up with reading the disc's table of contents and scaning
  77. each data track at beginning_of_track+16 if there is a ISO9660 volume
  78. descriptor present on that track to find out the latest ISO9660 fs.
  79. --
  80. Juergen Keil          jk@tools.de ...!{uunet,mcsun}!unido!tools!jk
  81.