svn commit: r292788 - in head/sys: geom/part sys

Andrey V. Elsukov bu7cher at yandex.ru
Mon Dec 28 08:33:11 UTC 2015


On 27.12.15 21:12, Allan Jude wrote:
> Author: allanjude
> Date: Sun Dec 27 18:12:13 2015
> New Revision: 292788
> URL: https://svnweb.freebsd.org/changeset/base/292788
> 
> Log:
>   Add some additional GPT partition types
>   
>   4 ChromeOS GPT types
>   2 Microsoft partition types
>   the new OpenBSD partition type
>   
> Modified: head/sys/geom/part/g_part.h
> ==============================================================================
> --- head/sys/geom/part/g_part.h	Sun Dec 27 17:58:58 2015	(r292787)
> +++ head/sys/geom/part/g_part.h	Sun Dec 27 18:12:13 2015	(r292788)
> @@ -37,12 +37,28 @@
>  
>  enum g_part_alias {
>  	G_PART_ALIAS_APPLE_BOOT,	/* An Apple boot partition entry. */
> +	G_PART_ALIAS_APPLE_CORE_STORAGE,/* An Apple Core Storage partition. */
>  	G_PART_ALIAS_APPLE_HFS,		/* An HFS+ file system entry. */
>  	G_PART_ALIAS_APPLE_LABEL,	/* An Apple label partition entry. */
>  	G_PART_ALIAS_APPLE_RAID,	/* An Apple RAID partition entry. */
>  	G_PART_ALIAS_APPLE_RAID_OFFLINE,/* An Apple RAID (offline) part entry.*/
>  	G_PART_ALIAS_APPLE_TV_RECOVERY,	/* An Apple TV recovery part entry. */
>  	G_PART_ALIAS_APPLE_UFS,		/* An Apple UFS partition entry. */
> +	G_PART_ALIAS_BIOS_BOOT,		/* A GRUB 2 boot partition entry. */
> +	G_PART_ALIAS_CHROMEOS_FIRMWARE,	/* A ChromeOS firmware part. entry. */
> +	G_PART_ALIAS_CHROMEOS_KERNEL,	/* A ChromeOS Kernel part. entry. */
> +	G_PART_ALIAS_CHROMEOS_RESERVED,	/* ChromeOS. Reserved for future use. */
> +	G_PART_ALIAS_CHROMEOS_ROOT,	/* A ChromeOS root part. entry. */

This enum could be used by third-party kernel module and in general it
is not good to change the order of elements here. This can break `gpart
show` output for such modules. Just for the future. :)

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20151228/86e40d19/attachment.sig>


More information about the svn-src-head mailing list