TianoCore EDK2 master
Loading...
Searching...
No Matches
Info.c File Reference
#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)
 

Detailed Description

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.

Function Documentation

◆ FatGetFileInfo()

EFI_STATUS FatGetFileInfo ( IN FAT_OFILE OFile,
IN OUT UINTN BufferSize,
OUT VOID *  Buffer 
)

Get the open file's info into Buffer.

Parameters
OFile- The open file.
BufferSize- Size of Buffer.
Buffer- Buffer containing file info.
Return values
EFI_SUCCESS- Get the file info successfully.
EFI_BUFFER_TOO_SMALL- The buffer is too small.

Definition at line 89 of file Info.c.

◆ FatGetInfo()

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.

Parameters
FHand- The handle of file.
Type- The type of the info.
BufferSize- Size of Buffer.
Buffer- Buffer containing volume info.
Return values
EFI_SUCCESS- Get the info successfully.
EFI_DEVICE_ERROR- Can not find the OFile for the file.

Definition at line 569 of file Info.c.

◆ FatGetVolumeInfo()

EFI_STATUS FatGetVolumeInfo ( IN FAT_VOLUME Volume,
IN OUT UINTN BufferSize,
OUT VOID *  Buffer 
)

Get the volume's info into Buffer.

Parameters
Volume- FAT file system volume.
BufferSize- Size of Buffer.
Buffer- Buffer containing volume info.
Return values
EFI_SUCCESS- Get the volume info successfully.
EFI_BUFFER_TOO_SMALL- The buffer is too small.

Definition at line 111 of file Info.c.

◆ FatGetVolumeLabelInfo()

EFI_STATUS FatGetVolumeLabelInfo ( IN FAT_VOLUME Volume,
IN OUT UINTN BufferSize,
OUT VOID *  Buffer 
)

Get the volume's label info into Buffer.

Parameters
Volume- FAT file system volume.
BufferSize- Size of Buffer.
Buffer- Buffer containing volume's label info.
Return values
EFI_SUCCESS- Get the volume's label info successfully.
EFI_BUFFER_TOO_SMALL- The buffer is too small.

Definition at line 171 of file Info.c.

◆ FatSetFileInfo()

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.

Parameters
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.
Return values
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.
Returns
other - An error occurred when operation the disk.

Definition at line 287 of file Info.c.

◆ FatSetInfo()

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.

Parameters
FHand- The handle of file.
Type- The type of the info.
BufferSize- Size of Buffer
Buffer- Buffer containing volume info.
Return values
EFI_SUCCESS- Set the info successfully.
EFI_DEVICE_ERROR- Can not find the OFile for the file.

Definition at line 594 of file Info.c.

◆ FatSetOrGetInfo()

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.

Parameters
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
Return values
EFI_SUCCESS- Get the info successfully
EFI_DEVICE_ERROR- Can not find the OFile for the file

Definition at line 487 of file Info.c.

◆ FatSetVolumeInfo()

EFI_STATUS FatSetVolumeInfo ( IN FAT_VOLUME Volume,
IN UINTN  BufferSize,
IN VOID *  Buffer 
)

Set the volume's info.

Parameters
Volume- FAT file system volume.
BufferSize- Size of Buffer.
Buffer- Buffer containing the new volume info.
Return values
EFI_SUCCESS- Set the volume info successfully.
EFI_BAD_BUFFER_SIZE- The buffer size is error.
EFI_WRITE_PROTECTED- The volume is read only.
Returns
other - An error occurred when operation the disk.

Definition at line 213 of file Info.c.

◆ FatSetVolumeLabelInfo()

EFI_STATUS FatSetVolumeLabelInfo ( IN FAT_VOLUME Volume,
IN UINTN  BufferSize,
IN VOID *  Buffer 
)

Set the volume's label info.

Parameters
Volume- FAT file system volume.
BufferSize- Size of Buffer.
Buffer- Buffer containing the new volume label info.
Return values
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.
Returns
other - An error occurred when operation the disk.

Definition at line 245 of file Info.c.