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. -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel