]> 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)
commit513dd336fa60c98ce477b994a4729527f486f69b
tree583d82b294a3825459c960a0315186ec5cd703b5
parent95073270d1133244402cbd7b60c8a8223d909604
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