[Bastian Blank 2014-04-06]
> Not possible.  This DVD is shorter then the filesystem specifies.  And
> the tool exits when it gets an EOF.

Right.  My idea was that this was simply a missing progress bar update or
a rounding error, but looking at the code it does indeed look like the
last block is simply missing and not copied.

I find the progress bare update in /usr/bin/dvdvideo-backup-image:

    progress = ProgressMeter(stream, image_length // 512)
    [...]
    for part in parts_complete:
        logging.debug('part: %r', part)

        for r in part.dump(media):
            count_real = len(r) // 2048
            progress.update(count_real // 512)
            cur += count_real
            image.write(r)

        logging.debug('part end, written %d', cur)

The only way this could fail to move to 100% seen to be that the
dump(media) call simply do not return enough bytes to fill
image_length bytes.

But I believe I have never seen a DVD ending up on 100%.  Perhaps this
is the way the DVD specification require DVDs to be set up?

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to