From mboxrd@z Thu Jan 1 00:00:00 1970 From: narteh@ece.rutgers.edu Date: Sat, 24 Jun 2000 21:59:48 +0000 Message-ID: <20000624215948.23352.qmail@ece.rutgers.edu> To: 9fans@cse.psu.edu Subject: [9fans] cdfs Topicbox-Message-UUID: c9790fe6-eac8-11e9-9e20-41e7f4b1d025 HI I've been able to burn a data CD, and was trying my hands at burning an audio CD. Burning itself went fine, but the step prior to that was a a bit botched. After running cdfs, there are several files served in /mnt/cd (axxx, ctl), but when copying them, cdfs does not end input on file boundaries. i.e., cp /mnt/cd/a000 /tmp/the_clash/ will copy all of track a000, a001 ... into one file in /tmp/the_clash. I fixed this to a certain degree with the following fix to /sys/src/cmd/cdfs/mmc.c: namaste% diff mmc.c mmc.c.orig 541,550d540 < /* Trunc nblock modulo size of track */ < if((off+nblock) > o->track->end) { < if ((nblock = o->track->end - off) == 0) { < werrstr("end of track (%ld->%ld)", o->track->beg, o->track->end); < if(vflag) < fprint(2, "end of track (%ld->%ld)", o->track->beg, o->track->end); < return -1; < } < } < 589c579 < //fprint(2, "nblock = %ld\n", nblock); --- > fprint(2, "nblock = %ld\n", nblock); namaste% The fix works real horrorshow. I just made an 'archival copy' of a cd with it. - pip