ACK: [PATCH 2/3] uefibootpath: add test for the ramdisk device path

Colin Ian King colin.king at canonical.com
Thu Dec 3 12:27:47 UTC 2015


On 03/12/15 09:02, Ivan Hu wrote:
> Sync up with uefi spec. 2.5 for new media device path, ramdisk device path
> 
> Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
> ---
>  src/uefi/uefibootpath/uefibootpath.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/src/uefi/uefibootpath/uefibootpath.c b/src/uefi/uefibootpath/uefibootpath.c
> index 2fd32d8..e19f3fa 100644
> --- a/src/uefi/uefibootpath/uefibootpath.c
> +++ b/src/uefi/uefibootpath/uefibootpath.c
> @@ -726,6 +726,16 @@ static int uefibootpath_check_dev_path(fwts_framework *fw, fwts_uefi_dev_path *d
>  				errors++;
>  			}
>  			break;
> +		case FWTS_UEFI_RAM_DISK_SUBTYPE:
> +			if (len != sizeof(fwts_ram_disk_path)) {
> +				fwts_failed(fw, LOG_LEVEL_MEDIUM, "UEFIRamDiskDevPathLength",
> +					"The length of Ram Disk Device Path is %" PRIu16 " bytes "
> +					"and differs from UEFI specification defined %" PRIu16 " bytes.",
> +					len,
> +					(uint16_t)sizeof(fwts_ram_disk_path));
> +				errors++;
> +			}
> +			break;
>  		default:
>  			fwts_log_info_verbatum(fw, "Unknown subtype of Media Device Path.");
>  			break;
> 
Acked-by: Colin Ian King <colin.king at canonical.com>



More information about the fwts-devel mailing list