Comment 2 for bug 676325

Revision history for this message
Mike Birch (mike-immortalsofar) wrote : Re: Missing data files lose track of what's been downloaded.

Great! Can I add a little addition, still on the theme of dynamic file systems?

If, during a download, the destination device is removed or dropped then the download continues unaware. It can claim to have downloaded the entire file and it is only when the device is remounted and local data verified that the problems come to light.

Reproduction steps:
Start download to a removable device.
Remove device.
(Download continues without successfully saving to the device).
Reconnect device.
Verify local data.
(The percentage downloaded gets reduced until the actual saved data is reached - this part is correct).

Expected:
Check the return value when writing data. When a write (perhaps with retries) fails, the destination file should be marked temporarily unavailable or, at worst, the torrent paused.