Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vfs: correctly handle reading small files.
After the recent change to let vfs seek around in files, we broke support for files that were only one chunk. Fix it up, then add some unit tests to detect such mistakes in the future. Also, 'bup ftp' now returns nonzero if it catches any exceptions during execution, making it more suitable for use in scripts... such as the unit tests :) Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters