From 0ce559932bde9c185de40df67a8cacf138937aca Mon Sep 17 00:00:00 2001 From: Vinh Quang Tran Date: Sun, 24 Oct 2021 01:24:55 +0700 Subject: [PATCH] btrfs-inspect-internal: add page (#6975) --- pages/linux/btrfs-inspect-internal.md | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/linux/btrfs-inspect-internal.md diff --git a/pages/linux/btrfs-inspect-internal.md b/pages/linux/btrfs-inspect-internal.md new file mode 100644 index 0000000000..0fe07f2bba --- /dev/null +++ b/pages/linux/btrfs-inspect-internal.md @@ -0,0 +1,28 @@ +# btrfs inspect-internal + +> Query internal information of a btrfs filesystem. +> More information: . + +- Print superblock's information: + +`sudo btrfs inspect-internal dump-super {{path/to/partition}}` + +- Print superblock's and all of its copies' information: + +`sudo btrfs inspect-internal dump-super --all {{path/to/partition}}` + +- Print filesystem's metadata information: + +`sudo btrfs inspect-internal dump-tree {{path/to/partition}}` + +- Print list of files in inode `n`-th: + +`sudo btrfs inspect-internal inode-resolve {{n}} {{path/to/btrfs_mount}}` + +- Print list of files at a given logical address: + +`sudo btrfs inspect-internal logical-resolve {{logical_address}} {{path/to/btrfs_mount}}` + +- Print stats of root, extent, csum and fs trees: + +`sudo btrfs inspect-internal tree-stats {{path/to/partition}}`