OvmfPkg/VirtioFsDxe: add helper for determining file size update
Add the VirtioFsGetFuseSizeUpdate() function, for determining whether an EFI_FILE_PROTOCOL.SetInfo() invocation requests a file size update. 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-46-lersek@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
This commit is contained in:
committed by
mergify[bot]
parent
647340b0ce
commit
6c33d7b2b1
@@ -282,6 +282,14 @@ VirtioFsFuseDirentPlusToEfiFileInfo (
|
||||
IN OUT EFI_FILE_INFO *FileInfo
|
||||
);
|
||||
|
||||
VOID
|
||||
VirtioFsGetFuseSizeUpdate (
|
||||
IN EFI_FILE_INFO *Info,
|
||||
IN EFI_FILE_INFO *NewInfo,
|
||||
OUT BOOLEAN *Update,
|
||||
OUT UINT64 *Size
|
||||
);
|
||||
|
||||
//
|
||||
// Wrapper functions for FUSE commands (primitives).
|
||||
//
|
||||
|
Reference in New Issue
Block a user