On Thu, 9 Jun 2022 15:11:23 -0600 Logan Gunthorpe <logang@xxxxxxxxxxxx> wrote: > The commit noted below changed the behaviour of --write-behind to > require an argument. This broke the 06wrmostly test with the error: > > mdadm: Invalid value for maximum outstanding write-behind writes: (null). > Must be between 0 and 16383. > > To fix this, check if optarg is NULL before parising it, as the origial > code did. > > Fixes: 60815698c0ac ("Refactor parse_num and use it to parse optarg.") > Cc: Mateusz Grzonka <mateusz.grzonka@xxxxxxxxx> > Signed-off-by: Logan Gunthorpe <logang@xxxxxxxxxxxx> > --- Acked-by: Mariusz Tkaczyk <mariusz.tkaczyk@xxxxxxxxxxxxxxx>