From: Eric Blake <eblake@redhat.com>
To: Max Reitz <mreitz@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-block@nongnu.org, kwolf@redhat.com
Subject: Re: [Qemu-devel] [PATCH v4 5/6] qemu-io: Add 'open -u' to set BDRV_O_UNMAP after the fact
Date: Fri, 6 May 2016 10:21:45 -0600 [thread overview]
Message-ID: <572CC499.5020801@redhat.com> (raw)
In-Reply-To: <6507af47-341f-a6d4-b03a-2ca89012551d@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1118 bytes --]
On 05/06/2016 10:08 AM, Max Reitz wrote:
> On 05.05.2016 05:42, Eric Blake wrote:
>> When opening a file from the command line, qemu-io defaults
>> to BDRV_O_UNMAP but allows -d to give full control to disable
>> unmaps. But when opening via the 'open' command, qemu-io did
>> not set BDRV_O_UNMAP, and had no way to allow it.
>>
>> Make it at least possible to symmetrically test things:
>> 'qemu-io -d ignore' at the CLI now matches 'qemu-io> open'
>> in batch mode, and 'qemu-io' or 'qemu-io -d unmap' at
>> the CLI matches 'qemu-io> open -u'.
>>
>> Signed-off-by: Eric Blake <eblake@redhat.com>
>> ---
>> qemu-io.c | 8 ++++++--
>> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> Not sure why you didn't just reuse the -d option for qemu-io itself, but:
-d=string is different than -u (as a binary flag). But you have a
point, that being able to fully-specify ALL modes, rather than just
turning on a single mode, is more flexible. I'll see how tough it is to
fix for v5.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2016-05-06 16:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-05 3:42 [Qemu-devel] [PATCH v4 0/6] qemu-io: UI enhancements Eric Blake
2016-05-05 3:42 ` [Qemu-devel] [PATCH v4 1/6] qemu-io: Add missing option documentation Eric Blake
2016-05-06 15:34 ` Max Reitz
2016-05-05 3:42 ` [Qemu-devel] [PATCH v4 2/6] qemu-io: Use bool for command line flags Eric Blake
2016-05-06 15:39 ` Max Reitz
2016-05-05 3:42 ` [Qemu-devel] [PATCH v4 3/6] qemu-io: Allow unaligned access by default Eric Blake
2016-05-06 15:59 ` Max Reitz
2016-05-06 16:14 ` Eric Blake
2016-05-05 3:42 ` [Qemu-devel] [PATCH v4 4/6] qemu-io: Add 'write -f' to test FUA flag Eric Blake
2016-05-06 16:05 ` Max Reitz
2016-05-06 16:20 ` Eric Blake
2016-05-05 3:42 ` [Qemu-devel] [PATCH v4 5/6] qemu-io: Add 'open -u' to set BDRV_O_UNMAP after the fact Eric Blake
2016-05-06 16:08 ` Max Reitz
2016-05-06 16:21 ` Eric Blake [this message]
2016-05-06 17:01 ` Eric Blake
2016-05-05 3:42 ` [Qemu-devel] [PATCH v4 6/6] qemu-io: Add 'write -z -u' to test MAY_UNMAP flag Eric Blake
2016-05-06 16:11 ` Max Reitz
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=572CC499.5020801@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--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 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.