kpmcore/src/ops
Gaël PORTAY 0ffec31e2b Add new job to set the GPT partition attributes
The GPT partition layout supports partition attributes.

The CLI sfdisk sets the partition attributes using the option
--part-attrs. See the examples below:

	$ cat <<EOF | sfdisk disk.img
	label: gpt
	type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, size=64M
	type=0FC63DAF-8483-4772-8E79-3D69D8477DE4
	EOF
	(...)

	$ sfdisk --part-attrs disk.img 1 RequiredPartition,NoBlockIOProtocol,LegacyBIOSBootable,48
	(...)

	$ sfdisk --part-attrs disk.img 2 60,61,62,63
	(...)

	$ sfdisk --dump disk.img
	(...)
	disk.img1 : start=        2048, size=      131072, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=BBE806BB-8567-A843-9FF5-9B6B35D2908E, attrs="RequiredPartition NoBlockIOProtocol LegacyBIOSBootable GUID:48"
	disk.img2 : start=      133120, size=     1963999, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=7DB39F08-C138-664B-B38E-ED2DEB549AA6, attrs="GUID:60,61,62,63"

This commit introduces the new job set-partition-attributes that is used
in the new-operation to set the attributes of the partition. The job
uses the newly introduced method setPartitionAttributes that is
implemented by the sfdisk and dummy backends.

Note: This is a copypaste of what was done for GPT partition label in
commit f585f6c (Add new job to set the GPT partition label) and GPT
partition UUID in commit 1dde035 (Add new job to set the GPT partition
UUID).

Note: RequiredPartition, NoBlockIOProtocol, LegacyBIOSBootable are
key words for 0, 1 and 2.
2020-06-15 17:51:42 -04:00
..
CMakeLists.txt Add deactivating VG operation. 2016-08-15 17:20:50 +01:00
backupoperation.cpp Add a shorter Partition::State enum names. 2018-04-09 03:46:05 +01:00
backupoperation.h Restore functionality of FileSystem::findExternal 2018-03-31 23:49:37 +01:00
checkoperation.cpp Mark LVM PV as mounted if it is part of Volume Group. 2016-10-30 01:47:29 +01:00
checkoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
copyoperation.cpp Switch to scoped name PartitionTable::Flag:: 2019-02-09 18:04:44 +00:00
copyoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
createfilesystemoperation.cpp Improve semantic markup of translations. 2016-07-17 23:41:00 +01:00
createfilesystemoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
createpartitiontableoperation.cpp Add SoftwareRAID::Status enum. 2018-07-15 13:11:50 -03:00
createpartitiontableoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
createvolumegroupoperation.cpp - Including vgName in CreateVolumeGroupOperation description. 2018-05-07 21:55:49 -03:00
createvolumegroupoperation.h - Including vgName in CreateVolumeGroupOperation description. 2018-05-07 21:55:49 -03:00
deactivatevolumegroupoperation.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
deactivatevolumegroupoperation.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
deleteoperation.cpp Operations should check LvmDevice::s_DirtyPVs instead of check pending CreateVolumeGroupOperations to search for newly LVM PVs. 2018-07-15 19:41:44 -03:00
deleteoperation.h Operations should check LvmDevice::s_DirtyPVs instead of check pending CreateVolumeGroupOperations to search for newly LVM PVs. 2018-07-15 19:41:44 -03:00
newoperation.cpp Add new job to set the GPT partition attributes 2020-06-15 17:51:42 -04:00
newoperation.h Add new job to set the GPT partition attributes 2020-06-15 17:51:42 -04:00
operation.cpp Check if PartitionNode::insert returns success. 2018-10-19 20:18:39 +01:00
operation.h d-pointerize Operation class. 2018-04-11 03:52:46 +03:00
operation_p.h Add forgotten files. 2018-04-11 15:14:17 +03:00
removevolumegroupoperation.cpp Adding LvmDevice::s_OrphanPVs shared list to store PVs paths that are member of VGs that will be deleted soon. 2018-07-23 13:34:40 -03:00
removevolumegroupoperation.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
resizeoperation.cpp Fix free space handling with LVM LVs. 2018-10-19 19:55:35 +01:00
resizeoperation.h Operations should check LvmDevice::s_DirtyPVs instead of check pending CreateVolumeGroupOperations to search for newly LVM PVs. 2018-07-15 19:41:44 -03:00
resizevolumegroupoperation.cpp Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
resizevolumegroupoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
restoreoperation.cpp Fix setting partition path when restoring partitions. 2019-05-10 02:12:07 +01:00
restoreoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
setfilesystemlabeloperation.cpp Improve semantic markup of translations. 2016-07-17 23:41:00 +01:00
setfilesystemlabeloperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
setpartflagsoperation.cpp Improve semantic markup of translations. 2016-07-17 23:41:00 +01:00
setpartflagsoperation.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00