From: Peter Maydell <peter.maydell@linaro.org>
To: Alexander Graf <agraf@suse.de>
Cc: Riku Voipio <riku.voipio@iki.fi>,
"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] linux-user: fix fallocate
Date: Mon, 6 Feb 2012 21:03:45 +0000 [thread overview]
Message-ID: <CAFEAcA9NyL6CZ1refWuAp2+xsgVJNmsT0vZ025wETHsUDMPTJQ@mail.gmail.com> (raw)
In-Reply-To: <1328561133-5485-1-git-send-email-agraf@suse.de>
On 6 February 2012 20:45, Alexander Graf <agraf@suse.de> wrote:
> Fallocate gets off_t parameters passed in, so we should also read them out
> accordingly.
>
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
> linux-user/syscall.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index ee8899e..ca63594 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -8237,7 +8237,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
> #endif /* CONFIG_EVENTFD */
> #if defined(CONFIG_FALLOCATE) && defined(TARGET_NR_fallocate)
> case TARGET_NR_fallocate:
> - ret = get_errno(fallocate(arg1, arg2, arg3, arg4));
> + ret = get_errno(fallocate(arg1, arg2, target_offset64(arg3, arg4),
> + target_offset64(arg5, arg6)));
> break;
> #endif
> #if defined(CONFIG_SYNC_FILE_RANGE)
This needs to be guarded with a TARGET_ABI_BITS == 32 conditional:
64 bit guests want the original version.
-- PMM
next prev parent reply other threads:[~2012-02-06 21:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-06 20:45 [Qemu-devel] [PATCH] linux-user: fix fallocate Alexander Graf
2012-02-06 21:03 ` Peter Maydell [this message]
2012-02-06 21:04 ` Alexander Graf
-- strict thread matches above, loose matches on Subject: below --
2012-02-06 21:15 Alexander Graf
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=CAFEAcA9NyL6CZ1refWuAp2+xsgVJNmsT0vZ025wETHsUDMPTJQ@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/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).