Exemple #1
0
Fichier : ui.c Projet : bcl/parted
static int
_can_create_logical (const PedDisk* disk)
{
        if (!ped_disk_type_check_feature (disk->type, PED_DISK_TYPE_EXTENDED))
                return 0;

        return ped_disk_extended_partition (disk) != 0;
}
Exemple #2
0
Fichier : ui.c Projet : bcl/parted
static int
_can_create_extended (const PedDisk* disk)
{
        if (!_can_create_primary (disk))
                return 0;

        if (!ped_disk_type_check_feature (disk->type, PED_DISK_TYPE_EXTENDED))
                return 0;

        if (ped_disk_extended_partition (disk))
                return 0;

        return 1;
}
bool PartitionTable::is_support_name_partition()
{
    return ped_disk_type_check_feature( disk_type_, PED_DISK_TYPE_PARTITION_NAME) ? true : false ;
}
bool PartitionTable::is_support_extended_partition()
{
    return ped_disk_type_check_feature( disk_type_, PED_DISK_TYPE_EXTENDED) ? true : false ; 
}
/***************************************
 * feature functions
 **************************************/
bool PartitionTable::is_support_feature(PedDiskTypeFeature feature)
{
    return ped_disk_type_check_feature( disk_type_, feature) ? true : false ;
}