diff options
author | Anand Jain <anand.jain@oracle.com> | 2019-04-02 18:07:38 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-04 17:56:12 +0200 |
commit | 50398fde997f6be8faebdb5f38e9c9c467370f51 (patch) | |
tree | 993ba120f3debd0ff1503500b183fbeba8c3fc62 /fs/ntfs | |
parent | f35f06c35560a86e841631f0243b83a984dc11a9 (diff) | |
download | linux-stable-50398fde997f6be8faebdb5f38e9c9c467370f51.tar.gz linux-stable-50398fde997f6be8faebdb5f38e9c9c467370f51.tar.bz2 linux-stable-50398fde997f6be8faebdb5f38e9c9c467370f51.zip |
btrfs: prop: fix zstd compression parameter validation
We let pass zstd compression parameter even if it is not fully valid.
For example:
$ btrfs prop set /btrfs compression zst
$ btrfs prop get /btrfs compression
compression=zst
zlib and lzo are fine.
Fix it by checking the correct prefix length.
Fixes: 5c1aab1dd544 ("btrfs: Add zstd support")
CC: stable@vger.kernel.org # 4.14+
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/ntfs')
0 files changed, 0 insertions, 0 deletions