Re: [PATCH v2] md: Explicitly create command-line configured devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 1, 2022 at 4:03 AM Chris Webb <chris@xxxxxxxxxxxx> wrote:
>
> Boot-time assembly of arrays with md= command-line arguments breaks when
> CONFIG_BLOCK_LEGACY_AUTOLOAD is unset. md_setup_drive() in md-autodetect.c
> calls blkdev_get_by_dev(), assuming this implicitly creates the block
> device.
>
> Fix this by attempting to md_alloc() the array first. As in the probe path,
> ignore any error as failure is caught by blkdev_get_by_dev() anyway.
>
> Signed-off-by: Chris Webb <chris@xxxxxxxxxxxx>
> Reviewed-by: Christoph Hellwig <hch@xxxxxx>

Applied to md-next.

Thanks!
Song



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux