diff options
author | Laszlo Ersek <lersek@redhat.com> | 2020-12-16 22:10:49 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-12-21 17:16:23 +0000 |
commit | 92a4d30e0449da2940ff24d159d687afc6672e9c (patch) | |
tree | 7efb7039b1e819b21098b219ad21f5f0e1190db0 /OvmfPkg/Include/IndustryStandard | |
parent | 334c13e106ebad35a8e620f3b0f1179a1a6eaa54 (diff) | |
download | edk2-92a4d30e0449da2940ff24d159d687afc6672e9c.tar.gz edk2-92a4d30e0449da2940ff24d159d687afc6672e9c.tar.bz2 edk2-92a4d30e0449da2940ff24d159d687afc6672e9c.zip |
OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_FORGET
Add the VirtioFsFuseForget() function, for sending the FUSE_FORGET command
to the Virtio Filesystem device.
This is an unusual command in that it doesn't generate any response from
the FUSE server.
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-13-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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OvmfPkg/Include/IndustryStandard/VirtioFs.h b/OvmfPkg/Include/IndustryStandard/VirtioFs.h index 67fcf975e8..0241daf1e8 100644 --- a/OvmfPkg/Include/IndustryStandard/VirtioFs.h +++ b/OvmfPkg/Include/IndustryStandard/VirtioFs.h @@ -85,6 +85,7 @@ typedef struct { // FUSE operation codes.
//
typedef enum {
+ VirtioFsFuseOpForget = 2,
VirtioFsFuseOpRelease = 18,
VirtioFsFuseOpInit = 26,
VirtioFsFuseOpOpenDir = 27,
@@ -113,6 +114,13 @@ typedef struct { } VIRTIO_FS_FUSE_RESPONSE;
//
+// Header for VirtioFsFuseOpForget.
+//
+typedef struct {
+ UINT64 NumberOfLookups;
+} VIRTIO_FS_FUSE_FORGET_REQUEST;
+
+//
// Header for VirtioFsFuseOpRelease and VirtioFsFuseOpReleaseDir.
//
typedef struct {
|