• Neil Brown's avatar
    dm: mirror sector offset fix · b48a29e3
    Neil Brown authored
    The device-mapper core does not perform any remapping of bios before passing
    them to the targets.  If a particular mapping begins part-way into a device,
    targets obtain the sector relative to the start of the mapping by subtracting
    ti->begin.
    
    The dm-raid1 target didn't do this everywhere: this patch fixes it, taking
    care to subtract ti->begin exactly once for each bio.
    Signed-off-by: default avatarNeil Brown <neilb@suse.de>
    Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
    Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
    b48a29e3
dm-raid1.c 28.4 KB