lkml.org 
[lkml]   [2008]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] md: Add support for data integrity to MD
    On Sat, Sep 20, 2008 at 5:18 PM, Martin K. Petersen
    <martin.petersen@oracle.com> 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@oracle.com>
    > ---
    > 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


    \
     
     \ /
      Last update: 2008-09-21 02:29    [W:0.024 / U:2.160 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site