From: Max Reitz <mreitz@redhat.com>
To: Nir Soffer <nirsof@gmail.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Nir Soffer <nsoffer@redhat.com>,
qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 2/2] iotests: Test allocate_first_block() with O_DIRECT
Date: Mon, 26 Aug 2019 14:38:52 +0200 [thread overview]
Message-ID: <6c6e8226-8aac-e5df-7a5f-706bc25c77c7@redhat.com> (raw)
In-Reply-To: <20190825220329.7942-3-nsoffer@redhat.com>
[-- Attachment #1.1: Type: text/plain, Size: 922 bytes --]
On 26.08.19 00:03, Nir Soffer wrote:
> Using block_resize we can test allocate_first_block() with file
> descriptor opened with O_DIRECT, ensuring that it works for any size
> larger than 4096 bytes.
>
> Testing smaller sizes is tricky as the result depends on the filesystem
> used for testing. For example on NFS any size will work since O_DIRECT
> does not require any alignment.
> ---
> tests/qemu-iotests/175 | 25 +++++++++++++++++++++++++
> tests/qemu-iotests/175.out | 8 ++++++++
> 2 files changed, 33 insertions(+)
Thanks for the test!
There’s just one thing: 175 now needs
_default_cache_mode none
_supported_cache_modes none directsync
somewhere near the top (where the rest of _supported*) is. (Otherwise,
it will fail when the iotests should be run with some other cache mode
instead of being skipped.)
With that added:
Reviewed-by: Max Reitz <mreitz@redhat.com>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2019-08-26 12:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-25 22:03 [Qemu-devel] [PATCH v2 0/2] Optimize alignment probing Nir Soffer
2019-08-25 22:03 ` [Qemu-devel] [PATCH v2 1/2] block: posix: Always allocate the first block Nir Soffer
2019-08-26 12:31 ` Max Reitz
2019-08-26 13:49 ` Eric Blake
2019-08-26 15:23 ` Nir Soffer
2019-08-26 15:41 ` Nir Soffer
2019-08-26 16:20 ` Max Reitz
2019-08-26 13:46 ` Eric Blake
2019-08-26 15:19 ` Nir Soffer
2019-08-25 22:03 ` [Qemu-devel] [PATCH v2 2/2] iotests: Test allocate_first_block() with O_DIRECT Nir Soffer
2019-08-25 22:41 ` Nir Soffer
2019-08-26 12:38 ` Max Reitz [this message]
2019-08-25 22:19 ` [Qemu-devel] [PATCH v2 0/2] Optimize alignment probing no-reply
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=6c6e8226-8aac-e5df-7a5f-706bc25c77c7@redhat.com \
--to=mreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=nirsof@gmail.com \
--cc=nsoffer@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 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).