From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53155 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8bNl-0006QB-0x for qemu-devel@nongnu.org; Sat, 09 Apr 2011 12:51:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8bNj-0004Ml-Un for qemu-devel@nongnu.org; Sat, 09 Apr 2011 12:51:32 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:64183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8bNj-0004Mg-SH for qemu-devel@nongnu.org; Sat, 09 Apr 2011 12:51:31 -0400 Received: by ywl41 with SMTP id 41so2185265ywl.4 for ; Sat, 09 Apr 2011 09:51:30 -0700 (PDT) MIME-Version: 1.0 Date: Sun, 10 Apr 2011 00:51:30 +0800 Message-ID: From: Lyu Mitnick Content-Type: multipart/alternative; boundary=001485f9a4e07e97a704a07f271d Subject: [Qemu-devel] Question about total_sectors in block/vpc.c List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --001485f9a4e07e97a704a07f271d Content-Type: text/plain; charset=ISO-8859-1 Hell all, I have take a look of block/vpc.c and meet a question in vpc_create(). At the line 550, the code is: total_sectors = options->value.n / 512; I am wondering whether the size between total_sectors * 512 and options->value.n would be discard. Thanks Mitnick --001485f9a4e07e97a704a07f271d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hell all,

I have take a look of block/vpc.c and meet a q= uestion in vpc_create().=A0At the line=A0
550, the code is:
=
total_sectors =3D options->value.n / 512;
I am wondering = whether the size between=A0total_sectors * 512 and=A0options->value.n
would be discard.

Thanks

=
Mitnick
--001485f9a4e07e97a704a07f271d--