packet sector/block location?
Is there any prog for viewing udf info of a cd to verify block locations of files written using packet writing software similar to that of isoinfo used on an iso9660 iso image? You can stop reading here if you want, but if you are curious, the reasoning behind my query is for testing purposes for my quest described below... Thanks, Jeff ------ I want to packet write files to a DVD-RW disc in a specific physical order. It's important that the first file on the disc is FILE_1 however, I can't write FILE_1 until files 2-X have been written. The DVD drive will seek FILE_1 and from it get the information on which sectors the other files start and end. The trickiness occurs because I want to write the files to disc while being created but the files required at the beginning of the disc will be the last ones written because they are dependent upon the files written first. In a perfect world, the data on my disc would be physically seen on the disc in the following order... FILE_1 FILE_2 FILE_3 FILE_4 ... However the order the files are created is... FILE_2 FILE_3 FILE_4 ... FILE_1 If an image is made with mkisofs with the files in the correct order, using isoinfo the image should appear similar to this... bash-2.05b# isoinfo -i dvd.iso -l Directory listing of / d--------- 0 0 0 2048 Jun 16 2004 [ 275] . d--------- 0 0 0 2048 Jun 16 2004 [ 275] .. d--------- 0 0 0 2048 Jun 16 2004 [ 277] DIR_1 d--------- 0 0 0 2048 Jun 16 2004 [ 276] DIR_2 Directory listing of /DIR_1/ d--------- 0 0 0 2048 Jun 16 2004 [ 277] . d--------- 0 0 0 2048 Jun 16 2004 [ 275] .. Directory listing of /DIR_2/ d--------- 0 0 0 2048 Jun 16 2004 [ 276] . d--------- 0 0 0 2048 Jun 16 2004 [ 275] .. ---------- 0 0 0 12288 Jun 16 2004 [ 300] FILE_3;1 ---------- 0 0 0 12288 Jun 16 2004 [ 278] FILE_1;1 ---------- 0 0 0 32768 Jun 16 2004 [ 284] FILE_2;1 ---------- 0 0 0 12288 Jun 16 2004 [ 9828] FILE_6;1 ---------- 0 0 0 12288 Jun 16 2004 [ 306] FILE_4;1 ---------- 0 0 0 19488768 Jun 16 2004 [ 312] FILE_5;1 The numbers between the brackets tells us the start sector of each file. FILE_1 must have the lowest sector number of all files! I believe this strategy of using packet writing is best because as I understand generation of udf superblock and directory stucture will be handled by the packet writing and all that will need to be done (I hope) would be to allow files to have a desired destination on the disc fulfilling the reserved space requirement for the files generated later on which go first. Thus, once files FILE_2 through FILE_X have finished writing, the only thing left to be written is FILE_1 and lead-out. The only alternative I can think of would be to burn files FILE_2 through FILE_X to disc, note their locations, create FILE_1 based on the other files on the disc, write FILE_1 in the reserved space on the disk in front of all the other files, and finally generate the UDF superblock and file structure data and write that in the space reserved before everything else already written. This sounds too complicated due to all the calculations needed to be made based on stored info gathered based on prior written data. This approach as would require not only FILE_1 and lead-out to be written after the other files finished writing, but also the UDF data would be left to write. This is not favorable because I'd like the disc to be ready to take out of the dvd-rw drive asap. _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
participants (1)
-
Jeff Lia