]> git.hungrycats.org Git - linux/commit
btrfs: check unsupported filters in balance arguments
authorDavid Sterba <dsterba@suse.com>
Mon, 12 Oct 2015 14:55:54 +0000 (16:55 +0200)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Sat, 17 Oct 2015 03:18:17 +0000 (23:18 -0400)
commit614b9d3f9637c7d418ce48bfe6afac979a94c1ab
tree5b27d41fc756b2b0bca77213e6b2308a621366e8
parent0dd0a33a8b1e152d04e1830d2a3f85e5da45507e
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>
(cherry picked from commit 8eb934591f8bf584969454a658f629cd06e59f3a)
(cherry picked from commit 186540a8b86bdaa8591661df2f93e1274ef4e410)
fs/btrfs/ioctl.c
fs/btrfs/volumes.h