dtkio
dtk library for dtkio.
|
用于管理块设备上的分区 更多...
#include <dblockpartition.h>
Public 类型 | |
enum | MbrPartitionType { UnknownMbrType = -1 , EmptyMbrType = 0x00 , FAT12Type = 0x01 , XENIX_root = 0x02 , XENIX_usr = 0x03 , FAT16_Less_32M = 0x04 , Extended = 0x05 , FAT16Type = 0x06 , HPFS_NTFS = 0x07 , AIX = 0x08 , AIX_bootable = 0x09 , OS2_Boot_Manager = 0x0a , Win95_FAT32 = 0x0b , Win95_FAT32_LBA = 0x0c , Win95_FAT16_LBA = 0x0e , Win95_Extended_LBA = 0x0f , OPUS = 0x10 , Hidden_FAT12 = 0x11 , Compaq_diagnostics = 0x12 , Hidden_FAT16_Less_32M = 0x14 , Hidden_FAT16 = 0x16 , Hidden_HPFS_or_NTFS = 0x17 , AST_SmartSleep = 0x18 , Hidden_Win95_FAT32 = 0x1b , Hidden_Win95_FAT32_LBA = 0x1c , Hidden_Win95_FAT16_LBA = 0x1e , NEC_DOS = 0x24 , Plan9 = 0x39 , PartitionMagic_recovery = 0x3c , Venix_80286 = 0x40 , PPC_PReP_Boot = 0x41 , SFS = 0x42 , QNX4_dot_x = 0x4d , QNX4_dot_x_2nd_part = 0x4e , QNX4_dot_x_3rd_part = 0x4f , OnTrack_DM = 0x50 , OnTrack_DM6_Aux1 = 0x51 , CP_M = 0x52 , OnTrack_DM6_Aux3 = 0x53 , OnTrackDM6 = 0x54 , EZ_Drive = 0x55 , Golden_Bow = 0x56 , Priam_Edisk = 0x5c , SpeedStor = 0x61 , GNU_HURD_or_SysV = 0x63 , Novell_Netware_286 = 0x64 , Novell_Netware_386 = 0x65 , DiskSecure_Multi_Boot = 0x70 , PC_IX = 0x75 , Old_Minix = 0x80 , Minix_old_Linux = 0x81 , Linux_swap = 0x82 , Linux = 0x83 , OS2_hidden_C_drive = 0x84 , Linux_extended = 0x85 , NTFS_volume_set_1 = 0x86 , NTFS_volume_set_2 = 0x87 , Linux_LVM = 0x8e , Amoeba = 0x93 , Amoeba_BBT = 0x94 , BSD_OS = 0x9f , IBM_Thinkpad_hibernation = 0xa0 , FreeBSD = 0xa5 , OpenBSD = 0xa6 , NeXTSTEP = 0xa7 , NetBSD = 0xa8 , BSDI_fs = 0xa9 , BSDI_swap = 0xb7 , Boot_Wizard_hidden = 0xb8 , DRDOS_sec_FAT12 = 0xbb , DRDOS_sec_FAT16_Less_32M = 0xc1 , DRDOS_sec_FAT16 = 0xc4 , DRDOS_sec_extend = 0xc5 , Syrinx = 0xc6 , Non_FS_data = 0xc7 , Multiuser_DOS_extend = 0xd5 , CP_M_CTOS_dot_dot_dot = 0xda , Dell_Utility = 0xdb , BootIt = 0xde , DOS_access = 0xdf , DOS_R_O = 0xe1 , SpeedStor_1 = 0xe3 , BeOS_fs = 0xe4 , EFI_GPT = 0xeb , EFI_FAT12_16_32 = 0xee , Linux_PA_RISC_boot = 0xef , SpeedStor_2 = 0xf0 , SeppdStor_3 = 0xf4 , DOS_secondary = 0xf2 , Linux_raid_autodetect = 0xfd , LANstep = 0xfe , BBT = 0xff } |
Mbr 分区所涵盖的分区类型 更多... | |
enum | GptPartitionType { UnknownGptType = -1 , EmptyGptType = 0 , UnusedEntryNA = 1 , MBRPartitionSchemeNA , EFISystemPartitionNA , BIOSBootPartitionNA , IntelFastFlashPartitionNA , SonyBootPartitionNA , LenovoBootPartitionNA , MicrosoftReservedPartitionWin = 20 , BasicDataPartitionWin , LogicalDiskManagerMetaDataPartitionWin , LogicalDiskManagerDataPartitionWin , WindowsRecoveryEnvironmentWin , IBMGeneralParallelFileSystemPartitionWin , StorageSpacesPartitionWin , StorageReplicaPartitionWin , DataPartitionHPUX = 40 , ServicePartitionHPUX , LinuxFilesystemDataLinux = 50 , RAIDPartitionLinux , RootPartitionX86Linux , RootPartitionX8664Linux , RootPartitionArm32Linux , RootPartitionArm64Linux , BootPartitionLinux , SwapPartitionLinux , LogicalVolumeManagerPartitionLinux , HomePartitionLinux , ServerDataPartitionLinux , PlainDMCryptPartitionLinux , LUKSPartitionLinux , ReservedLinux , BootPartitionFreeBSD = 100 , BSDDisklabelPartitionFreeBSD , SwapPartitionFreeBSD , UnixFileSystemPartitionFreeBSD , VinumVolumeManagerPartitionFreeBSD , ZFSPartitionFreeBSD , NandfsPartitionFreeBSD , HierarchialFileSystemPlusPartitionMacOS = 120 , AppleAPFSContainerMacOS , AppleUFSContainerMacOS , ZFSMacOS , AppleRAIDPartitionMacOS , AppleRAIDPartitionOfflineMacOS , AppleBootPartitionMacOS , AppleLabelMacOS , AppleTVRecoveryPartitionMacOS , AppleCoreStorageContainerMacOS , AppleAPFSPrebootPartitionMacOS , AppleAPFSRecoveryPartitionMacOS , BootPartitionSolaris = 150 , RootPartitionSolaris , SwapPartitionSolaris , BackupPartitionSolaris , UsrPartitionSolaris , VarPartitionSolaris , HomePartitionSolaris , AlternateSectorSolaris , ReservedPartitionSolaris , SwapPartitionNetBSD = 170 , FFSPartitionNetBSD , LFSPartitionNetBSD , RAIDPartitionNetBSD , ConcatenatedPartitionNetBSD , EncryptedPartitionNetBSD , KernelChromeOS = 190 , RootfsChromeOS , FirmwareChromeOS , FutureUseChromeOS , MiniOSChromeOS , HibernateChromeOS , UsrPartitionCoreOS = 220 , ResizableRootfsCoreOS , OEMCustomizationsCoreOS , RootFilesystemOnRAIDCoreOS , HaikuBFSHaiku = 230 , BootPartitionMidnightBSD = 240 , DataPartitionMidnightBSD , SwapPartitionMidnightBSD , UnixFileSystemPartitionMidnightBSD , VinumVolumemanagerPartitionMidnightBSD , ZFSPartitionMidnightBSD , JournalCeph = 260 , DmCryptJournalCeph , OSDCeph , DmCryptOSDCeph , DiskinCreationCeph , DmCryptDiskinCreationCeph , BlockCeph , BlockDBCeph , BlockWriteAheadlogCeph , LockboxForDmCryptKeysCeph , MultipathOSDCeph , MultipathJournalCeph , MultipathBlockCeph , MultipathBlockDBCeph , MultipathblockwriteAheadogCeph , DmCryptBlockCeph , DmCryptBlockDBCeph , DmCryptBlockWriteAheadlogCeph , DmCryptLUKSjournalCeph , DmCryptLUKSBlockCeph , DmCryptLUKSBlockDBCeph , DmCryptLUKSBlockwriteAheadlogCeph , DmCryptLUKSOSDCeph , DataPartitionOpenBSD = 300 , PowerSafeFilesystemQNX = 360 , Plan9PartitionPlan9 = 370 , VmkCoreVMwareESX = 380 , VMFSFilesystemPartitionVMwareESX , VMWareReservedVMwareESX , BootloaderAndroidIA = 400 , Bootloader2AndroidIA , BootAndroidIA , RecoveryAndroidIA , MiscAndroidIA , MetadataAndroidIA , SystemAndroidIA , CacheAndroidIA , DataAndroidIA , PersistentAndroidIA , VendorAndroidIA , ConfigAndroidIA , FactoryAndroidIA , FactoryAltAndroidIA , FastbootOrTertiaryAndroidIA , OEMAndroidIA , AndroidMetaAndroid6Arm = 450 , AndroidEXTAndroid6Arm , BootONIE = 460 , ConfigONIE , PRePBootPowerPC = 470 , SharedBootloaderConfigurationFreedesktop = 480 , BasicDataPartitionAtariTOS = 490 , EncryptedDataPartitionVeraCrypt = 500 , ArcaOSType1OS2 = 510 , SPDKBlockDeviceSPDK = 520 , BareBoxStateBareboxBootloader = 530 , UBootEnvironmentUBootBootloader = 540 , StatusSoftRAID = 550 , ScratchSoftRAID , VolumeSoftRAID , CacheSoftRAID , BootloaderFuchsiaStandard = 570 , DurablemutableencryptedsystemdataFuchsiaStandard , DurablemutablebootloaderdataFuchsiaStandard , FactoryProvisionedreadOnlysystemdataFuchsiaStandard , FactoryProvisionedreadOnlybootloaderdataFuchsiaStandard , FuchsiaVolumeManagerFuchsiaStandard , VerifiedbootmetadataFuchsiaStandard , ZirconbootimageFuchsiaStandard , FuchsiaEspFuchsiaLegacy = 590 , FuchsiaSystemFuchsiaLegacy , FuchsiaDataFuchsiaLegacy , FuchsiaInstallFuchsiaLegacy , FuchsiaBlobFuchsiaLegacy , FuchsiaFvmFuchsiaLegacy , ZirconbootimageSlotAFuchsiaLegacy , ZirconbootimageSlotBFuchsiaLegacy , ZirconbootimageSlotRFuchsiaLegacy , SysConfigFuchsiaLegacy , FactoryConfigFuchsiaLegacy , BootloaderFuchsiaLegacy , GuidTestFuchsiaLegacy , VerifiedbootmetadataSlotAFuchsiaLegacy , VerifiedbootmetadataSlotBFuchsiaLegacy , VerifiedbootmetadataSlotRFuchsiaLegacy , MiscFuchsiaLegacy , EmmcBoot1FuchsiaLegacy , EmmcBoot2FuchsiaLegacy } |
Gpt 分区所涵盖的分区类型 更多... | |
Public 类型 继承自 Dtk::Mount::DBlockDevice | |
enum | PartitionTableType { InvalidPT , MBR , GPT , UnknownPT } |
磁盘分区类型 更多... | |
Public 槽 | |
void | deletePartition (const QVariantMap &options) |
用于删除当前分区 | |
void | resize (quint64 size, const QVariantMap &options) |
重新设置当前分区大小 | |
void | setFlags (quint64 flags, const QVariantMap &options) |
设置分区的标识 | |
void | setName (const QString &name, const QVariantMap &options) |
设置分区名称 | |
void | setType (const QString &type, const QVariantMap &options) |
设置分区类型 | |
void | setType (Dtk::Mount::DBlockPartition::MbrPartitionType type, const QVariantMap &options) |
设置分区类型 | |
Public 槽 继承自 Dtk::Mount::DBlockDevice | |
void | format (const QString &type, const QVariantMap &options) |
格式化设备 | |
QList< QPair< QString, QVariantMap > > | getSecretConfiguration (const QVariantMap &options) |
获取包含加密信息的配置信息 | |
void | addConfigurationItem (const QPair< QString, QVariantMap > &item, const QVariantMap &options) |
添加新的配置项 | |
void | removeConfigurationItem (const QPair< QString, QVariantMap > &item, const QVariantMap &options) |
移除配置项 | |
void | updateConfigurationItem (const QPair< QString, QVariantMap > &oldItem, const QPair< QString, QVariantMap > &newItem, const QVariantMap &options) |
更新配置项 | |
int | openDevice (const QString &mode, const QVariantMap &options) |
打开设备 | |
int | openForBackup (const QVariantMap &options) |
以只读方式打开设备以便可以按字节镜像设备内容,仅在设备未使用时该方法操作有效 | |
int | openForBenchmark (const QVariantMap &options) |
打开设备以便可以对设备进行跑分操作 | |
int | openForRestore (const QVariantMap &options) |
打开一个可写设备,用于还原设备数据,仅在设备未使用是该方法有效 | |
void | rescan (const QVariantMap &options) |
重新扫描设备 | |
QString | mount (const QVariantMap &options) |
挂载设备 | |
void | unmount (const QVariantMap &options) |
卸载设备 | |
void | setLabel (const QString &label, const QVariantMap &options) |
设置磁盘卷标 | |
void | changePassphrase (const QString &passphrase, const QString &newPassphrase, const QVariantMap &options) |
修改磁盘密码 | |
void | lock (const QVariantMap &options) |
给加密设备上锁 | |
QString | unlock (const QString &passphrase, const QVariantMap &options) |
给加密设备解锁 | |
QString | cleartextDevice () |
获取加密设备对应的明文设备对象路径 | |
信号 | |
void | flagsChanged (quint64 flags) |
告知分区标识改变 | |
void | isContainedChanged (bool isContained) |
告知包含关系改变 | |
void | isContainerChanged (bool isContainer) |
告知容器状态改变 | |
void | nameChanged (const QString &name) |
告知分区名称改变 | |
void | numberChanged (uint number) |
告知分区序号改变 | |
void | offsetChanged (quint64 offset) |
告知分区位置改变(偏移量改变) | |
void | sizeChanged (quint64 size) |
告知分区大小改变 | |
void | typeChanged (const QString &type) |
告知分区类型改变(字符串型,十六进制数或 UUID) | |
void | mbrPartitionTypeChanged (Dtk::Mount::DBlockPartition::MbrPartitionType type) |
告知 MBR 分区类型改变 | |
void | gptPartitionTypeChanged (Dtk::Mount::DBlockPartition::GptPartitionType type) |
告知 GPT 分区类型改变 | |
void | UUIDChanged (const QString &UUID) |
告知分区 UUID 改变 | |
信号 继承自 Dtk::Mount::DBlockDevice | |
void | hasFileSystemChanged (bool hasFileSystem) |
通知文件系统的有无发生变化 | |
void | hasPartitionChanged (bool hasPartition) |
通知分区有无状态发生变化 | |
void | isEncryptedChanged (bool isEncrypted) |
通知加密状态发生变化 | |
void | configurationChanged (QList< QPair< QString, QVariantMap > > configuration) |
通知配置列表发生变化 | |
void | cryptoBackingDeviceChanged (QString cryptoBackingDevice) |
通知加密设备路径发生变化 | |
void | hintAutoChanged (bool hintAuto) |
通知自动开启属性变化 | |
void | hintIconNameChanged (QString hintIconName) |
通知磁盘建议图标名称变化 | |
void | hintIgnoreChanged (bool hintIgnore) |
通知磁盘忽略属性变化 | |
void | hintNameChanged (QString hintName) |
通知磁盘建议名称发生变化 | |
void | hintPartitionableChanged (bool hintPartitionable) |
通知磁盘可分区属性发生变化 | |
void | hintSymbolicIconNameChanged (QString hintSymbolicIconName) |
通知磁盘建议符号图标名称发生变化 | |
void | idLabelChanged (QString idLabel) |
通知磁盘卷标发生变化 | |
void | idTypeChanged (QString idType) |
通知磁盘 idType 发生变化 | |
void | fsTypeChanged (QString fsType) |
通知磁盘文件系统类型发生变化 | |
void | idUUIDChanged (QString idUUID) |
通知磁盘 UUID 发生变化 | |
void | idUsageChanged (QString idUsage) |
通知磁盘 idUsage 发生变化 | |
void | idVersionChanged (QString idVersion) |
通知磁盘文件系统版本发生变化 | |
void | mDRaidChanged (QString mDRaid) |
通知磁盘阵列属性发生变化 | |
void | mDRaidMemberChanged (QString mDRaidMember) |
通知磁盘阵列成员发生变化 | |
void | preferredDeviceChanged (QByteArray preferredDevice) |
通知磁盘最佳设备描述符发生变化 | |
void | readOnlyChanged (bool readOnly) |
通知磁盘只读属性发生变化 | |
void | sizeChanged (quint64 size) |
通知磁盘大小发生变化 | |
void | symlinksChanged (QByteArrayList symlinks) |
通知磁盘设备链接发生变化 | |
void | userspaceMountOptionsChanged (QStringList userspaceMountOptions) |
通知磁盘用户态挂载选项发生变化 | |
void | ptTypeChanged () |
通知磁盘分区类型发生变化 | |
void | mountPointsChanged (const QByteArrayList &mountPoints) |
通知磁盘设备挂载点发生变化 | |
void | childConfigurationChanged (QList< QPair< QString, QVariantMap > > childConfiguration) |
通知磁盘子配置列表发生变化 | |
void | cleartextDeviceChanged (const QString &cleartextDevice) |
通知磁盘明文设备内容发生变化 | |
Public 成员函数 | |
quint64 | flags () const |
描述分区的标识 | |
bool | isContained () const |
用于判定当前分区是否包含于其他分区 | |
bool | isContainer () const |
用于判定当前分区是否是其他分区的容器 | |
QString | name () const |
获取分区名称 | |
uint | number () const |
获取当前分区在分区表中的序号 | |
quint64 | offset () const |
获取当前分区的偏移位置(字节) | |
quint64 | size () const |
获取当前分区大小(字节) | |
QString | table () const |
获取当前分区对应的分区表路径 | |
QString | type () const |
当前分区类型 | |
MbrPartitionType | mbrType () const |
获取当前 Mbr 分区的枚举类型 | |
GptPartitionType | gptType () const |
获取当前 Gpt 分区的枚举类型 | |
QString | UUID () const |
获取当前分区的 UUID | |
Public 成员函数 继承自 Dtk::Mount::DBlockDevice | |
bool | isValid () const |
判断设备是否为有效设备,若构造时传入了无效的路径,则返回 False | |
void | setWatchChanges (bool watchChanges) |
设置是否监听设备属性变化 | |
bool | watchChanges () const |
获取当前设备监听状态 | |
QString | path () const |
获取设备路径,该路径在构造对象时传入 | |
QList< QPair< QString, QVariantMap > > | configuration () const |
获取设备配置列表 | |
QString | cryptoBackingDevice () const |
获取设备的加密块设备 | |
QByteArray | device () const |
获取块设备在系统中的设备描述符 | |
quint64 | deviceNumber () const |
获取设备对应的 dev_t 设备号 | |
QString | drive () const |
获取设备对应的磁盘驱动器路径 | |
bool | hintAuto () const |
获取设备是否应自动启动 | |
QString | hintIconName () const |
获取用于展示设备的图标名称 | |
bool | hintIgnore () const |
获取设备是否应被忽略 | |
QString | hintName () const |
用于展示设备的磁盘名称 | |
bool | hintPartitionable () const |
获取设备是否可分区,软盘、光驱和 LVM 逻辑卷除外 | |
QString | hintSymbolicIconName () const |
获取用于展示设备的符号图标 | |
bool | hintSystem () const |
获取设备是否为系统内置磁盘 | |
QString | id () const |
获取设备唯一标识符 | |
QString | idLabel () const |
获取磁盘卷标,通常用于显示磁盘名称 | |
QString | idType () const |
通常情况下,用于获取设备文件系统,但在 idUsage 为非 fileSystem 时,有其他表意 | |
QString | idUUID () const |
获取设备 UUID | |
QString | idUsage () const |
获取设备 ID 用途 | |
QString | idVersion () const |
设备文件系统版本或其他结构属性 | |
QString | mDRaid () const |
如果是阵列设备,该函数返回设备的阵列对象路径 | |
QString | mDRaidMember () const |
如果设备是阵列成员,则返回阵列对象路径 | |
QByteArray | preferredDevice () const |
获取最佳设备路径,例如,对于设备 /dev/mapper/mpathk,对应的路径为 /dev/dm-9 | |
bool | readOnly () const |
获取是否为只读设备 | |
quint64 | size () const |
获取块设备大小 | |
QByteArrayList | symlinks () const |
获取设备对应的链接列表 | |
QStringList | userspaceMountOptions () const |
获取挂载时的参数列表 | |
bool | canSetLabel () const |
获取磁盘能否设置卷标 | |
bool | hasFileSystem () const |
获取设备是否有文件系统 | |
bool | hasPartition () const |
获取设备是否有分区 | |
bool | isEncrypted () const |
获取设备是否是加密设备 | |
bool | isLoopDevice () const |
获取设备是否是回环设备 | |
QByteArrayList | mountPoints () const |
获取设备挂载点列表 | |
PartitionTableType | partitionTableType () const |
获取设备分区表类型 | |
QList< QPair< QString, QVariantMap > > | childConfiguration () const |
获取设备子配置列表 | |
静态 Public 成员函数 | |
static QString | mbrTypeDescription (MbrPartitionType type) |
获取当前分区类型描述信息 | |
static QString | gptTypeDescription (GptPartitionType type) |
获取当前分区类型描述信息 | |
静态 Public 成员函数 继承自 Dtk::Mount::DBlockDevice | |
static bool | hasFileSystem (const QString &path) |
获取设备是否有文件系统 | |
static bool | hasPartition (const QString &path) |
获取设备是否有分区 | |
static bool | isEncrypted (const QString &path) |
获取设备是否是加密 | |
static bool | isLoopDevice (const QString &path) |
获取是否为回环设备 | |
属性 | |
quint64 | flags |
bool | isContained |
bool | isContainer |
QString | name |
uint | number |
quint64 | offset |
quint64 | size |
QString | table |
QString | type |
MbrPartitionType | mbrType |
GptPartitionType | gptType |
QString | UUID |
属性 继承自 Dtk::Mount::DBlockDevice | |
QString | path |
bool | watchChanges |
bool | hasFileSystem |
bool | hasPartition |
bool | isEncrypted |
bool | isLoopDevice |
QListQPair< QString, QVariantMap > | configuration |
QString | cryptoBackingDevice |
QByteArray | device |
quint64 | deviceNumber |
QString | drive |
bool | hintAuto |
QString | hintIconName |
bool | hintIgnore |
QString | hintName |
bool | hintPartitionable |
QString | hintSymbolicIconName |
bool | hintSystem |
QString | id |
QString | idLabel |
QString | idType |
QString | idUUID |
QString | idUsage |
QString | idVersion |
QString | mDRaid |
QString | mDRaidMember |
QByteArray | preferredDevice |
bool | readOnly |
quint64 | size |
QByteArrayList | symlinks |
QStringList | userspaceMountOptions |
QByteArrayList | mountPoints |
PartitionTableType | partitionTableType |
QListQPair< QString, QVariantMap > | childConfiguration |
QString | cleartextDevice |
友元 | |
DExpected< DBlockPartition * > | DDeviceManager::createBlockPartition (const QString &path, QObject *parent) |
DExpected< DBlockPartition * > | DDeviceManager::createBlockPartitionByMountPoint (const QByteArray &path, QObject *parent) |
额外继承的成员函数 | |
Protected 成员函数 继承自 Dtk::Mount::DBlockDevice | |
DBlockDevice (const QString &path, QObject *parent=nullptr) | |
DBlockDevice (DBlockDevicePrivate &dd, const QString &path, QObject *parent=nullptr) | |
Protected 属性 继承自 Dtk::Mount::DBlockDevice | |
QScopedPointer< DBlockDevicePrivate > | d_ptr |
用于管理块设备上的分区
Gpt 分区所涵盖的分区类型
Mbr 分区所涵盖的分区类型
|
slot |
用于删除当前分区
[in] | options |
quint64 DBlockPartition::flags | ( | ) | const |
描述分区的标识
|
signal |
告知分区标识改变
[out] | flags | 新的分区标识 |
|
signal |
告知 GPT 分区类型改变
[out] | type | 新的分区类型 |
GptPartitionType DBlockPartition::gptType | ( | ) | const |
获取当前 Gpt 分区的枚举类型
GptPartitionType | 枚举值 |
GptPartitionType::EmptyGptType | 无分区 |
GptPartitionType::UnknownGptType | 非 Gpt 分区或未知 Gpt 分区类型 |
|
static |
获取当前分区类型描述信息
[in] | type | 分区类型 |
bool DBlockPartition::isContained | ( | ) | const |
|
signal |
告知包含关系改变
[out] | isContained | 新的状态 |
bool DBlockPartition::isContainer | ( | ) | const |
|
signal |
告知容器状态改变
[out] | isContainer | 新的状态 |
|
signal |
告知 MBR 分区类型改变
[out] | type | 新的分区类型 |
MbrPartitionType DBlockPartition::mbrType | ( | ) | const |
获取当前 Mbr 分区的枚举类型
MbrPartitionType | 类型枚举值 |
MbrPartitionType::EmptyMbrType | 无分区 |
MbrPartitionType::UnknownMbrType | 非 Mbr 分区或未知 Mrb 分区类型 |
|
static |
获取当前分区类型描述信息
[in] | type | 分区类型 |
QString DBlockPartition::name | ( | ) | const |
获取分区名称
|
signal |
告知分区名称改变
[name] | 新分区名称 |
uint DBlockPartition::number | ( | ) | const |
|
signal |
告知分区序号改变
[out] | number | 新的序号 |
quint64 DBlockPartition::offset | ( | ) | const |
|
signal |
告知分区位置改变(偏移量改变)
[out] | offset | 新的偏移量 |
|
slot |
重新设置当前分区大小
[in] | size | 新分区大小,若传入 0 则以可能的最大值配置新分区大小 |
[in] | options |
|
slot |
设置分区的标识
[in] | flags | |
[in] | options |
|
slot |
设置分区名称
[in] | name | 分区名称 |
[in] | options |
|
slot |
设置分区类型
[in] | type | 新的分区类型 |
[in] | options |
|
slot |
设置分区类型
[in] | type | 枚举类型 |
[in] | options |
quint64 DBlockPartition::size | ( | ) | const |
获取当前分区大小(字节)
|
signal |
告知分区大小改变
[out] | size | 新大小 |
QString DBlockPartition::table | ( | ) | const |
获取当前分区对应的分区表路径
QString DBlockPartition::type | ( | ) | const |
当前分区类型
|
signal |
告知分区类型改变(字符串型,十六进制数或 UUID)
[out] | type | 新的分区类型 |
QString DBlockPartition::UUID | ( | ) | const |
获取当前分区的 UUID
|
signal |
告知分区 UUID 改变
[out] |
see QString DBlockPartition::UUID() const