On 2/20/24 00:57, Michael Vogt wrote:
Add missing FIFREEZE and FITHAW ioctls.

Signed-off-by: Michael Vogt <michael.v...@gmail.com>
---
  linux-user/ioctls.h       | 6 ++++++
  linux-user/syscall_defs.h | 3 +++
  2 files changed, 9 insertions(+)

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

I suspect these are old enough that they should be unconditionally available.
However, quite a lot of the ioctls here are in the same boat, and it's not 
worth quibbling.

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

Applied to lu-next.


r~

Reply via email to