]> 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>
Tue, 27 Oct 2015 02:38:26 +0000 (19:38 -0700)
commita07f20840f1d222027eb058620d2068df7d23c00
tree583d82b294a3825459c960a0315186ec5cd703b5
parent25a7efeef25d5722bddc83c87b9e89a0b226f213
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