btrfs-inspect-internal - query various internal information


   btrfs inspect-internal <subcommand> <args>


   This command group provides an interface to query internal information.
   The functionality ranges from a simple UI to an ioctl or a more complex
   query that assembles the result from several internal structures. The
   latter usually requires calls to privileged ioctls.


   dump-super [options] <device> [device...]
       (replaces the standalone tool btrfs-show-super)

       Show btrfs superblock information stored on given devices in
       textual form. By default the first superblock is printed, more
       details about all copies or additional backup data can be printed.

       Besides verifictaion of the filesystem signature, there are no
       other sanity checks. The superblock checksum status is reported,
       the device item and filesystem UUIDs are checked and reported.

           the meaning of option -s has changed in version 4.8 to be
           consistent with other tools to specify superblock copy rather
           the offset. The old way still works, but prints a warning.
           Please update your scripts to use --bytenr instead. The option
           -i has been deprecated.

           print full superblock information, including the system chunk
           array and backup roots

           print information about all present superblock copies (cannot
           be used together with -s option)

       -i <super>
           (deprecated since 4.8, same behaviour as --super)

       --bytenr <bytenr>
           specify offset to a superblock in a non-standard location at
           bytenr, useful for debugging (disables the -f option)

           If there are multiple options specified, only the last one

           attempt to print the superblock even if thre’s no valid BTRFS
           signature found, the result may be completely wrong if the data
           do not resemble a superblock

       -s|--super <bytenr>
           (see compatibility note above)

           specify which mirror to print, valid values are 0, 1 and 2 and
           the superblock must be present on the device with a valid
           signature, can be used together with --force

   dump-tree [options] <device>
       (replaces the standalone tool btrfs-debug-tree)

       Dump tree structures from a given device in textual form, expand
       keys to human readable equivalents where possible. This is useful
       for analyzing filesystem state or inconsistencies and has a
       positive educational effect on understanding the internal
       filesystem structure.

           contains file names, consider that if you’re asked to send the
           dump for analysis. Does not contain file data.

           print only extent-related information: extent and device trees

           print only device-related information: tree root, chunk and
           device trees

           print only short root node information, ie. the root tree keys

           same as --roots plus print backup root info, ie. the backup
           root keys and the respective tree root block offset

           print only the uuid tree information, empty output if the tree
           does not exist

       -b <block_num>
           print info of the specified block only

       -t <tree_id>
           print only the tree with the specified ID, where the ID can be
           numerical or common name in a flexible human readable form

           The tree id name recognition rules:

           ·   case does not matter

           ·   the C source definition, eg. BTRFS_ROOT_TREE_OBJECTID

           ·   short forms without BTRFS_ prefix, without _TREE and
               _OBJECTID suffix, eg. ROOT_TREE, ROOT

           ·   convenience aliases, eg. DEVICE for the DEV tree, CHECKSUM
               for CSUM

           ·   unrecognized ID is an error

   inode-resolve [-v] <ino> <path>
       (needs root privileges)

       resolve paths to all files with given inode number ino in a given
       subvolume at path, ie. all hardlinks


           verbose mode, print count of returned paths and ioctl() return

   logical-resolve [-Pv] [-s <bufsize>] <logical> <path>
       (needs root privileges)

       resolve paths to all files at given logical address in the linear
       filesystem space


           skip the path resolving and print the inodes instead

           verbose mode, print count of returned paths and all ioctl()
           return values

       -s <bufsize>
           set internal buffer for storing the file names to bufsize,
           default is 4096, maximum 64k

   min-dev-size [options] <path>
       (needs root privileges)

       return the minimum size the device can be shrunk to, without
       performing any resize operation, this may be useful before
       executing the actual resize operation


       --id <id>
           specify the device id to query, default is 1 if this option is
           not used

   rootid <path>
       for a given file or directory, return the containing tree root id,
       for a subvolume itself return it’s own tree id (ie. subvol id)

           The result is undefined for the so-called empty subvolumes
           (identified by inode number 2), but such subvolume does not
           contain any files anyway

   subvolid-resolve <subvolid> <path>
       (needs root privileges)

       resolve the absolute path of a the subvolume id subvolid

   tree-stats [options] <device>
       (needs root privileges)

       Print sizes and statistics of trees.


           Print raw numbers in bytes.


   btrfs inspect-internal returns a zero exit status if it succeeds. Non
   zero is returned in case of failure.


   btrfs is part of btrfs-progs. Please refer to the btrfs wiki for further details.



More Linux Commands

mimencode(1) - Translate to and from mail-oriented encoding
The mimencode program simply converts a byte stream into (or out of) one of the standard mail encoding formats defined by MIME, the proposed standard for intern

getutmpx(3) - copy utmp structure to utmpx, and vice versa
The getutmp() function copies the fields of the utmpx structure pointed to by ux to the corresponding fields of the utmp structure pointed to by u. The getutmpx

XML::DOM::XMLDecl(3pm) - XML declaration in XML::DOM........
XML::DOM::XMLDecl extends XML::DOM::Node, but is not part of the DOM Level 1 specification. It contains the XML declaration, e.g. &lt;?xml version=1.0 encoding=UTF

Tcl_Eof(3) - buffered I/O facilities using channels.........
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

msgexec(1) - process translations of message catalog........
Applies a command to all translations of a translation catalog. The COMMAND can be any program that reads a translation from standard input. It is invoked once

gnutls_db_set_cache_expiration(3) - API function (Man Page)
Set the expiration time for resumed sessions. The default is 3600 (one hour) at the time writing this. REPORTING BUGS Report bugs to &lt;;. GnuTL

gluTessEndPolygon(3gl) - delimit a polygon description......
gluTessEndPolygon.3gl - gluTessBeginPolygon and gluTessEndPolygon delimit the definition of a convex, concave or self-intersecting polygon. Within each gluTessB

Convert::TNEF(3pm) - (unknown subject) - Linux manual page
TNEF stands for Transport Neutral Encapsulation Format, and if youve ever been unfortunate enough to receive one of these files as an email attachment, you may

gnutls_x509_privkey_sign_data(3) - API function (Man Page)
gnutls_x509_privkey_sign_data.3 - This function will sign the given data using a signature algorithm supported by the private key. Signature algorithms are alwa

Tcl_CancelIdleCall(3) - invoke a procedure when there are no
Tcl_DoWhenIdle arranges for proc to be invoked when the application becomes idle. The application is considered to be idle when Tcl_DoOneEvent has been called,

register_app_prenetsnmp_mib_handler(3) - netsnmp_config_api
The functions are a fairly extensible system of parsing various configuration files at the run time of an application. The configuration file flow is broken int

jjs-java-1.8.0-openjdk(1) Invokes the Nashorn engine........
The jjs command-line tool is used to invoke the Nashorn engine. You can use it to interpret one or several script files, or to run an interactive shell. OPTIONS

We can't live, work or learn in freedom unless the software we use is free.