Skip to main content

Module volume_record

Module volume_record 

Structsยง

VolumeRecord
Record of a volume in the volume table.

Constantsยง

AUTORESIZE ๐Ÿ”’
Flag that makes UBI grow the volume to fill the device on the first attach.
CRC_OFFSET ๐Ÿ”’
Offset of the CRC in a record. The CRC covers the bytes before it.
FLAGS_OFFSET ๐Ÿ”’
Offset of the flags in a record.
LAYOUT_VOLUME_ID
ID of the layout volume, which stores two copies of the volume table.
MAX_NAME_LEN ๐Ÿ”’
Longest volume name in bytes.
NAME_LEN_OFFSET ๐Ÿ”’
Offset of the name length in a record.
NAME_OFFSET ๐Ÿ”’
Offset of the name in a record.
SKIP_CRC_CHECK ๐Ÿ”’
Flag that makes UBI skip the CRC check of static data.

Functionsยง

check_unique ๐Ÿ”’
Checks that no valid earlier record has the name of record or, if record has the autoresize flag, that flag too.
name ๐Ÿ”’
Returns the name of a record.
records ๐Ÿ”’
Returns the records of a volume table with the ID of their volume.