2021-11-30 15:00:48 +00:00
|
|
|
Custom ioctls
|
|
|
|
=============
|
|
|
|
|
2021-12-17 09:49:39 +00:00
|
|
|
Filesystems are usually extended by custom ioctls beyond the standard system
|
|
|
|
call interface to let user applications access the advanced features. They're
|
|
|
|
low level and the following list gives only an overview of the capabilities or
|
|
|
|
a command if available:
|
2021-11-30 15:00:48 +00:00
|
|
|
|
2021-12-17 09:49:39 +00:00
|
|
|
- reverse lookup, from file offset to inode, ``btrfs inspect-internal
|
|
|
|
logical-resolve``
|
2021-11-30 15:00:48 +00:00
|
|
|
|
2021-12-17 09:49:39 +00:00
|
|
|
- resolve inode number to list of name, ``btrfs inspect-internal inode-resolve``
|
2021-11-30 15:00:48 +00:00
|
|
|
|
2021-12-17 09:49:39 +00:00
|
|
|
- tree search, given a key range and tree id, lookup and return all b-tree items
|
|
|
|
found in that range, basically all metadata at your hand but you need to know
|
|
|
|
what to do with them
|
2021-11-30 15:00:48 +00:00
|
|
|
|
2021-12-17 09:49:39 +00:00
|
|
|
- informative, about devices, space allocation or the whole filesystem, many of
|
|
|
|
which is also exported in ``/sys/fs/btrfs``
|
2021-11-30 15:00:48 +00:00
|
|
|
|
2021-12-17 09:49:39 +00:00
|
|
|
- query/set a subset of features on a mounted filesystem
|