2014-04-02 08:29:20 +00:00
|
|
|
btrfs-inspect-internal(8)
|
|
|
|
=========================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
btrfs-inspect-internal - resolve different btrfs items for debug purpose
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2014-05-19 15:49:35 +00:00
|
|
|
*btrfs inspect-internal* <subcommand> <args>
|
2014-04-02 08:29:20 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2014-05-19 15:49:35 +00:00
|
|
|
*btrfs inspect-internal* is used to resolve different items for debug purpose.
|
2014-04-02 08:29:20 +00:00
|
|
|
|
|
|
|
SUBCOMMAND
|
|
|
|
----------
|
2014-05-19 15:49:35 +00:00
|
|
|
*inode-resolve* [-v] <inode> <path>::
|
2014-04-02 08:29:20 +00:00
|
|
|
Resolves an <inode> in subvolume <path> to all filesystem paths.
|
|
|
|
+
|
|
|
|
`Options`
|
|
|
|
+
|
|
|
|
-v::::
|
|
|
|
verbose mode. print count of returned paths and ioctl() return value
|
|
|
|
|
2014-05-19 15:49:35 +00:00
|
|
|
*logical-resolve* [-Pv] [-s <bufsize>] <logical> <path>::
|
2014-04-02 08:29:20 +00:00
|
|
|
Resolves a <logical> address in the filesystem mounted at <path> to all inodes.
|
|
|
|
+
|
|
|
|
By default, each inode is then resolved to a file system path (similar to the
|
|
|
|
inode-resolve subcommand).
|
|
|
|
+
|
|
|
|
`Options`
|
|
|
|
+
|
|
|
|
-P::::
|
|
|
|
skip the path resolving and print the inodes instead
|
|
|
|
-v::::
|
|
|
|
verbose mode. print count of returned paths and all ioctl() return values
|
|
|
|
-s <bufsize>::::
|
|
|
|
set inode container's size.
|
|
|
|
+
|
|
|
|
This is used to increase inode container's size in case it is
|
|
|
|
not enough to read all the resolved results. The max value one can set is 64k.
|
|
|
|
|
2014-05-19 15:49:35 +00:00
|
|
|
*subvolid-resolve* <subvolid> <path>::
|
2014-04-02 08:29:20 +00:00
|
|
|
Get file system paths for the given subvolume ID.
|
|
|
|
|
2014-05-19 15:49:35 +00:00
|
|
|
*rootid* <path>::
|
2014-04-02 08:29:20 +00:00
|
|
|
For a given file or directory, return the containing tree root id. For a
|
|
|
|
subvolume return it's own tree id.
|
|
|
|
+
|
|
|
|
The result is undefined for the so-called empty subvolumes (identified by inode number 2).
|
|
|
|
|
|
|
|
EXIT STATUS
|
|
|
|
-----------
|
2014-05-19 15:49:35 +00:00
|
|
|
*btrfs inspect-internal* returns a zero exist status if it succeeds. Non zero is
|
2014-04-02 08:29:20 +00:00
|
|
|
returned in case of failure.
|
|
|
|
|
|
|
|
AVAILABILITY
|
|
|
|
------------
|
2014-05-19 16:04:26 +00:00
|
|
|
*btrfs* is part of btrfs-progs.
|
2014-04-02 08:29:20 +00:00
|
|
|
Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for
|
|
|
|
further details.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
`mkfs.btrfs`(8),
|
|
|
|
`btrfs-debug-tree`(8)
|