]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit849ef9286f30c88113906dc35f44a499c0cb385d
tree583d82b294a3825459c960a0315186ec5cd703b5
parentb06c4bf5c874a57254b197f53ddf588e7a24a2bf
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