16VirtioFsSimpleFileSetPosition (
26 VirtioFsFile = VIRTIO_FS_FILE_FROM_SIMPLE_FILE (This);
31 if (VirtioFsFile->IsDirectory) {
33 return EFI_UNSUPPORTED;
36 VirtioFsFile->FilePosition = 0;
37 if (VirtioFsFile->FileInfoArray !=
NULL) {
38 FreePool (VirtioFsFile->FileInfoArray);
39 VirtioFsFile->FileInfoArray =
NULL;
42 VirtioFsFile->SingleFileInfoSize = 0;
43 VirtioFsFile->NumFileInfo = 0;
44 VirtioFsFile->NextFileInfo = 0;
51 if (Position < MAX_UINT64) {
55 VirtioFsFile->FilePosition = Position;
62 VirtioFs = VirtioFsFile->OwnerFs;
64 if (EFI_ERROR (Status)) {
68 VirtioFsFile->FilePosition = FuseAttr.Size;
VOID EFIAPI FreePool(IN VOID *Buffer)
EFI_STATUS VirtioFsFuseGetAttr(IN OUT VIRTIO_FS *VirtioFs, IN UINT64 NodeId, OUT VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE *FuseAttr)