Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# btrfs inspect-internal
> Query internal information of a btrfs filesystem.
> More information: <https://btrfs.readthedocs.io/en/latest/btrfs-inspect-internal.html>.
- 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}}`