Crate vmgstool

Source

Modulesยง

storage_backend ๐Ÿ”’
Implementation of StorageBackend for VMGS files opened in VmgsTool
uefi_nvram ๐Ÿ”’
Functions for interacting with the BIOS_NVRAM file in a VMGS file
vmgs_json ๐Ÿ”’
Schema definitions for JSON files generated by HvGuestState from a VMGSv1 file

Structsยง

FileIdArg ๐Ÿ”’
FilePathArg ๐Ÿ”’
KeyPathArg ๐Ÿ”’

Enumsยง

Error ๐Ÿ”’
ExitCode ๐Ÿ”’
Automation requires certain exit codes to be guaranteed main matches Error enum to ExitCode
OpenMode ๐Ÿ”’
Options ๐Ÿ”’
VmgsEncryptionScheme ๐Ÿ”’

Constantsยง

ONE_GIGA_BYTE ๐Ÿ”’
ONE_MEGA_BYTE ๐Ÿ”’

Functionsยง

do_main ๐Ÿ”’
extract_version ๐Ÿ”’
main ๐Ÿ”’
parse_encryption_algorithm ๐Ÿ”’
parse_file_id ๐Ÿ”’
parse_legacy_args ๐Ÿ”’
read_key_path ๐Ÿ”’
vhdfiledisk_create ๐Ÿ”’
vmgs_create ๐Ÿ”’
vmgs_dump_headers ๐Ÿ”’
vmgs_file_create ๐Ÿ”’
vmgs_file_dump_headers ๐Ÿ”’
vmgs_file_open ๐Ÿ”’
vmgs_file_query_encryption ๐Ÿ”’
vmgs_file_query_file_size ๐Ÿ”’
vmgs_file_read ๐Ÿ”’
Get data from VMGS file, and write to data_path.
vmgs_file_update_key ๐Ÿ”’
vmgs_file_validate ๐Ÿ”’
vmgs_file_validate_not_empty ๐Ÿ”’
Validate if the VMGS file is empty. This is a special case for Azure and we want to return an error code (ERROR_EMPTY) instead of ERROR_FILE_CORRUPT. A file can be empty in the following 2 cases: 1) the size is zero 2) the size is non-zero but there is no content inside the file except the footer.
vmgs_file_validate_not_v1 ๐Ÿ”’
Validate that this is not a VMGSv1 file
vmgs_file_write ๐Ÿ”’
vmgs_get_encryption_scheme ๐Ÿ”’
vmgs_open ๐Ÿ”’
vmgs_query_file_size ๐Ÿ”’
vmgs_read ๐Ÿ”’
vmgs_update_key ๐Ÿ”’
vmgs_write ๐Ÿ”’