AliasTableEntry

The following definition covers the Boot Manager Alias Table in the EBR.

A Boot Manager Alias is used for items that were placed on the Boot Manager Menu by FDISK and which have since been migrated to the new LVM format. The alias text is put into the Name field of an AliasTableEntry so that, if FDISK (or another program which understands the old Boot Manager Menu format) is run, it will display something for those partitions/volumes which are on the Boot Manager Menu.

For primary partitions, the Alias Table is located within the Boot Manager partition; for logical partitions, it is located within the EBR at byte offset 0x18A.

The Alias Table has 2 entries in it, although only the first one is actually used.

This type is used internally by LVM.


#include <lvm_data.h>

/*
 * Defines the length of the alias text field.  This is a fixed-length string:
 * the alias text must be exactly this many characters in length.  The string
 * is not null-terminated.
 */
#define ALIAS_NAME_SIZE  8


typedef struct _AliasTableEntry {
    BOOLEAN     On_Boot_Manager_Menu;
    char        Name[ ALIAS_NAME_SIZE ];
} AliasTableEntry;