From d0474399521789646ebc66b3450a4983d6fd07d9 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 16 Dec 2020 22:10:51 +0100 Subject: OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_FLUSH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the VirtioFsFuseFlush() function, for sending the FUSE_FLUSH command to the Virtio Filesystem device. Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Philippe Mathieu-Daudé Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3097 Signed-off-by: Laszlo Ersek Message-Id: <20201216211125.19496-15-lersek@redhat.com> Acked-by: Ard Biesheuvel --- OvmfPkg/Include/IndustryStandard/VirtioFs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OvmfPkg/Include') diff --git a/OvmfPkg/Include/IndustryStandard/VirtioFs.h b/OvmfPkg/Include/IndustryStandard/VirtioFs.h index 797d94a39a..fec2f4be53 100644 --- a/OvmfPkg/Include/IndustryStandard/VirtioFs.h +++ b/OvmfPkg/Include/IndustryStandard/VirtioFs.h @@ -88,6 +88,7 @@ typedef enum { VirtioFsFuseOpForget = 2, VirtioFsFuseOpRelease = 18, VirtioFsFuseOpFsync = 20, + VirtioFsFuseOpFlush = 25, VirtioFsFuseOpInit = 26, VirtioFsFuseOpOpenDir = 27, VirtioFsFuseOpReleaseDir = 29, @@ -141,6 +142,16 @@ typedef struct { UINT32 Padding; } VIRTIO_FS_FUSE_FSYNC_REQUEST; +// +// Header for VirtioFsFuseOpFlush. +// +typedef struct { + UINT64 FileHandle; + UINT32 Unused; + UINT32 Padding; + UINT64 LockOwner; +} VIRTIO_FS_FUSE_FLUSH_REQUEST; + // // Headers for VirtioFsFuseOpInit. // -- cgit v1.2.3