Re: [PATCH/RFC 0/2] md: personality pushdown patches -- intro

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

 



On Friday May 29, maan@xxxxxxxxxxxxxxx wrote:
> Here are the first two patches for pushing down raid level dependent
> code from md.c to the corresponding personalities.
> 
> The first patch is trivial as it moves only a printk() to the
> personalities. The second patch removes knowledge about bitmaps
> from md.c.

Thanks Andre.
This first is good and is now in my for-next branch.

The second is heading in the right direction.
However md_bitmap_present is as much of a layering violation in its
own way as the previous code was - diving in to the metatype_type
specific data.

You will notice in bitmap_create that an array has a bitmap if and
only if (mddev->bitmap_file || mddev->bitmap_offset).

So that is the test which should be used in md_bitmap_present.

Also the function name "md_bitmap_present" give no hint that it will
report an error - it reads like a simple test.
Maybe "md_check_no_bitmap" to indicate what the function is expecting
to find?

Thanks,
NeilBrown


> 
> If the general approach used by the second patch is agreed with, I
> will follow up with patches that deal with data integrity registration
> and multipath handling which are the remaining two issues where md.c
> does what should be handled in personality code.
> 
> Thanks
> Andre
> -- 
> 1.5.4.3
--
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