Lines Matching refs:disk
2 libparted - a library for manipulating disk partitions
24 /** \file disk.h */
33 /* This flag (which defaults to true) controls if disk types for
114 /** \file disk.h */
124 PedDisk* disk;
130 - different disk labels have different rules. */
142 a disk.
146 allocated to represent free space, or disk
170 * Represents a disk label (partition table).
175 const PedDiskType* type; /**< type of disk label */
191 /* disk label operations */
195 PedDisk* (*duplicate) (const PedDisk* disk);
196 void (*free) (PedDisk* disk);
197 int (*read) (PedDisk* disk);
198 int (*write) (const PedDisk* disk);
200 PedDisk *disk,
204 const PedDisk *disk,
207 const PedDisk *disk,
213 const PedDisk* disk,
240 int (*alloc_metadata) (PedDisk* disk);
241 int (*get_max_primary_partition_count) (const PedDisk* disk);
242 bool (*get_max_supported_partition_count) (const PedDisk* disk,
244 PedAlignment *(*get_partition_alignment)(const PedDisk *disk);
265 int (*disk_commit) (PedDisk* disk);
282 extern void ped_disk_destroy (PedDisk* disk);
283 extern int ped_disk_commit (PedDisk* disk);
284 extern int ped_disk_commit_to_dev (PedDisk* disk);
285 extern int ped_disk_commit_to_os (PedDisk* disk);
286 extern int ped_disk_check (const PedDisk* disk);
287 extern void ped_disk_print (const PedDisk* disk);
289 extern int ped_disk_get_primary_partition_count (const PedDisk* disk);
290 extern int ped_disk_get_last_partition_num (const PedDisk* disk);
291 extern int ped_disk_get_max_primary_partition_count (const PedDisk* disk);
292 extern bool ped_disk_get_max_supported_partition_count(const PedDisk* disk,
294 extern PedAlignment *ped_disk_get_partition_alignment(const PedDisk *disk);
296 extern int ped_disk_set_flag(PedDisk *disk, PedDiskFlag flag, int state);
297 extern int ped_disk_get_flag(const PedDisk *disk, PedDiskFlag flag);
298 extern int ped_disk_is_flag_available(const PedDisk *disk, PedDiskFlag flag);
312 extern PedPartition* ped_partition_new (const PedDisk* disk,
344 extern int ped_disk_add_partition (PedDisk* disk, PedPartition* part,
346 extern int ped_disk_remove_partition (PedDisk* disk, PedPartition* part);
347 extern int ped_disk_delete_partition (PedDisk* disk, PedPartition* part);
348 extern int ped_disk_delete_all (PedDisk* disk);
349 extern int ped_disk_set_partition_geom (PedDisk* disk, PedPartition* part,
352 extern int ped_disk_maximize_partition (PedDisk* disk, PedPartition* part,
354 extern PedGeometry* ped_disk_get_max_partition_geometry (PedDisk* disk,
356 extern int ped_disk_minimize_extended_partition (PedDisk* disk);
358 extern PedPartition* ped_disk_next_partition (const PedDisk* disk,
360 extern PedPartition* ped_disk_get_partition (const PedDisk* disk, int num);
361 extern PedPartition* ped_disk_get_partition_by_sector (const PedDisk* disk,
363 extern PedPartition* ped_disk_extended_partition (const PedDisk* disk);
365 extern PedSector ped_disk_max_partition_length (const PedDisk *disk);
366 extern PedSector ped_disk_max_partition_start_sector (const PedDisk *disk);
370 extern void _ped_disk_free (PedDisk* disk);
381 extern PedPartition* _ped_partition_alloc (const PedDisk* disk,