diff options
author | Laszlo Ersek <lersek@redhat.com> | 2020-12-16 22:10:50 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-12-21 17:16:23 +0000 |
commit | 2e151d26ca83d8f2d2cdd22e14bdf95c212937c1 (patch) | |
tree | 764d2646895a66d36ce7ba81960bfc938aae81eb /OvmfPkg/Include/IndustryStandard | |
parent | 92a4d30e0449da2940ff24d159d687afc6672e9c (diff) | |
download | edk2-2e151d26ca83d8f2d2cdd22e14bdf95c212937c1.tar.gz edk2-2e151d26ca83d8f2d2cdd22e14bdf95c212937c1.tar.bz2 edk2-2e151d26ca83d8f2d2cdd22e14bdf95c212937c1.zip |
OvmfPkg/VirtioFsDxe: add a shared wrapper for FUSE_FSYNC / FUSE_FSYNCDIR
The FUSE_FSYNC and FUSE_FSYNCDIR commands only differ in the opcode. Add a
common function for wrapping both.
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3097
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20201216211125.19496-14-lersek@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'OvmfPkg/Include/IndustryStandard')
-rw-r--r-- | OvmfPkg/Include/IndustryStandard/VirtioFs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OvmfPkg/Include/IndustryStandard/VirtioFs.h b/OvmfPkg/Include/IndustryStandard/VirtioFs.h index 0241daf1e8..797d94a39a 100644 --- a/OvmfPkg/Include/IndustryStandard/VirtioFs.h +++ b/OvmfPkg/Include/IndustryStandard/VirtioFs.h @@ -87,9 +87,11 @@ typedef struct { typedef enum {
VirtioFsFuseOpForget = 2,
VirtioFsFuseOpRelease = 18,
+ VirtioFsFuseOpFsync = 20,
VirtioFsFuseOpInit = 26,
VirtioFsFuseOpOpenDir = 27,
VirtioFsFuseOpReleaseDir = 29,
+ VirtioFsFuseOpFsyncDir = 30,
} VIRTIO_FS_FUSE_OPCODE;
#pragma pack (1)
@@ -131,6 +133,15 @@ typedef struct { } VIRTIO_FS_FUSE_RELEASE_REQUEST;
//
+// Header for VirtioFsFuseOpFsync and VirtioFsFuseOpFsyncDir.
+//
+typedef struct {
+ UINT64 FileHandle;
+ UINT32 FsyncFlags;
+ UINT32 Padding;
+} VIRTIO_FS_FUSE_FSYNC_REQUEST;
+
+//
// Headers for VirtioFsFuseOpInit.
//
typedef struct {
|