-
Notifications
You must be signed in to change notification settings - Fork 33
Description
After a burn is interrupted by a power outage or wobbly USB contact, the table of contents of the file system lists files that do not exist on the disc. Additionally, it lists one file that is incomplete if it was being written at the time of the interruption.
Therefore, creating a new table of content in a new session with the non-existent files removed becomes necessary after a failed burn.
After multisessioning is implemented in udftools
, please add a tool like udf-toc-cleanup --sector=123456
which generates a new table of content with all files from after the specified sector removed, 123456 in this case. This is necessary because those files were never written to disc, so the references to them in the UDF table of contents are invalid.
On Blu-ray, unwritten sectors don't return an "out of range" I/O error but null-bytes, so specifying the last sector at which the last file has been written becomes necessary, or it can be guessed from the "next writable sector" paramter (which can be seen in dvd+rw-mediainfo
, which also works on Blu-ray but not CD).
Of course, the tool should consider that the last file was not written completely, so it should also be removed from the new table of contents.