Re: [PATCH v4 2/2] btrfs-progs: cmds: Add subcommand that dumps file extents
From: Qu Wenruo <hidden>
Date: 2021-08-19 06:03:51
On 2021/8/18 上午8:38, Sidong Yang wrote:
On Tue, Aug 17, 2021 at 03:30:22PM +0200, David Sterba wrote:quoted
On Sun, Jul 18, 2021 at 06:46:01AM +0000, Sidong Yang wrote:quoted
This patch adds an subcommand in inspect-internal. It dumps file extents of the file that user provided. It helps to show the internal information about file extents comprise the file.Do you have an example of the output? That's the most interesting part. Thanks.Thanks for reply. This is an example of the output below. # ./btrfs inspect-internal dump-file-extent /mnt/test1 type = regular, start = 2097152, len = 3227648, disk_bytenr = 0, disk_num_bytes = 0, offset = 0, compression = none type = regular, start = 5324800, len = 16728064, disk_bytenr = 0, disk_num_bytes = 0, offset = 0, compression = none type = regular, start = 22052864, len = 8486912, disk_bytenr = 0, disk_num_bytes = 0, offset = 0, compression = none type = regular, start = 30572544, len = 36540416, disk_bytenr = 0, disk_num_bytes = 0, offset = 0, compression = none type = regular, start = 67112960, len = 5299630080, disk_bytenr = 0, disk_num_bytes = 0, offset = 0, compression = none
Could you give an example which includes both real (non-hole) extents and real extents (better to include regular, compressed, preallocated and inline). Currently the output only contains holes, and for holes, a lot of members makes no sense, like disk_bytenr/disk_num_bytes/offset (even it can be non-zero) and compression. Thanks, Qu
Thanks, Sidong