From: Liu Yuan <namei.unix@gmail.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>,
sheepdog@lists.wpkg.org, qemu-devel <qemu-devel@nongnu.org>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 2/2] sheepdog: implement .bdrv_co_is_allocated()
Date: Tue, 23 Apr 2013 13:55:23 +0800 [thread overview]
Message-ID: <5176224B.9090405@gmail.com> (raw)
In-Reply-To: <CAJSP0QVa0fe83j2YhOq2S+23Aj+zqRWxhFjBpaO5fjQt8-2xDw@mail.gmail.com>
On 04/23/2013 04:46 AM, Stefan Hajnoczi wrote:
> The first sector is included in nb_sectors. Mathematically the range
> is defined as [sector_num, sector_num + nb_sectors). Notice the
> half-open interval, sector_num + nb_sectors is excluded. The last
> included sector is sector_num + nb_sectors - 1.
>
> You can look at qcow2's implementation, especially
> count_contiguous_clusters() to double-check.
Okay, thanks for you explanation. I'll update it in v4.
Yuan
prev parent reply other threads:[~2013-04-23 5:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-22 6:59 [Qemu-devel] [PATCH v2 0/2] implement .bdrv_co_is_allocated Liu Yuan
2013-04-22 6:59 ` [Qemu-devel] [PATCH v2 1/2] sheepdog: use BDRV_SECTOR_SIZE Liu Yuan
2013-04-22 6:59 ` [Qemu-devel] [PATCH v2 2/2] sheepdog: implement .bdrv_co_is_allocated() Liu Yuan
2013-04-22 12:00 ` Stefan Hajnoczi
2013-04-22 12:10 ` Liu Yuan
2013-04-22 15:03 ` Stefan Hajnoczi
2013-04-22 15:18 ` Liu Yuan
2013-04-22 20:46 ` Stefan Hajnoczi
2013-04-23 5:55 ` Liu Yuan [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=5176224B.9090405@gmail.com \
--to=namei.unix@gmail.com \
--cc=kwolf@redhat.com \
--cc=morita.kazutaka@lab.ntt.co.jp \
--cc=qemu-devel@nongnu.org \
--cc=sheepdog@lists.wpkg.org \
--cc=stefanha@gmail.com \
--cc=stefanha@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.