NAME

Sys::Export::GPT::Partition - Describes a partition entry for a GPT partition table

DESCRIPTION

GPT entries are composed of Type GUID, Unique GUID, Starting LBA, Ending LBA, Flags, and partition Name. This object inherits start_lba and end_lba from Sys::Export::Extent which are actually setting device_offset and size. As a result, it is not possible to set end_lba before start_lba.

CONSTRUCTORS

new

$partition= Sys::Export::GPT::Partition->new(%attrs);

coerce

$partition= Sys::Export::GPT::Partition->new($x);

If $x is a hashref, construct a new Partition object. If $x is already a partition object, return it.

ATTRIBUTES

name

Unicode string label for the partition.

type

The GUID of the type of the partition.

guid

A GUID unique to this partition.

start_lba

See "start_lba" in Sys::Export::Extent.

end_lba

See "end_lba" in Sys::Export::Extent. Note that you must set start_lba before end_lba.

flags

Bitwise-or of flags.

VERSION

version 0.005

AUTHOR

Michael Conrad <mike@nrdvana.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Michael Conrad.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.