Linux-BTRFS Archive on lore.kernel.org
 help / color / Atom feed
* Do btrfs provide filesystem debugger?
@ 2019-01-22 23:41 Matthew Friday
  2019-01-22 23:46 ` Qu Wenruo
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Friday @ 2019-01-22 23:41 UTC (permalink / raw)
  To: linux-btrfs

Hi all,

I recently started learning BTRFS internals, and one think that I
cannot find is filesystem debugger to browse on disk data structures
(like xfs_db or ext debugfs).
Do BTRFS provide similar way to navigate on disk structures? I can see
the btrfs-debug-tree utility which provide whole tree of the
informations, is this something that can be then perhaps parsed in
easy way to view the internal structures?

Many Thanks
Matt

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Do btrfs provide filesystem debugger?
  2019-01-22 23:41 Do btrfs provide filesystem debugger? Matthew Friday
@ 2019-01-22 23:46 ` Qu Wenruo
  0 siblings, 0 replies; 2+ messages in thread
From: Qu Wenruo @ 2019-01-22 23:46 UTC (permalink / raw)
  To: Matthew Friday, linux-btrfs

[-- Attachment #1.1: Type: text/plain, Size: 874 bytes --]



On 2019/1/23 上午7:41, Matthew Friday wrote:
> Hi all,
> 
> I recently started learning BTRFS internals, and one think that I
> cannot find is filesystem debugger to browse on disk data structures
> (like xfs_db or ext debugfs).

You need "btrfs inspect dump-tree" and "btrfs inspect dump-super"

> Do BTRFS provide similar way to navigate on disk structures? I can see
> the btrfs-debug-tree utility which provide whole tree of the
> informations, is this something that can be then perhaps parsed in
> easy way to view the internal structures?

It's already all the internal structures.

Unlike other fs, btrfs uses a generic way to organize all its info, as
btrfs btree.

So dump tree provides everything you need, from inode and dentry info to
all internal data like allocation and csum data.

Thanks,
Qu

> 
> Many Thanks
> Matt
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-22 23:41 Do btrfs provide filesystem debugger? Matthew Friday
2019-01-22 23:46 ` Qu Wenruo

Linux-BTRFS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-btrfs/0 linux-btrfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-btrfs linux-btrfs/ https://lore.kernel.org/linux-btrfs \
		linux-btrfs@vger.kernel.org linux-btrfs@archiver.kernel.org
	public-inbox-index linux-btrfs


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-btrfs


AGPL code for this site: git clone https://public-inbox.org/ public-inbox