Re: [PATCH 1/2] btrfs: fix zstd compression parameter

2019-03-13 Thread Nikolay Borisov
On 13.03.19 г. 7:36 ч., Anand Jain wrote: > We let to pass zstd compression parameter even if its not fully written. > For example: > btrfs prop set /btrfs compression zst > btrfs prop get /btrfs compression > compression=zst > > zlib and lzo are fine. > > Fix it by using the expected

[PATCH 1/2] btrfs: fix zstd compression parameter

2019-03-12 Thread Anand Jain
We let to pass zstd compression parameter even if its not fully written. For example: btrfs prop set /btrfs compression zst btrfs prop get /btrfs compression compression=zst zlib and lzo are fine. Fix it by using the expected number of char in strncmp(). Signed-off-by: Anand Jain ---