9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] cdfs(4) multi-track DVDs
Date: Sat, 23 May 2009 08:09:02 -0400	[thread overview]
Message-ID: <78c05560c45ec5a33271d1dcff7c9d75@quanstro.net> (raw)
In-Reply-To: <509071940905221724q271f9806s9fd79795fd10247f@mail.gmail.com>

> cdfs(4) contains a paragraph in BUGS that reads:
>           Closing a just-written DVD-R track can take minutes while
>           the drive burns the unused part of the track reservation
>           (for the whole disc).  Thus only a single DVD-R track can be
>           written on a DVD-R disc; use other media if you need more
>           than one track per disc.
> i know the array of media is confusing, but should i read this to imply that
> DVD+R media are expected to support multi-track writes?

yes.

>  i just did something more or less like:
> 	for (i in 0 1 2 3 4 5 6 7)
> 		{venti/rdarena /dev/fs/arenas arenas0.$i > /mnt/cd/wd/$i}
> the results were not what i had expected: i got d000, which looked
> correct, and d001 which, upon cursory examination, looked like the
> concatenation of arenas 1-7. am i just SOL with multi-track DVDs?

with a dvd+r, this appears to work for me
	; cp /sys/src/9/pc/sdiahci.c /mnt/cd/wd
	; cp /sys/src/9/pc/sdorion.c /mnt/cd/wd
	; lc /mnt/cd
	ctl	d000	d001	wd

except a disk in this condition confuses cdfs

	; echo eject >/mnt/cd/ctl
	; echo ingest>/mnt/cd/ctl
	; lc /mnt/cd/
	ctl	wa	wd

that's definately wrong.  but after restarting cdfs
i get
	; lc /mnt/cd
	ctl	d000	d001	wd

and adding tracks works, too.
	; cp /sys/src/9/pc/sdata.c /mnt/cd/wd
	; lc /mnt/cd
	ctl	d000	d001	d002	wd

scuzz shows what's happening.  note that there's no way to
close the session so all the tracks appear in the first session.

	rdiscinfo
		data length: 0x20
		info[2] 0x05
			Incomplete disc (Appendable)
			Incomplete Session
		Number of First Track on Disc 1
		Number of Sessions 1
		First Track Number in Last Session 1
		Last Track Number in Last Session 4
		info[7] 0x00
		info[8] 0x00
			CD-DA or CD-ROM Disc
		Last Session lead-in Start Time M/S/F: 0xFF/0xFC/0x00
		Last Possible Start Time for Start of lead-out M/S/F: 0x23/0x05/0x40


- erik



      reply	other threads:[~2009-05-23 12:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-23  0:24 Anthony Sorace
2009-05-23 12:09 ` erik quanstrom [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=78c05560c45ec5a33271d1dcff7c9d75@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).