[dm-devel] How to test the read/write flow of dm-target.

Milan Broz mbroz at redhat.com
Sun Jan 30 19:27:07 UTC 2011


On 01/30/2011 07:37 PM, nishant mungse wrote:
> Is there any way to find the last sector of bio.

Use csope to study kernel code, there is lot of examples
in existing code.

For last used sector in bio you probably want
last_used_sector = bio->bi_sector + bio_sectors(bio) - 1;

Milan

p.s.
Please do not post repeated questions in different threads
(and spam messages like chat invitations) to list, thank you.




More information about the dm-devel mailing list