Re: multipath-tools/kpartx gpt.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> --- 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/

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel


[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux