[dm-devel] multipath-tools/kpartx gpt.c

Christophe Varoqui christophe.varoqui at gmail.com
Wed Nov 2 21:53:52 UTC 2011


> --- multipath-tools/kpartx/gpt.c	2006/10/13 23:28:47	1.3
> +++ multipath-tools/kpartx/gpt.c	2011/10/24 13:37:18	1.3.2.1
> @@ -358,6 +358,15 @@
>  		return 0;
>  	}
>  
> +	/* Check that sizeof_partition_entry has the correct value */
> +	if (__le32_to_cpu((*gpt)->sizeof_partition_entry) != sizeof(gpt_entry)) {
> +		// printf("GUID partition entry size check failed.\n");
> +		free(*gpt);
> +		*gpt = NULL;
> +		return 0;
> +	}
> +
> +
>  	if (!(*ptes = alloc_read_gpt_entries(fd, *gpt))) {
>  		free(*gpt);
>  		*gpt = NULL;
> 
Do you want this enhancement applied to upstream kpartx ? It seems the
hole is open there at the moment.

Regards,
-- 
Christophe Varoqui
OpenSVC - Tools to scale
http://www.opensvc.com/




More information about the dm-devel mailing list