RE: [PATCH 5/5] imsm: verify maximum supported active volumes in assembly

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

 



Hi,
> 
> hi,
>  I've applied the first four in this series, but I don't like this one.
> 
> 1/ I don't think there is any need to impose this restriction when
>    assembling an array - only when creating a new volume in an array.
We want to support only as many volumes as OROM (platform) supports. Disks with IMSM metadata may be carried from other systems.

> 
> 2/ The check_volumes_number approach feels clumsy ... there must be a
>    a better way (Assuming it is needed at all).
container_content handler is to check OROM capabilities and mark unsupported volumes with 
disable bits (array.state:MD_SB_BLOCK_CONTAINER_RESHAPE and MD_SB_BLOCK_VOLUME). The caller function shall interpret the bits and act
accordingly to the context (for instance block activation but display the volume information). I think that this restriction
falls into that area. However, there are only a few situations when this info is really needed ie. When volumes are activated in various ways.
Therefore I thought it makes sense to pass the info if counting of activate volumes is really needed. 
More straightforward option is to add another input parameters to container_content and change it in numerous places.
Do you prefer this way? Or add a specialized handler to count the volumes when it is needed?
Thanks,
Marcin Labun
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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