audk/OvmfPkg/VirtioFsDxe
Laszlo Ersek d98d7e3005 OvmfPkg/VirtioFsDxe: add a shared wrapper for FUSE_READ / FUSE_READDIRPLUS
Add the VirtioFsFuseReadFileOrDir() function, for sending the FUSE_READ or
FUSE_READDIRPLUS command to the Virtio Filesystem device.

Parsing the structured FUSE_READDIRPLUS output is complex, and cannot be
integrated into the wrapper function. Given that fact, FUSE_READ and
FUSE_READDIRPLUS turn out to need identical low-level handling, except for
the opcode. Hence the shared wrapper function.

(It's prudent to verify whether the FUSE server supports FUSE_READDIRPLUS,
so update the session init code accordingly.)

This is the first FUSE request wrapper function that deals with a variable
size tail buffer.

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-33-lersek@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
2020-12-21 17:16:23 +00:00
..
DriverBinding.c OvmfPkg/VirtioFsDxe: implement EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.OpenVolume() 2020-12-21 17:16:23 +00:00
FuseFlush.c OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_FLUSH 2020-12-21 17:16:23 +00:00
FuseForget.c OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_FORGET 2020-12-21 17:16:23 +00:00
FuseFsync.c OvmfPkg/VirtioFsDxe: add a shared wrapper for FUSE_FSYNC / FUSE_FSYNCDIR 2020-12-21 17:16:23 +00:00
FuseGetAttr.c OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_GETATTR 2020-12-21 17:16:23 +00:00
FuseInit.c OvmfPkg/VirtioFsDxe: add a shared wrapper for FUSE_READ / FUSE_READDIRPLUS 2020-12-21 17:16:23 +00:00
FuseLookup.c OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_LOOKUP 2020-12-21 17:16:23 +00:00
FuseMkDir.c OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_MKDIR 2020-12-21 17:16:23 +00:00
FuseOpen.c OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_OPEN 2020-12-21 17:16:23 +00:00
FuseOpenDir.c OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_OPENDIR 2020-12-21 17:16:23 +00:00
FuseOpenOrCreate.c OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_CREATE 2020-12-21 17:16:23 +00:00
FuseRead.c OvmfPkg/VirtioFsDxe: add a shared wrapper for FUSE_READ / FUSE_READDIRPLUS 2020-12-21 17:16:23 +00:00
FuseRelease.c OvmfPkg/VirtioFsDxe: add shared wrapper for FUSE_RELEASE / FUSE_RELEASEDIR 2020-12-21 17:16:23 +00:00
FuseStatFs.c OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_STATFS 2020-12-21 17:16:23 +00:00
FuseUnlink.c OvmfPkg/VirtioFsDxe: add a shared wrapper for FUSE_UNLINK / FUSE_RMDIR 2020-12-21 17:16:23 +00:00
Helpers.c OvmfPkg/VirtioFsDxe: add helper for formatting UEFI basenames 2020-12-21 17:16:23 +00:00
SimpleFsClose.c OvmfPkg/VirtioFsDxe: manage path lifecycle in OpenVolume, Close, Delete 2020-12-21 17:16:23 +00:00
SimpleFsDelete.c OvmfPkg/VirtioFsDxe: erase the dir. entry in EFI_FILE_PROTOCOL.Delete() 2020-12-21 17:16:23 +00:00
SimpleFsFlush.c OvmfPkg/VirtioFsDxe: implement EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.OpenVolume() 2020-12-21 17:16:23 +00:00
SimpleFsGetInfo.c OvmfPkg/VirtioFsDxe: implement EFI_FILE_PROTOCOL.GetInfo() 2020-12-21 17:16:23 +00:00
SimpleFsGetPosition.c OvmfPkg/VirtioFsDxe: implement EFI_FILE_PROTOCOL.GetPosition, .SetPosition 2020-12-21 17:16:23 +00:00
SimpleFsOpen.c OvmfPkg/VirtioFsDxe: implement EFI_FILE_PROTOCOL.GetPosition, .SetPosition 2020-12-21 17:16:23 +00:00
SimpleFsOpenVolume.c OvmfPkg/VirtioFsDxe: implement EFI_FILE_PROTOCOL.GetPosition, .SetPosition 2020-12-21 17:16:23 +00:00
SimpleFsRead.c OvmfPkg/VirtioFsDxe: implement EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.OpenVolume() 2020-12-21 17:16:23 +00:00
SimpleFsSetInfo.c OvmfPkg/VirtioFsDxe: implement EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.OpenVolume() 2020-12-21 17:16:23 +00:00
SimpleFsSetPosition.c OvmfPkg/VirtioFsDxe: implement EFI_FILE_PROTOCOL.GetPosition, .SetPosition 2020-12-21 17:16:23 +00:00
SimpleFsWrite.c OvmfPkg/VirtioFsDxe: implement EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.OpenVolume() 2020-12-21 17:16:23 +00:00
VirtioFsDxe.h OvmfPkg/VirtioFsDxe: add a shared wrapper for FUSE_READ / FUSE_READDIRPLUS 2020-12-21 17:16:23 +00:00
VirtioFsDxe.inf OvmfPkg/VirtioFsDxe: add a shared wrapper for FUSE_READ / FUSE_READDIRPLUS 2020-12-21 17:16:23 +00:00