From 17abe51d4e7a3c89d6bb22af18ba916c3e7cf9ee Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Wed, 2 Apr 2014 16:29:20 +0800 Subject: [PATCH] btrfs-progs: Convert man page for btrfs-inspect-internal Convert man page for btrfs-inspect-internal. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- Documentation/Makefile | 2 +- Documentation/btrfs-inspect-internal.txt | 69 ++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 Documentation/btrfs-inspect-internal.txt diff --git a/Documentation/Makefile b/Documentation/Makefile index ebe04553..6655f061 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -23,7 +23,7 @@ MAN8_TXT += btrfs-device.txt MAN8_TXT += btrfs-scrub.txt MAN8_TXT += btrfs-check.txt MAN8_TXT += btrfs-rescue.txt -#MAN8_TXT += btrfs-inspect-internal.txt +MAN8_TXT += btrfs-inspect-internal.txt #MAN8_TXT += btrfs-send.txt #MAN8_TXT += btrfs-receive.txt #MAN8_TXT += btrfs-quota.txt diff --git a/Documentation/btrfs-inspect-internal.txt b/Documentation/btrfs-inspect-internal.txt new file mode 100644 index 00000000..4555c706 --- /dev/null +++ b/Documentation/btrfs-inspect-internal.txt @@ -0,0 +1,69 @@ +btrfs-inspect-internal(8) +========================= + +NAME +---- +btrfs-inspect-internal - resolve different btrfs items for debug purpose + +SYNOPSIS +-------- +'btrfs inspect-internal' + +DESCRIPTION +----------- +'btrfs inspect-internal' is used to resolve different items for debug purpose. + +SUBCOMMAND +---------- +'inode-resolve' [-v] :: +Resolves an in subvolume to all filesystem paths. ++ +`Options` ++ +-v:::: +verbose mode. print count of returned paths and ioctl() return value + +'logical-resolve' [-Pv] [-s bufsize] :: +Resolves a address in the filesystem mounted at 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 :::: +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. + +'subvolid-resolve' :: +Get file system paths for the given subvolume ID. + +'rootid' :: +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 +----------- +'btrfs inspect-internal' returns a zero exist status if it succeeds. Non zero is +returned in case of failure. + +AVAILABILITY +------------ +'btrfs' is part of btrfs-progs. Btrfs filesystem is currently under heavy +development, +and not suitable for any uses other than benchmarking and review. +Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for +further details. + +SEE ALSO +-------- +`mkfs.btrfs`(8), +`btrfs-debug-tree`(8)