Skip to content

Commit

Permalink
dm integrity: fix the maximum number of arguments
Browse files Browse the repository at this point in the history
Advance the maximum number of arguments from 9 to 15 to account for
all potential feature flags that may be supplied.

Linux 4.19 added "meta_device"
(356d9d5) and "recalculate"
(a3fcf72) flags.

Commit 468dfca added
"sectors_per_bit" and "bitmap_flush_interval".

Commit 84597a4 added
"allow_discards".

And the commit d537858 added
"fix_padding".

Signed-off-by: Mikulas Patocka <[email protected]>
Cc: [email protected] # v4.19+
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
Mikulas Patocka authored and snitm committed Jan 12, 2021
1 parent 8e14f61 commit 17ffc19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -3792,7 +3792,7 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned argc, char **argv)
unsigned extra_args;
struct dm_arg_set as;
static const struct dm_arg _args[] = {
{0, 9, "Invalid number of feature args"},
{0, 15, "Invalid number of feature args"},
};
unsigned journal_sectors, interleave_sectors, buffer_sectors, journal_watermark, sync_msec;
bool should_write_sb;
Expand Down

0 comments on commit 17ffc19

Please sign in to comment.