コード例 #1
0
ファイル: ui.c プロジェクト: 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;
}
コード例 #2
0
ファイル: ui.c プロジェクト: 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;
}
コード例 #3
0
bool PartitionTable::is_support_name_partition()
{
    return ped_disk_type_check_feature( disk_type_, PED_DISK_TYPE_PARTITION_NAME) ? true : false ;
}
コード例 #4
0
bool PartitionTable::is_support_extended_partition()
{
    return ped_disk_type_check_feature( disk_type_, PED_DISK_TYPE_EXTENDED) ? true : false ; 
}
コード例 #5
0
/***************************************
 * feature functions
 **************************************/
bool PartitionTable::is_support_feature(PedDiskTypeFeature feature)
{
    return ped_disk_type_check_feature( disk_type_, feature) ? true : false ;
}