EFI FILE SYSTEM INFO

From PhoenixWiki

Jump to: navigation, search

Provides a GUID and a data structure that can be used with GetInfo() to get information about the system volume, and SetInfo() to set the system volume’s volume label.

Contents

GUID

#define EFI_FILE_SYSTEM_INFO_ID \
  {0x09576e93,0x6d3f,0x11d2,0x8e39,0x00,0xa0,0xc9,0x69,0x72,0x3b}

Prototype

#include EFI_PROTOCOL_DEFINITION(FileSystemInfo)

extern EFI_GUID gEfiFileSystemInfoGuid;
typedef struct {
  UINT64  Size;
  BOOLEAN ReadOnly;
  UINT64  VolumeSize;
  UINT64  FreeSpace;
  UINT32  BlockSize;
//CHAR16  VolumeLabel[];
} EFI_FILE_SYSTEM_INFO;

Member

Member Description
Size Size of the EFI_FILE_SYSTEM_INFO structure, including the Null-terminated VolumeLabel string.
ReadOnly TRUE if the volume only supports read access.
VolumeSize The number of bytes managed by the file system.
FreeSpace The number of available bytes for use by the file system.
BlockSize The nominal block size by which files are typically grown.
VolumeLabel The Null-terminated string that is the volume’s label.

Description

The EFI_FILE_SYSTEM_INFO data structure is an information structure that can be obtained on the root directory file handle. The root directory file handle is the file handle first obtained on the initial call to the HandleProtocol() function to open the file system interface. All of the fields are read-only except for VolumeLabel.

The system volume’s VolumeLabel can be created or modified by calling SetInfo() with an updated VolumeLabel field.


Copyright (C) 2008,2010 Phoenix Technologies Ltd. All Rights Reserved. Portions copyright (C) 2008 UEFI Forum, Inc. Used with permission.

Personal tools