#1 Burning Software

It is currently Thu Dec 19, 2024 2:05 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: deleting / updating files on DVD
PostPosted: Tue Jan 10, 2006 7:01 pm 
Offline

Joined: Thu Jan 05, 2006 3:23 pm
Posts: 33
Hello,

As part of my incremental DVD update strategy I would like to maintain an index file (index.xml) on the DVD to reflect some business data about the other files that are present.

Ideally I would be able to update this index.xml file by doing something like this:

* StarBurn_ISO9660JolietFileTree_ImportTrack() to pull the existing track, including existing index.xml.

* StarBurn_ISO9660JolietFileTree_GetFirstKid() / StarBurn_ISO9660JolietFileTree_GetNamesEx() / StarBurn_ISO9660JolietFileTree_GetNextKid() to search the imported tree and find the tree node represetning the old index.xml

* StarBurn_ISO9660JolietFileTree_Remove(old index tree node)

* StarBurn_ISO9660JolietFileTree_Add(new index file from hard drive)

...and procede to BuildImage and TrackAtOnceFromTree.

Can you tell me if this is feasible? Or in general perhaps once I write a certain-sized file out to a track it is not practical to delete that file and write out a new version to a different spot. I understand the DVD isn't a fully-flexible file system with fragmentation ability...just not sure how far the capability goes for the sort of update I want to do.

Thanks!
Chris


Top
 Profile  
 
 Post subject: Re: deleting / updating files on DVD
PostPosted: Wed Jan 11, 2006 9:54 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
This is really not required to have everything so complex. During adding the file with the same name (index.xml) you'll get collision callback. All you need is set collision action to NAME_COLLISION_REPLACE_OLD and you'll have NEW node with the same name in the final compilation. That's all :)

cyust wrote:
Hello,

As part of my incremental DVD update strategy I would like to maintain an index file (index.xml) on the DVD to reflect some business data about the other files that are present.

Ideally I would be able to update this index.xml file by doing something like this:

* StarBurn_ISO9660JolietFileTree_ImportTrack() to pull the existing track, including existing index.xml.

* StarBurn_ISO9660JolietFileTree_GetFirstKid() / StarBurn_ISO9660JolietFileTree_GetNamesEx() / StarBurn_ISO9660JolietFileTree_GetNextKid() to search the imported tree and find the tree node represetning the old index.xml

* StarBurn_ISO9660JolietFileTree_Remove(old index tree node)

* StarBurn_ISO9660JolietFileTree_Add(new index file from hard drive)

...and procede to BuildImage and TrackAtOnceFromTree.

Can you tell me if this is feasible? Or in general perhaps once I write a certain-sized file out to a track it is not practical to delete that file and write out a new version to a different spot. I understand the DVD isn't a fully-flexible file system with fragmentation ability...just not sure how far the capability goes for the sort of update I want to do.

Thanks!
Chris


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 44 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group