[dm-devel] Multipath target does not shift block offset?

Alasdair G Kergon agk at redhat.com
Thu Feb 10 17:18:32 UTC 2005


On Thu, Feb 10, 2005 at 04:02:28PM +1100, Tim Burgess wrote:
> However, dm appears to be trying 
> to map the range 286749488-573498975 of the dm device to the same 
> offsets in the sde/sdm device.
 
> Is this what was intended?
 
No.

In dm-mpath.c try adding to multipath_map() at the top of the function:

  bio->bi_sector = (bio->bi_sector - ti->begin);

Alasdair
-- 
agk at redhat.com




More information about the dm-devel mailing list