Re: new database files not compressed

Nikolay Borisov
2020-08-31T10:47:55Z

<SNIP>

> I created a new file system, ran dd bs=32k count=1024, then the dump
> shows me items all the way up to item 161. https://pastebin.com/0MPPdqqM
>
>     item 160 key (258 EXTENT_DATA 33292288) itemoff 7750 itemsize 53
>         generation 7 type 1 (regular)
>         extent data disk byte 14671872 nr 4096
>         extent data offset 0 nr 131072 ram 131072
>         extent compression 3 (zstd)
>     item 161 key (258 EXTENT_DATA 33423360) itemoff 7697 itemsize 53
>         generation 7 type 1 (regular)
>         extent data disk byte 14675968 nr 4096
>         extent data offset 0 nr 131072 ram 131072
>         extent compression 3 (zstd)
> total bytes 32196018176
> bytes used 1245184
> uuid 53eaed91-1060-445b-bf7c-5efe9917adbc

This output indicates that extents are compressed, what does compsize
report on this file?
>
>
> From mount: /dev/sdb on /mnt/test type btrfs
> (rw,relatime,compress-force=zstd:3,space_cache,subvolid=5,subvol=/)
>
> Hamish
>