qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Sanjay Kumar2 <Sanjay_Kumar2@symantec.com>
Cc: "'qemu-devel@nongnu.org'" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Important] Query regarding bdrv_co_discard
Date: Thu, 4 Sep 2014 14:59:26 +0100	[thread overview]
Message-ID: <20140904135926.GD27130@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1587858E792C6C48ADD97BCB156E8ED031FB39D059@APJ1XCHEVSPIN31.SYMC.SYMANTEC.COM>

[-- Attachment #1: Type: text/plain, Size: 1392 bytes --]

On Thu, Sep 04, 2014 at 05:56:53AM -0700, Sanjay Kumar2 wrote:
> Output of hdparam is below. Also let me know does network based protocol supports 'qcow2' format. As my block driver is network based. It is perfectly working for raw format. When I change the type='qcow2', then it is not working because bdrv_get_geometry() is returning 0. This I am talking about qemu-kvm-0.12.1.2.
> 
> [root@localhost ~]# hdparm -I /dev/sda
> 
> /dev/sda:
> SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 
> ATA device, with non-removable media
> Standards:
>         Likely used: 1
> Configuration:
>         Logical         max     current
>         cylinders       0       0
>         heads           0       0
>         sectors/track   0       0
>         --
>         Logical/Physical Sector size:           512 bytes
>         device size with M = 1024*1024:           0 MBytes
>         device size with M = 1000*1000:           0 MBytes
>         cache/buffer size  = unknown

I guess you are asking why hdparm reports 0 MB size?

Please post the qemu command-line (ps aux | grep qemu) so we know how
the guest is configured.

qcow2 works on non-file protocols (e.g. network).

Please keep discussion in this email thread and don't post comments
about this on my blog.

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2014-09-04 13:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04 12:56 [Qemu-devel] [Important] Query regarding bdrv_co_discard Sanjay Kumar2
2014-09-04 13:59 ` Stefan Hajnoczi [this message]
2014-09-11  8:53   ` Sanjay Kumar2
2014-09-17 11:20     ` Stefan Hajnoczi

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=20140904135926.GD27130@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=Sanjay_Kumar2@symantec.com \
    --cc=qemu-devel@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).