Re: [PATCH v3] btrfs: verify max_inline mount parameter

2018-03-05 Thread David Sterba
On Thu, Mar 01, 2018 at 07:51:23PM +0800, Anand Jain wrote: > >> @@ -605,7 +605,14 @@ int btrfs_parse_options(struct btrfs_fs_info *info, > >> char *options, > >>case Opt_max_inline: > >>num = match_strdup([0]); > >>if (num) { > >> -

Re: [PATCH v3] btrfs: verify max_inline mount parameter

2018-03-01 Thread Anand Jain
On 02/27/2018 11:45 PM, David Sterba wrote: On Mon, Feb 26, 2018 at 10:47:04AM +0800, Anand Jain wrote: We aren't verifying the parameter passed to the max_inline mount option. So we won't fail the mount if a junk value is specified, for example, -o max_inline=abc. This patch checks if input

Re: [PATCH v3] btrfs: verify max_inline mount parameter

2018-02-27 Thread David Sterba
On Mon, Feb 26, 2018 at 10:47:04AM +0800, Anand Jain wrote: > We aren't verifying the parameter passed to the max_inline mount option. > So we won't fail the mount if a junk value is specified, for example, > -o max_inline=abc. This patch checks if input is valid. > > Signed-off-by: Anand Jain