All of lore.kernel.org
 help / color / mirror / Atom feed
* Btrfs disk layout question
@ 2017-04-11 19:15 Amin Hassani
  2017-04-11 20:43 ` Chris Murphy
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Amin Hassani @ 2017-04-11 19:15 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I am working on a project with Btrfs and I was wondering if there is
any way to see the disk layout of the btrfs image. Let's assume I have
a read-only btrfs image with compression on and only using one disk
(no raid or anything). Is it possible to get a set of offset-lengths
for each file or metadata parts of the image. I know there is an
unfinished documentation for On-disk Formant in here:
https://btrfs.wiki.kernel.org/index.php/On-disk_Format
But it is not complete and does not show what I am looking for. Is
there any other documentation on this? Is there any public API that I
can use to get this information. For example can I iterate on all
files starting from the root node and get all offset-lengths? This way
any part that doesn't come can be assumed as metadata. I don't really
care what is inside the metadata, I just want to know their
offset-lengths in the file system.

Thank you,
Amin.

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

end of thread, other threads:[~2017-04-15 17:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 19:15 Btrfs disk layout question Amin Hassani
2017-04-11 20:43 ` Chris Murphy
2017-04-11 21:00 ` Adam Borowski
2017-04-12  4:18   ` Chris Murphy
2017-04-12 11:20     ` Austin S. Hemmelgarn
2017-04-12 16:44       ` Andrei Borzenkov
2017-04-12 16:50         ` Amin Hassani
2017-04-12 16:56         ` Austin S. Hemmelgarn
2017-04-12 17:21           ` Chris Murphy
2017-04-13  3:26             ` Andrei Borzenkov
2017-04-15  6:14             ` Andrei Borzenkov
2017-04-15 17:06               ` Chris Murphy
2017-04-12 17:25 ` Hans van Kranenburg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.