OvmfPkg/VirtioFsDxe: add shared wrapper for FUSE_RELEASE / FUSE_RELEASEDIR
The FUSE_RELEASE and FUSE_RELEASEDIR commands only differ in the opcode. Add a common function called VirtioFsFuseReleaseFileOrDir() for sending either command. 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-11-lersek@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
This commit is contained in:
committed by
mergify[bot]
parent
b62a0c5603
commit
72d4f133e9
@@ -158,6 +158,14 @@ VirtioFsErrnoToEfiStatus (
|
||||
// Wrapper functions for FUSE commands (primitives).
|
||||
//
|
||||
|
||||
EFI_STATUS
|
||||
VirtioFsFuseReleaseFileOrDir (
|
||||
IN OUT VIRTIO_FS *VirtioFs,
|
||||
IN UINT64 NodeId,
|
||||
IN UINT64 FuseHandle,
|
||||
IN BOOLEAN IsDir
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
VirtioFsFuseInitSession (
|
||||
IN OUT VIRTIO_FS *VirtioFs
|
||||
|
Reference in New Issue
Block a user