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

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

 



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


[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux