Re: [PATCH] md: Add support for data integrity to MD

From: Dan Williams
Date: Sat Sep 20 2008 - 20:26:54 EST


On Sat, Sep 20, 2008 at 5:18 PM, Martin K. Petersen
<martin.petersen@xxxxxxxxxx> wrote:
>
> If all subdevices support the same protection format the MD device is
> flagged as capable.
>
> Depends on d7533ad0e132f92e75c1b2eb7c26387b25a583c1 being reverted.
>
> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
> ---
> drivers/md/md.c | 32 +++++++++++++++++++++++++++++++-
> 1 files changed, 31 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/md/md.c b/drivers/md/md.c
> index 45521da..b038581 100644
> --- a/drivers/md/md.c
> +++ b/drivers/md/md.c
> @@ -3497,7 +3497,7 @@ static int do_md_run(mddev_t * mddev)
> int err;
> int chunk_size;
> struct list_head *tmp;
> - mdk_rdev_t *rdev;
> + mdk_rdev_t *rdev, *prev;
> struct gendisk *disk;
> struct mdk_personality *pers;
> char b[BDEVNAME_SIZE];
> @@ -3759,6 +3759,35 @@ static int do_md_run(mddev_t * mddev)
> sysfs_notify(&mddev->kobj, NULL, "sync_action");
> sysfs_notify(&mddev->kobj, NULL, "degraded");
> kobject_uevent(&disk_to_dev(mddev->gendisk)->kobj, KOBJ_CHANGE);
> +
> + /* Data integrity passthrough not supported on RAID 4, 5 and 6 */
> + if (pers->level >= 4 && pers->level <= 6)
> + return 0;

Do you have a reference to the issues in supporting this?

Thanks,
Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/