-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btrfs-progs: mkfs: refactor add_file_items
There were two major problems with the function add_file_items: it was writing all files sector-by-sector, making compression impossible, and it was assuming that pread would never do a short read. Fix these problems, and create a new helper function read_and_write_extent. Signed-off-by: Mark Harmstone <[email protected]>
- Loading branch information
1 parent
66f08f9
commit 8b6231b
Showing
1 changed file
with
82 additions
and
71 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