]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: check unsupported filters in balance arguments
authorDavid Sterba <dsterba@suse.com>
Mon, 12 Oct 2015 14:55:54 +0000 (16:55 +0200)
committerChris Mason <clm@fb.com>
Wed, 14 Oct 2015 01:53:03 +0000 (18:53 -0700)
commit398bae098feda2cc38da844453408da06dfef1e9
tree5963f95a1602c250d681d4222eccbd442313381b
parent259c79f4dc6b6956affdf329e8e67bc6ac87f821
btrfs: check unsupported filters in balance arguments

We don't verify that all the balance filter arguments supplemented by
the flags are actually known to the kernel. Thus we let it silently pass
and do nothing.

At the moment this means only the 'limit' filter, but we're going to add
a few more soon so it's better to have that fixed. Also in older stable
kernels so that it works with newer userspace tools.

Cc: stable@vger.kernel.org # 3.16+
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c
fs/btrfs/volumes.h