Re: Btrfs disk layout question

2017-04-15 Thread Chris Murphy
On Sat, Apr 15, 2017 at 12:14 AM, Andrei Borzenkov wrote: > 12.04.2017 20:21, Chris Murphy пишет: >> btrfs-map-logical is the tool that will convert logical to physical >> and also give what device it's on; but the device notation is copy 1 >> and copy 2, so you have to infer what device that is,

Re: Btrfs disk layout question

2017-04-14 Thread Andrei Borzenkov
12.04.2017 20:21, Chris Murphy пишет: > btrfs-map-logical is the tool that will convert logical to physical > and also give what device it's on; but the device notation is copy 1 > and copy 2, so you have to infer what device that is, it's not > explicit. > Actually I just checked with btrfsprogs

Re: Btrfs disk layout question

2017-04-12 Thread Andrei Borzenkov
12.04.2017 20:21, Chris Murphy пишет: > btrfs-map-logical is the tool that will convert logical to physical > and also give what device it's on; but the device notation is copy 1 > and copy 2, so you have to infer what device that is, it's not > explicit. > Quickly checking output - for my purpos

Re: Btrfs disk layout question

2017-04-12 Thread Hans van Kranenburg
On 04/11/2017 09:15 PM, Amin Hassani wrote: > > 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 poss

Re: Btrfs disk layout question

2017-04-12 Thread Chris Murphy
btrfs-map-logical is the tool that will convert logical to physical and also give what device it's on; but the device notation is copy 1 and copy 2, so you have to infer what device that is, it's not explicit. Chris Murphy -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs"

Re: Btrfs disk layout question

2017-04-12 Thread Austin S. Hemmelgarn
On 2017-04-12 12:44, Andrei Borzenkov wrote: 12.04.2017 14:20, Austin S. Hemmelgarn пишет: On 2017-04-12 00:18, Chris Murphy wrote: On Tue, Apr 11, 2017 at 3:00 PM, Adam Borowski wrote: On Tue, Apr 11, 2017 at 12:15:32PM -0700, Amin Hassani wrote: I am working on a project with Btrfs and I w

Re: Btrfs disk layout question

2017-04-12 Thread Amin Hassani
Hi, Thanks for responses. I actually need the physical addresses. FIEMAP I believe (and I tested) gives logical address which as Andrei mentioned is useless. I'm assuming btfs-debug-tree gives the physical addresses right? I also need to know the compression method used on each extent and I don't

Re: Btrfs disk layout question

2017-04-12 Thread Andrei Borzenkov
12.04.2017 14:20, Austin S. Hemmelgarn пишет: > On 2017-04-12 00:18, Chris Murphy wrote: >> On Tue, Apr 11, 2017 at 3:00 PM, Adam Borowski >> wrote: >>> On Tue, Apr 11, 2017 at 12:15:32PM -0700, Amin Hassani wrote: I am working on a project with Btrfs and I was wondering if there is any

Re: Btrfs disk layout question

2017-04-12 Thread Austin S. Hemmelgarn
On 2017-04-12 00:18, Chris Murphy wrote: On Tue, Apr 11, 2017 at 3:00 PM, Adam Borowski wrote: On Tue, Apr 11, 2017 at 12:15:32PM -0700, Amin Hassani wrote: 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 ha

Re: Btrfs disk layout question

2017-04-11 Thread Chris Murphy
On Tue, Apr 11, 2017 at 3:00 PM, Adam Borowski wrote: > On Tue, Apr 11, 2017 at 12:15:32PM -0700, Amin Hassani wrote: >> 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 co

Re: Btrfs disk layout question

2017-04-11 Thread Adam Borowski
On Tue, Apr 11, 2017 at 12:15:32PM -0700, Amin Hassani wrote: > 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)

Re: Btrfs disk layout question

2017-04-11 Thread Chris Murphy
On Tue, Apr 11, 2017 at 1:15 PM, Amin Hassani wrote: > 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)

Btrfs disk layout question

2017-04-11 Thread Amin Hassani
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