-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
computeblocklists: add support for FIEMAP ioctl
The FIBMAP ioctl is deprecated and will do strange things under certain circumstances (like with unwritten extents). It's also not supported at all by btrfs. This commit adds support for the FIEMAP ioctl and handles the flag to identify unwritten extents (to be treated as holes) and other flags that mean the file range can't be translated to a usable block range. The FIEMAP ioctl is much more efficient in the kernel, so we use that by default now.
- Loading branch information
1 parent
a5ed3ee
commit 8c90847
Showing
1 changed file
with
124 additions
and
32 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