qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Max Reitz <mreitz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 0/6] block: Let drivers reconstruct the filename
Date: Fri, 15 Aug 2014 17:22:03 +0200	[thread overview]
Message-ID: <53EE259B.5040403@redhat.com> (raw)
In-Reply-To: <1405707901-8253-1-git-send-email-mreitz@redhat.com>

On 18.07.2014 20:24, Max Reitz wrote:
> We may sometimes want a filename for BDSs which do not have one because
> they weren't opened using a simple filename (but rather just through
> options, for example).
>
> Some block drivers are always capable of reconstructing a valid filename
> (e.g. NBD), even if the BDS has been opened using the options QDict
> only. For others (e.g. Quorum) this is impossible. To accommodate this
> case, the function which reconstructs ("refreshes") the filename for a
> BDS also generates an options QDict (which should always work). If some
> layer cannot generate a plain filename (e.g. a Quorum instance), we can
> still generate a QDict which contains all options necessary for opening
> the block device in (basically) the same state.
>
> If a filename can be generated, the one stored in the BDS is
> overwritten. Otherwise, the QDict is converted to JSON, prefixed with
> "json:" and then used as the filename (making use of the JSON
> pseudo-protocol).
>
>
> Block drivers which probably need to implement bdrv_refresh_filename()
> besides blkdebug, blkverify, NBD and Quorum but which this series does
> not cover, are the following: curl, ssh and vvfat.
>
>
> This series supersedes my previous 'block: Fix unset "filename" for
> certain drivers'.
>
>
> Max Reitz (6):
>    block: Add bdrv_refresh_filename()
>    blkdebug: Implement bdrv_refresh_filename()
>    blkverify: Implement bdrv_refresh_filename()
>    nbd: Implement bdrv_refresh_filename()
>    quorum: Implement bdrv_refresh_filename()
>    iotests: Add test for image filename construction
>
>   block.c                    | 135 +++++++++++++++++++++++++++++++++++++++++++++
>   block/blkdebug.c           |  97 ++++++++++++++++++++++++++++++++
>   block/blkverify.c          |  29 ++++++++++
>   block/nbd.c                |  36 ++++++++++++
>   block/quorum.c             |  39 +++++++++++++
>   include/block/block.h      |   1 +
>   include/block/block_int.h  |   6 ++
>   tests/qemu-iotests/099     | 116 ++++++++++++++++++++++++++++++++++++++
>   tests/qemu-iotests/099.out |  20 +++++++
>   tests/qemu-iotests/group   |   1 +
>   10 files changed, 480 insertions(+)
>   create mode 100755 tests/qemu-iotests/099
>   create mode 100644 tests/qemu-iotests/099.out

Ping

  parent reply	other threads:[~2014-08-15 15:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-18 18:24 [Qemu-devel] [PATCH 0/6] block: Let drivers reconstruct the filename Max Reitz
2014-07-18 18:24 ` [Qemu-devel] [PATCH 1/6] block: Add bdrv_refresh_filename() Max Reitz
2014-08-20 15:07   ` Kevin Wolf
2014-08-20 19:06     ` Max Reitz
2014-08-21  8:26       ` Kevin Wolf
2014-07-18 18:24 ` [Qemu-devel] [PATCH 2/6] blkdebug: Implement bdrv_refresh_filename() Max Reitz
2014-08-20 15:14   ` Kevin Wolf
2014-08-20 19:08     ` Max Reitz
2014-07-18 18:24 ` [Qemu-devel] [PATCH 3/6] blkverify: " Max Reitz
2014-07-18 18:24 ` [Qemu-devel] [PATCH 4/6] nbd: " Max Reitz
2014-07-18 18:25 ` [Qemu-devel] [PATCH 5/6] quorum: " Max Reitz
2014-07-18 18:25 ` [Qemu-devel] [PATCH 6/6] iotests: Add test for image filename construction Max Reitz
2014-08-15 15:22 ` Max Reitz [this message]
2014-08-20 15:29 ` [Qemu-devel] [PATCH 0/6] block: Let drivers reconstruct the filename Kevin Wolf

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=53EE259B.5040403@redhat.com \
    --to=mreitz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --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 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).