mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-22 12:56:49 +00:00
btrfs-progs: update docs and completion for inspect-internal dump-tree
Signed-off-by: Alexander Fougner <fougner89@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
fcd480a4d0
commit
a7dae09ae2
@ -25,8 +25,15 @@ Print detailed extents info.
|
||||
Print info of btrfs device and root tree dirs only.
|
||||
-r::
|
||||
Print info of roots only.
|
||||
-R::
|
||||
Print info of roots and root backups.
|
||||
-u::
|
||||
Print info of UUID tree only.
|
||||
-b <block_num>::
|
||||
Print info of the specified block only.
|
||||
-t <tree_id>::
|
||||
Print only the tree with the specified ID.
|
||||
|
||||
|
||||
EXIT STATUS
|
||||
-----------
|
||||
|
@ -19,6 +19,31 @@ requires calls to privileged ioctls.
|
||||
|
||||
SUBCOMMAND
|
||||
----------
|
||||
*dump-tree* [options] <device>::
|
||||
(needs root privileges)
|
||||
+
|
||||
Dump the whole tree of the given device.
|
||||
This is useful for analyzing filesystem state or inconsistence and has
|
||||
a positive educational effect on understanding the internal structure.
|
||||
<device> is the device file where the filesystem is stored.
|
||||
+
|
||||
`Options`
|
||||
+
|
||||
-e::::
|
||||
Print detailed extents info.
|
||||
-d::::
|
||||
Print info of btrfs device and root tree dirs only.
|
||||
-r::::
|
||||
Print info of roots only.
|
||||
-R::::
|
||||
Print info of roots and root backups.
|
||||
-u::::
|
||||
Print info of UUID tree only.
|
||||
-b <block_num>::::
|
||||
Print info of the specified block only.
|
||||
-t <tree_id>::::
|
||||
Print only the tree with the specified ID.
|
||||
|
||||
*inode-resolve* [-v] <ino> <path>::
|
||||
(needs root privileges)
|
||||
+
|
||||
|
@ -20,13 +20,13 @@ _btrfs_mnts()
|
||||
COMPREPLY+=( $( compgen -W "$MNTS" -- "$cur" ) )
|
||||
}
|
||||
|
||||
_btrfs()
|
||||
_btrfs()
|
||||
{
|
||||
local cur prev words cword
|
||||
_init_completion || return
|
||||
|
||||
COMPREPLY=()
|
||||
|
||||
|
||||
local cmd=${words[1]}
|
||||
|
||||
commands='subvolume filesystem balance device scrub check rescue restore inspect-internal property send receive quota qgroup replace help version'
|
||||
@ -36,7 +36,7 @@ _btrfs()
|
||||
commands_device='scan add delete remove ready stats usage'
|
||||
commands_scrub='start cancel resume status'
|
||||
commands_rescue='chunk-recover super-recover'
|
||||
commands_inspect_internal='inode-resolve logical-resolve subvolid-resolve rootid min-dev-size'
|
||||
commands_inspect_internal='inode-resolve logical-resolve subvolid-resolve rootid min-dev-size dump-tree'
|
||||
commands_property='get set list'
|
||||
commands_quota='enable disable rescan'
|
||||
commands_qgroup='assign remove create destroy show limit'
|
||||
@ -146,7 +146,7 @@ _btrfs()
|
||||
fi
|
||||
|
||||
_filedir -d
|
||||
return 0
|
||||
return 0
|
||||
}
|
||||
|
||||
complete -F _btrfs btrfs
|
||||
|
Loading…
Reference in New Issue
Block a user