TianoCore EDK2 master
|
#include "Fat.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | FatGetVolumeInfo (IN FAT_VOLUME *Volume, IN OUT UINTN *BufferSize, OUT VOID *Buffer) |
EFI_STATUS | FatSetVolumeInfo (IN FAT_VOLUME *Volume, IN UINTN BufferSize, IN VOID *Buffer) |
EFI_STATUS | FatSetOrGetInfo (IN BOOLEAN IsSet, IN EFI_FILE_PROTOCOL *FHand, IN EFI_GUID *Type, IN OUT UINTN *BufferSize, IN OUT VOID *Buffer) |
EFI_STATUS | FatGetFileInfo (IN FAT_OFILE *OFile, IN OUT UINTN *BufferSize, OUT VOID *Buffer) |
EFI_STATUS | FatGetVolumeLabelInfo (IN FAT_VOLUME *Volume, IN OUT UINTN *BufferSize, OUT VOID *Buffer) |
EFI_STATUS | FatSetVolumeLabelInfo (IN FAT_VOLUME *Volume, IN UINTN BufferSize, IN VOID *Buffer) |
EFI_STATUS | FatSetFileInfo (IN FAT_VOLUME *Volume, IN FAT_IFILE *IFile, IN FAT_OFILE *OFile, IN UINTN BufferSize, IN VOID *Buffer) |
EFI_STATUS EFIAPI | FatGetInfo (IN EFI_FILE_PROTOCOL *FHand, IN EFI_GUID *Type, IN OUT UINTN *BufferSize, OUT VOID *Buffer) |
EFI_STATUS EFIAPI | FatSetInfo (IN EFI_FILE_PROTOCOL *FHand, IN EFI_GUID *Type, IN UINTN BufferSize, IN VOID *Buffer) |
Routines dealing with setting/getting file/volume info
Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Info.c.
EFI_STATUS EFIAPI FatGetInfo | ( | IN EFI_FILE_PROTOCOL * | FHand, |
IN EFI_GUID * | Type, | ||
IN OUT UINTN * | BufferSize, | ||
OUT VOID * | Buffer | ||
) |
Get the some types info of the file into Buffer.
FHand | - The handle of file. |
Type | - The type of the info. |
BufferSize | - Size of Buffer. |
Buffer | - Buffer containing volume info. |
EFI_SUCCESS | - Get the info successfully. |
EFI_DEVICE_ERROR | - Can not find the OFile for the file. |
EFI_STATUS FatGetVolumeInfo | ( | IN FAT_VOLUME * | Volume, |
IN OUT UINTN * | BufferSize, | ||
OUT VOID * | Buffer | ||
) |
EFI_STATUS FatGetVolumeLabelInfo | ( | IN FAT_VOLUME * | Volume, |
IN OUT UINTN * | BufferSize, | ||
OUT VOID * | Buffer | ||
) |
Get the volume's label info into Buffer.
Volume | - FAT file system volume. |
BufferSize | - Size of Buffer. |
Buffer | - Buffer containing volume's label info. |
EFI_SUCCESS | - Get the volume's label info successfully. |
EFI_BUFFER_TOO_SMALL | - The buffer is too small. |
EFI_STATUS FatSetFileInfo | ( | IN FAT_VOLUME * | Volume, |
IN FAT_IFILE * | IFile, | ||
IN FAT_OFILE * | OFile, | ||
IN UINTN | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Set the file info.
Volume | - FAT file system volume. |
IFile | - The instance of the open file. |
OFile | - The open file. |
BufferSize | - Size of Buffer. |
Buffer | - Buffer containing the new file info. |
EFI_SUCCESS | - Set the file info successfully. |
EFI_ACCESS_DENIED | - It is the root directory or the directory attribute bit can not change or try to change a directory size or something else. |
EFI_UNSUPPORTED | - The new file size is larger than 4GB. |
EFI_WRITE_PROTECTED | - The disk is write protected. |
EFI_BAD_BUFFER_SIZE | - The buffer size is error. |
EFI_INVALID_PARAMETER | - The time info or attributes info is error. |
EFI_OUT_OF_RESOURCES | - Can not allocate new memory. |
EFI_VOLUME_CORRUPTED | - The volume is corrupted. |
EFI_STATUS EFIAPI FatSetInfo | ( | IN EFI_FILE_PROTOCOL * | FHand, |
IN EFI_GUID * | Type, | ||
IN UINTN | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Set the some types info of the file into Buffer.
FHand | - The handle of file. |
Type | - The type of the info. |
BufferSize | - Size of Buffer |
Buffer | - Buffer containing volume info. |
EFI_SUCCESS | - Set the info successfully. |
EFI_DEVICE_ERROR | - Can not find the OFile for the file. |
EFI_STATUS FatSetOrGetInfo | ( | IN BOOLEAN | IsSet, |
IN EFI_FILE_PROTOCOL * | FHand, | ||
IN EFI_GUID * | Type, | ||
IN OUT UINTN * | BufferSize, | ||
IN OUT VOID * | Buffer | ||
) |
Set or Get the some types info of the file into Buffer.
IsSet | - TRUE:The access is set, else is get |
FHand | - The handle of file |
Type | - The type of the info |
BufferSize | - Size of Buffer |
Buffer | - Buffer containing volume info |
EFI_SUCCESS | - Get the info successfully |
EFI_DEVICE_ERROR | - Can not find the OFile for the file |
EFI_STATUS FatSetVolumeInfo | ( | IN FAT_VOLUME * | Volume, |
IN UINTN | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Set the volume's info.
Volume | - FAT file system volume. |
BufferSize | - Size of Buffer. |
Buffer | - Buffer containing the new volume info. |
EFI_SUCCESS | - Set the volume info successfully. |
EFI_BAD_BUFFER_SIZE | - The buffer size is error. |
EFI_WRITE_PROTECTED | - The volume is read only. |
EFI_STATUS FatSetVolumeLabelInfo | ( | IN FAT_VOLUME * | Volume, |
IN UINTN | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Set the volume's label info.
Volume | - FAT file system volume. |
BufferSize | - Size of Buffer. |
Buffer | - Buffer containing the new volume label info. |
EFI_SUCCESS | - Set the volume label info successfully. |
EFI_WRITE_PROTECTED | - The disk is write protected. |
EFI_BAD_BUFFER_SIZE | - The buffer size is error. |