[parted-devel] [PATCH v2] libparted: Add support for MBR id, GPT GUID and detection of UDF filesystem

Brian C. Lane bcl at redhat.com
Tue Oct 16 21:42:35 BST 2018


On Tue, Aug 28, 2018 at 09:20:01PM +0200, Pali Rohár wrote:
> This is needed for libparted based applications (like Gparted) to correctly
> choose MBR id and GPT GUID for UDF filesystem. MBR id for UDF is 0x07 and
> GPT GUID is Microsoft Basic Data, see why: https://serverfault.com/a/829172
> 
> Without registering a new libparted fs code it is not possible to assign
> MBR id or GPT GUID.
> 
> Detection of UDF filesystem is done by checking presence of UDF VSD (NSR02
> or NSR03 identifier) and UDF AVDP at expected locations (blocks 256, -257,
> -1, 512).

Thanks! This looks good to me, and passes all my tests. I'll add a small
patch to add udf to the manpage, and to t1700 so that it also tests
detecting the filesystem. I'll push this to master at some point today.

-- 
Brian C. Lane (PST8PDT)



More information about the parted-devel mailing list