Skip to content

Commit 9bf4fba

Browse files
Mikulas Patockagregkh
Mikulas Patocka
authored andcommitted
dm integrity: fix the maximum number of arguments
commit 17ffc19 upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6bba7ef commit 9bf4fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-integrity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3792,7 +3792,7 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned argc, char **argv)
37923792
unsigned extra_args;
37933793
struct dm_arg_set as;
37943794
static const struct dm_arg _args[] = {
3795-
{0, 9, "Invalid number of feature args"},
3795+
{0, 15, "Invalid number of feature args"},
37963796
};
37973797
unsigned journal_sectors, interleave_sectors, buffer_sectors, journal_watermark, sync_msec;
37983798
bool should_write_sb;

0 commit comments

Comments
 (0)