[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]