Download Manager: Provide a pre-warning if there is no enough disk space in the target location to complete an intended file download
Categories
(Firefox :: Downloads Panel, enhancement, P3)
Tracking
()
People
(Reporter: chamathmc, Unassigned)
References
Details
Updated•13 years ago
|
Updated•8 years ago
|
Comment 1•7 years ago
|
||
On some operating systems and filesystems, it's possible to reserve space for a file before actually writing to the file, so on those systems it would actually be possible to make this feature work reliably, insofar as it's possible for such a feature to be truly reliable.
The standard 'posix_fallocate' has (arguably) a drawback, in that it expands the "visible" size of the file as well as preallocating space. (In contrast, with the current implementation in Firefox, if a download is interrupted, it leaves a '.part' file which can later be resumed using 'wget -c' or similar. If Firefox used posix_fallocate to preallocate the entire file, it would be more difficult to resume partial downloads or to do anything useful with the incomplete file, and might also give users the false impression that the file was fully downloaded.)
Linux, however, provides a non-standard option ('fallocate' with 'FALLOC_FL_KEEP_SIZE') that would avoid this drawback. I don't know if any other systems have anything similar.
Updated•6 years ago
|
Updated•3 years ago
|
Description
•