From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Michael Vogt <michael.vogt@gmail.com>,
Laurent Vivier <laurent@vivier.eu>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH] linux-user: Add FIFREEZE and FITHAW ioctls
Date: Wed, 21 Feb 2024 11:28:00 +0000 [thread overview]
Message-ID: <ZdXeQIK9Cm9AwWJu@redhat.com> (raw)
In-Reply-To: <20240220105726.8852-1-michael.vogt@gmail.com>
Adding the linux-user maintainer to the CC list
On Tue, Feb 20, 2024 at 11:57:21AM +0100, Michael Vogt wrote:
> Add missing FIFREEZE and FITHAW ioctls.
>
> Signed-off-by: Michael Vogt <michael.vogt@gmail.com>
> ---
> linux-user/ioctls.h | 6 ++++++
> linux-user/syscall_defs.h | 3 +++
> 2 files changed, 9 insertions(+)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
>
> diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
> index 071f7ca253..1aec9d5836 100644
> --- a/linux-user/ioctls.h
> +++ b/linux-user/ioctls.h
> @@ -134,6 +134,12 @@
> IOCTL(FICLONE, IOC_W, TYPE_INT)
> IOCTL(FICLONERANGE, IOC_W, MK_PTR(MK_STRUCT(STRUCT_file_clone_range)))
> #endif
> +#ifdef FIFREEZE
> + IOCTL(FIFREEZE, IOC_W | IOC_R, TYPE_INT)
> +#endif
> +#ifdef FITHAW
> + IOCTL(FITHAW, IOC_W | IOC_R, TYPE_INT)
> +#endif
>
> IOCTL(FIGETBSZ, IOC_R, MK_PTR(TYPE_LONG))
> #ifdef CONFIG_FIEMAP
> diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
> index 77ba343c85..744fda599e 100644
> --- a/linux-user/syscall_defs.h
> +++ b/linux-user/syscall_defs.h
> @@ -943,6 +943,9 @@ struct target_rtc_pll_info {
> #define TARGET_FICLONE TARGET_IOW(0x94, 9, abi_int)
> #define TARGET_FICLONERANGE TARGET_IOW(0x94, 13, struct file_clone_range)
>
> +#define TARGET_FIFREEZE TARGET_IOWR('X', 119, abi_int)
> +#define TARGET_FITHAW TARGET_IOWR('X', 120, abi_int)
> +
> /*
> * Note that the ioctl numbers for FS_IOC_<GET|SET><FLAGS|VERSION>
> * claim type "long" but the actual type used by the kernel is "int".
> --
> 2.43.0
>
>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2024-02-21 15:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-20 10:57 [PATCH] linux-user: Add FIFREEZE and FITHAW ioctls Michael Vogt
2024-02-21 11:28 ` Daniel P. Berrangé [this message]
2024-03-02 0:34 ` Richard Henderson
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=ZdXeQIK9Cm9AwWJu@redhat.com \
--to=berrange@redhat.com \
--cc=laurent@vivier.eu \
--cc=michael.vogt@gmail.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 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.