Exemplo n.º 1
0
Arquivo: ui.c Projeto: 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;
}
Exemplo n.º 2
0
Arquivo: ui.c Projeto: 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;
}
Exemplo n.º 3
0
bool PartitionTable::is_support_name_partition()
{
    return ped_disk_type_check_feature( disk_type_, PED_DISK_TYPE_PARTITION_NAME) ? true : false ;
}
Exemplo n.º 4
0
bool PartitionTable::is_support_extended_partition()
{
    return ped_disk_type_check_feature( disk_type_, PED_DISK_TYPE_EXTENDED) ? true : false ; 
}
Exemplo n.º 5
0
/***************************************
 * feature functions
 **************************************/
bool PartitionTable::is_support_feature(PedDiskTypeFeature feature)
{
    return ped_disk_type_check_feature( disk_type_, feature) ? true : false ;
}