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

2019-04-02 Thread David Sterba
On Tue, Apr 02, 2019 at 06:07:38PM +0800, 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 usi

[PATCH 1/4 RESEND] btrfs: fix zstd compression parameter

2019-04-02 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 Revie