[openbeosstorage] Re: Progress Update

  • From: "Ingo Weinhold" <bonefish@xxxxxxxxxxxxxxx>
  • To: openbeosstorage@xxxxxxxxxxxxx
  • Date: Sat, 18 Jan 2003 23:12:03 CET (+0100)

> > > > How far along are the changes
> > > > you're working on, Ingo=3F
> > 
> > I have to admit that I was lazy last weekend. My little pet 
> > project, a
> > read-only ReiserFS add-on, I started (and also planned to finish) 
> > over
> > the holidays somehow began a life on its own.
> 
> Well, at least you've been able to accomplish something productive. 
> I've just been plain worthless of late. Meanwhile, Axel appears to 
> have 
> hired a small firm to augment his contributions. ;-)

Definitely. I couldn't even keep up reading his CVS update mails. :-)

> > Anyway, today and tomorrow I'll work on the Device API. I start
> > reviewing the latest mails an rolling in the changes, now. I'll be 
> > back with a mail in a few hours, I think.
> 
> (checking watch, which incidentally is still on 24 hour time; one 
> small 
> step for America... :)

Don't hold your breath though. Things tend to go a little slower than 
expected. :-(

> > > > Unless you have any better suggestions, I
> > > > guess I'll  start looking into what's still needed for the C++ 
> > > > API.
> > 
> > That's not a bad idea. I will do that too, but two pairs of eyes 
> > will
> > lower the risk of oversights. When you start with it before me, 
> > then
> > please drop a mail, that you do, and post a mail with the results, 
> > when you're done. Otherwise, I'll do that.
> 
> Will do.

Fine. :-)

BTW, have you tried the R5 Pro CD with your session module? It's the 
only multi-session CD I have at hand and unfortunately only its first 
session is reported. The first time I tested was after some changes, 
but none to the session module and none that could possibly have such a 
side effect (I hope at least ;-). Here's, what the test program prints, 
when debug output is enabled for disk_scanner (I added some more output 
to track the problem down) and the session module (and a fs/testfs 
module that does nothing). Of interest are perhaps only the last 10-15 
lines, but for sake of completeness... ;-)

device: `/dev/disk/ide/atapi/1/master/0/raw'
disk_scanner: std_ops(0x1)
disk_scanner: get_nth_session_info(3, 0)
disk_scanner:   check: No Error
disk_scanner: get_session_module(3, 642181120, 2048)
session/cdrom: std_ops(0x1)
disk_scanner:     check: No Error
session/cdrom: get_nth_info(3, 0, 642181120, 2048, 0xfd001890)
session/cdrom: read_table_of_contents: (3, 0xfd0008a8, 2048)
session/cdrom: table of contents dump:
--------------------------------------------------
header:
  length = 68
  first  = 1
  last   = 1

entry count = 6

entry #0:
  session  = 1
  adr      = 1
  control  = 0
  tno      = 0
  point    = 160 (0xa0)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 1
  pseconds = 0
  pframes  = 0
  lba      = 4350

entry #1:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 161 (0xa1)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 3
  pseconds = 0
  pframes  = 0
  lba      = 13350

entry #2:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 162 (0xa2)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 69
  pseconds = 42
  pframes  = 65
  lba      = 313565

entry #3:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 1 (0x01)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 0
  pseconds = 2
  pframes  = 0
  lba      = 0

entry #4:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 2 (0x02)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 9
  pseconds = 44
  pframes  = 47
  lba      = 43697

entry #5:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 3 (0x03)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 42
  pseconds = 49
  pframes  = 58
  lba      = 192583
--------------------------------------------------
session/cdrom: found session #1 info
disk_scanner:     check: No Error
disk_scanner:   check: No Error
session/cdrom: std_ops(0x2)
disk_scanner: get_nth_session_info() done: No Error
disk_scanner: std_ops(0x2)
session 0
  offset:     0
  size:       642181120
  block size: 2048
  index:      0
  flags:      1
disk_scanner: std_ops(0x1)
disk_scanner: get_nth_session_info(3, 0)
disk_scanner:   check: No Error
disk_scanner: get_session_module(3, 642181120, 2048)
session/cdrom: std_ops(0x1)
disk_scanner:     check: No Error
session/cdrom: get_nth_info(3, 0, 642181120, 2048, 0xfd001128)
session/cdrom: read_table_of_contents: (3, 0xfd000884, 2048)
session/cdrom: table of contents dump:
--------------------------------------------------
header:
  length = 68
  first  = 1
  last   = 1

entry count = 6

entry #0:
  session  = 1
  adr      = 1
  control  = 0
  tno      = 0
  point    = 160 (0xa0)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 1
  pseconds = 0
  pframes  = 0
  lba      = 4350

entry #1:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 161 (0xa1)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 3
  pseconds = 0
  pframes  = 0
  lba      = 13350

entry #2:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 162 (0xa2)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 69
  pseconds = 42
  pframes  = 65
  lba      = 313565

entry #3:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 1 (0x01)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 0
  pseconds = 2
  pframes  = 0
  lba      = 0

entry #4:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 2 (0x02)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 9
  pseconds = 44
  pframes  = 47
  lba      = 43697

entry #5:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 3 (0x03)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 42
  pseconds = 49
  pframes  = 58
  lba      = 192583
--------------------------------------------------
session/cdrom: found session #1 info
disk_scanner:     check: No Error
disk_scanner:   check: No Error
session/cdrom: std_ops(0x2)
disk_scanner: get_nth_session_info() done: No Error
disk_scanner: get_nth_partition_info(3, 0, 642181120, 2048, 0, 0)
disk_scanner: trying partition module: `disk_scanner/partition/intel/
v1'
disk_scanner: get_partition_fs_info(3, 0, 642181120, 2048)
disk_scanner: trying fs module: `disk_scanner/fs/bfs/v1'
disk_scanner: trying fs module: `disk_scanner/fs/iso9660/v1'
disk_scanner: trying fs module: `disk_scanner/fs/testfs/v1'
fs/testfs: std_ops(0x1)
fs/testfs: identify(3, 0xfcfffeac, offset: 0)
fs/testfs: std_ops(0x2)
disk_scanner: std_ops(0x2)
  partition 0_0
    offset:         0
    size:           642181120
    block size:     2048
    session ID:     0
    partition ID:   0
    device:         `'
    flags:          2
    partition code: 0xeb
    partition name: `'
    partition type: `'
    FS short name:  `iso9660'
    FS long name:   `iso9660 CD-ROM File System'
    volume name:    `BeOS_Tools'
    mounted at:     `'
disk_scanner: std_ops(0x1)
disk_scanner: get_nth_session_info(3, 0)
disk_scanner:   check: No Error
disk_scanner: get_session_module(3, 642181120, 2048)
session/cdrom: std_ops(0x1)
disk_scanner:     check: No Error
session/cdrom: get_nth_info(3, 0, 642181120, 2048, 0xfd001128)
session/cdrom: read_table_of_contents: (3, 0xfd000884, 2048)
session/cdrom: table of contents dump:
--------------------------------------------------
header:
  length = 68
  first  = 1
  last   = 1

entry count = 6

entry #0:
  session  = 1
  adr      = 1
  control  = 0
  tno      = 0
  point    = 160 (0xa0)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 1
  pseconds = 0
  pframes  = 0
  lba      = 4350

entry #1:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 161 (0xa1)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 3
  pseconds = 0
  pframes  = 0
  lba      = 13350

entry #2:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 162 (0xa2)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 69
  pseconds = 42
  pframes  = 65
  lba      = 313565

entry #3:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 1 (0x01)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 0
  pseconds = 2
  pframes  = 0
  lba      = 0

entry #4:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 2 (0x02)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 9
  pseconds = 44
  pframes  = 47
  lba      = 43697

entry #5:
  session  = 1
  adr      = 1
  control  = 4
  tno      = 0
  point    = 3 (0x03)
  minutes  = 0
  frames   = 0
  seconds  = 0
  zero     = 0
  pminutes = 42
  pseconds = 49
  pframes  = 58
  lba      = 192583
--------------------------------------------------
session/cdrom: found session #1 info
disk_scanner:     check: No Error
disk_scanner:   check: No Error
session/cdrom: std_ops(0x2)
disk_scanner: get_nth_session_info() done: No Error
disk_scanner: get_nth_partition_info(3, 0, 642181120, 2048, 0, 1)
disk_scanner: trying partition module: `disk_scanner/partition/intel/
v1'
disk_scanner: std_ops(0x2)
disk_scanner: std_ops(0x1)
disk_scanner: get_nth_session_info(3, 1)
disk_scanner:   check: No Error
disk_scanner: get_session_module(3, 642181120, 2048)
session/cdrom: std_ops(0x1)
disk_scanner:     check: No Error
session/cdrom: get_nth_info(3, 1, 642181120, 2048, 0xfd001890)
session/cdrom: read_table_of_contents: (3, 0xfd0008a8, 2048)
session/cdrom: scsi ioctl succeeded, but scsi command failed
session/cdrom: lba read_toc failed, trying msf instead
session/cdrom: read_table_of_contents: (3, 0xfd0008a8, 2048)
session/cdrom: scsi ioctl succeeded, but scsi command failed
session/cdrom: get_nth error 0x80006000
disk_scanner:     check: Bad file descriptor
disk_scanner:   check: Bad file descriptor
session/cdrom: std_ops(0x2)
disk_scanner: get_nth_session_info() done: Bad file descriptor
disk_scanner: std_ops(0x2)

CU, Ingo



Other related posts: