Re: [PATCH] btrfs: verify max_inline mount parameter

2018-02-13 Thread Anand Jain
On 02/13/2018 01:13 AM, David Sterba wrote: On Mon, Feb 12, 2018 at 11:35:46PM +0800, Anand Jain wrote: We aren't verifying the parameter passed to the max_inline mount option, so we won't report and fail the mount if a junk value is specified for example, -o max_inline=abc. This patch convert

Re: [PATCH] btrfs: verify max_inline mount parameter

2018-02-12 Thread David Sterba
On Mon, Feb 12, 2018 at 11:35:46PM +0800, Anand Jain wrote: > We aren't verifying the parameter passed to the max_inline mount option, > so we won't report and fail the mount if a junk value is specified for > example, -o max_inline=abc. > This patch converts the max_inline option to %d and checks

[PATCH] btrfs: verify max_inline mount parameter

2018-02-12 Thread Anand Jain
We aren't verifying the parameter passed to the max_inline mount option, so we won't report and fail the mount if a junk value is specified for example, -o max_inline=abc. This patch converts the max_inline option to %d and checks if it's a number >= 0. Signed-off-by: Anand Jain --- fs/btrfs/sup