1 btrfs-inspect-internal(8)
2 =========================
6 btrfs-inspect-internal - query various internal information
10 *btrfs inspect-internal* <subcommand> <args>
15 This command group provides an interface to query internal information. The
16 functionality ranges from a simple UI to an ioctl or a more complex query that
17 assembles the result from several internal structures. The latter usually
18 requires calls to privileged ioctls.
22 *inode-resolve* [-v] <ino> <path>::
23 (needs root privileges)
25 resolve paths to all files with given inode number 'ino' in a given subvolume
26 at 'path', ie. all hardlinks
31 verbose mode, print count of returned paths and ioctl() return value
33 *logical-resolve* [-Pv] [-s <bufsize>] <logical> <path>::
34 (needs root privileges)
36 resolve paths to all files at given 'logical' address in the linear filesystem space
41 skip the path resolving and print the inodes instead
43 verbose mode, print count of returned paths and all ioctl() return values
45 set internal buffer for storing the file names to 'bufsize', default is 4096, maximum 64k
47 *min-dev-size* [options] <path>::
48 (needs root privileges)
50 return the minimum size the device can be shrunk to, without performing any
51 resize operation, this may be useful before executing the actual resize operation
56 specify the device 'id' to query, default is 1 if this option is not used
59 for a given file or directory, return the containing tree root id, for a
60 subvolume itself return it's own tree id (ie. subvol id)
62 NOTE: The result is undefined for the so-called empty subvolumes (identified by
63 inode number 2), but such subvolume does not contain any files anyway
65 *subvolid-resolve* <subvolid> <path>::
66 (needs root privileges)
68 resolve the absolute path of a the subvolume id 'subvolid'
72 *btrfs inspect-internal* returns a zero exit status if it succeeds. Non zero is
73 returned in case of failure.
77 *btrfs* is part of btrfs-progs.
78 Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for