Linux Device Mapper development
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Cc: nishant mungse <nishantmungse@gmail.com>
Subject: Re: How to test the read/write flow of dm-target.
Date: Sun, 30 Jan 2011 20:27:07 +0100	[thread overview]
Message-ID: <4D45BB8B.1000107@redhat.com> (raw)
In-Reply-To: <AANLkTikhUWPRSX87+o6BcTa8iEmh6Db0qD821ocDLV+A@mail.gmail.com>

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.

      reply	other threads:[~2011-01-30 19:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28  5:06 How to test the read/write flow of dm-target nishant mungse
2011-01-28 19:42 ` Malahal Naineni
2011-01-30 18:37   ` nishant mungse
2011-01-30 19:27     ` Milan Broz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D45BB8B.1000107@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=nishantmungse@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox