• Neil Brown's avatar
    [PATCH] Set max_sectors for raid0 only, not for all raid levels. · f556ef00
    Neil Brown authored
    raid1 and multipath have not concept of a chunksize, so basing
    max_sectors on it is obviously wrong.
    
    Similary 'linear' has a very different concept of chunksize and
    max_sectors doesn't apply.
    
    raid5 does have relevant chunk_size concept, but it has code to
    effectively handle any chunksize.
    
    So we only need to set max_sectors based on chunk_size in raid0.
    f556ef00
raid0.c 11.9 KB