pub(crate) fn vmgs_file_validate_not_empty(file: &File) -> Result<(), Error>
Expand description
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.