[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.
- From: Milan Broz <mbroz redhat com>
- To: device-mapper development <dm-devel redhat com>
- Cc: nishant mungse <nishantmungse gmail com>
- Subject: Re: [dm-devel] How to test the read/write flow of dm-target.
- Date: Sun, 30 Jan 2011 20:27:07 +0100
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]