OvmfPkg/VirtioFsDxe: implement EFI_FILE_PROTOCOL.GetPosition, .SetPosition
Using the functions introduced previously, we can now implement VirtioFsSimpleFileGetPosition() and VirtioFsSimpleFileSetPosition(). 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-32-lersek@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
This commit is contained in:
committed by
mergify[bot]
parent
b6b240f94f
commit
c4edb49b4f
@ -72,6 +72,7 @@ VirtioFsOpenVolume (
|
||||
VirtioFsFile->IsOpenForWriting = FALSE;
|
||||
VirtioFsFile->OwnerFs = VirtioFs;
|
||||
VirtioFsFile->CanonicalPathname = CanonicalPathname;
|
||||
VirtioFsFile->FilePosition = 0;
|
||||
VirtioFsFile->NodeId = VIRTIO_FS_FUSE_ROOT_DIR_NODE_ID;
|
||||
VirtioFsFile->FuseHandle = RootDirHandle;
|
||||
|
||||
|
Reference in New Issue
Block a user