From 0870028fde29ca4083bf5614a8f15a2cb16f302d Mon Sep 17 00:00:00 2001 From: Sergio Lopez Date: Wed, 8 Apr 2020 12:25:21 +0200 Subject: [PATCH] vhost_user_fs: Add the IOCTL_COMPAT_32 flag Add the IOCTL_COMPAT_32 flag, corresponding to FUSE_IOCTL_COMPAT_32 introduced in FUSE 7.30. Signed-off-by: Sergio Lopez --- vhost_user_fs/src/fuse.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vhost_user_fs/src/fuse.rs b/vhost_user_fs/src/fuse.rs index f336b45ec..1c820b0da 100644 --- a/vhost_user_fs/src/fuse.rs +++ b/vhost_user_fs/src/fuse.rs @@ -393,6 +393,9 @@ const IOCTL_32BIT: u32 = 8; /// Is a directory const IOCTL_DIR: u32 = 16; +/// x32 compat ioctl on 64bit machine (64bit time_t) +const IOCTL_COMPAT_X32: u32 = 32; + /// Maximum of in_iovecs + out_iovecs const IOCTL_MAX_IOV: u32 = 256; @@ -413,6 +416,9 @@ bitflags! { /// Is a directory const IOCTL_DIR = IOCTL_DIR; + /// x32 compat ioctl on 64bit machine (64bit time_t) + const IOCTL_COMPAT_X32 = IOCTL_COMPAT_X32; + /// Maximum of in_iovecs + out_iovecs const IOCTL_MAX_IOV = IOCTL_MAX_IOV; }