_PedPartition Struct Reference
[PedPartition]

PedPartition structure represents a partition. More...


Data Fields

PedDiskdisk
 the partition table of the partition
void * disk_specific
const PedFileSystemTypefs_type
 The type of file system on the partition.
PedGeometry geom
 geometry of the partition
PedPartitionnext
int num
 the partition number: In Linux, this is the same as the minor number.
PedPartitionpart_list
 Only used for an extended partition.
PedPartitionprev
PedPartitionType type
 the type of partition: a bit field of PED_PARTITION_LOGICAL, PED_PARTITION_EXTENDED, PED_PARTITION_METADATA and PED_PARTITION_FREESPACE.


Detailed Description

PedPartition structure represents a partition.


Field Documentation

const PedFileSystemType* _PedPartition::fs_type
 

The type of file system on the partition.

NULL if unknown.

int _PedPartition::num
 

the partition number: In Linux, this is the same as the minor number.

No assumption should be made about "num" and "type"

  • different disk labels have different rules.

PedPartition* _PedPartition::part_list
 

Only used for an extended partition.

The list of logical partitions (and free space and metadata within the extended partition).

PedPartitionType _PedPartition::type
 

the type of partition: a bit field of PED_PARTITION_LOGICAL, PED_PARTITION_EXTENDED, PED_PARTITION_METADATA and PED_PARTITION_FREESPACE.

Both the first two, and the last two are mutually exclusive. An extended partition is a primary partition that may contain logical partitions. There is at most one extended partition on a disk. A logical partition is like a primary partition, except it's inside an extended partition. Internally, pseudo partitions are allocated to represent free space, or disk label meta-data. These have the PED_PARTITION_FREESPACE or PED_PARTITION_METADATA bit set.


The documentation for this struct was generated from the following file:
Generated on Wed May 17 15:04:08 2006 for libparted by  doxygen 1.4.6