- checkBtrfs
bool checkBtrfs()
Undocumented in source. Be warned that the author may not have intended to support it.
- cloneRange
void cloneRange(int srcFile, ulong srcOffset, int dstFile, ulong dstOffset, ulong length)
- enumerateChunks
void enumerateChunks(int fd, void delegate(u64 offset, const ref btrfs_chunk chunk) callback)
Enumerate all chunks in the filesystem.
- findRootBackRef
void findRootBackRef(int fd, __u64 rootID, void delegate(__u64 parentRootID, __u64 dirID, __u64 sequence, char[] name) callback)
Find a root's parent root, and where it is within it
- getSubvolumeID
u64 getSubvolumeID(int fd)
Returns the subvolume ID containing the file open in fd.
- inoLookup
void inoLookup(int fd, u64 treeID, u64 objectID, void delegate(char[] fn) callback)
Obtains the relative path of a given filesystem object for the given filesystem root.
- inoPaths
void inoPaths(int fd, u64 inode, void delegate(char[] fn) callback)
Obtain all paths for an inode.
- isBTRFS
bool isBTRFS(int fd)
Returns true is fd is on a btrfs filesystem.
- isSubvolume
bool isSubvolume(int fd)
Returns true is fd is the root of a btrfs subvolume.
- logicalIno
void logicalIno(int fd, u64 logical, void delegate(u64 inode, u64 offset, u64 root) callback, bool ignoreOffset, ubyte[] buf)
Get inode at this logical offset
- sameExtent
SameExtentResult sameExtent(Extent[] extents, ulong length)
Undocumented in source. Be warned that the author may not have intended to support it.
- treeSearch
void treeSearch(int fd, __u64 treeID, __u64[2] objectIDs, __u8[2] types, __u64[2] offsets, __u64[2] transIDs, void delegate(const ref btrfs_ioctl_search_header header, const void[] data) callback)
- treeSearch
void treeSearch(int fd, __u64 treeID, __u64[2] objectIDs, __u64[2] offsets, __u64[2] transIDs, void delegate(const ref btrfs_ioctl_search_header header, const ref Type data) callback)