kpmcore/src/jobs
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 new job to set the GPT partition attributes 2020-06-15 17:51:42 -04:00
backupfilesystemjob.cpp Use copyjobs KAuth helper for other copying jobs too. 2018-01-24 15:45:19 +00:00
backupfilesystemjob.h Remove some debug output. 2018-01-24 15:35:11 +00:00
checkfilesystemjob.cpp Cleanup ExternalCommand interface: 2018-03-22 17:29:40 +00:00
checkfilesystemjob.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
copyfilesystemjob.cpp Replace readSectors/writeSectors backend functions. 2017-10-28 18:07:44 +01:00
copyfilesystemjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
createfilesystemjob.cpp Add support for filesystem-specific features 2020-01-12 11:58:32 +00:00
createfilesystemjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
createpartitionjob.cpp Store the generated partitition UUID after creation 2020-05-15 12:13:41 -04:00
createpartitionjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
createpartitiontablejob.cpp Checking for SoftwareRAID_Device type in partition table job. 2018-07-11 12:01:26 -03:00
createpartitiontablejob.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
createvolumegroupjob.cpp QList->QVector. 2017-08-31 10:48:10 +01:00
createvolumegroupjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
deactivatelogicalvolumejob.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
deactivatelogicalvolumejob.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
deactivatevolumegroupjob.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
deactivatevolumegroupjob.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
deletefilesystemjob.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
deletefilesystemjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
deletepartitionjob.cpp Enabling to create and delete SoftwareRAID devices' partitions. 2018-07-10 20:03:59 -03:00
deletepartitionjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
job.cpp Simplify return value logic. 2018-10-21 23:59:39 +01:00
job.h Switch JobStatus enum to scoped enum. 2018-04-12 15:18:50 +03:00
movefilesystemjob.cpp Replace readSectors/writeSectors backend functions. 2017-10-28 18:07:44 +01:00
movefilesystemjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
movephysicalvolumejob.cpp Update copyrights. 2016-11-04 14:20:11 +00:00
movephysicalvolumejob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
removevolumegroupjob.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
removevolumegroupjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
resizefilesystemjob.cpp Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
resizefilesystemjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
resizevolumegroupjob.cpp Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
resizevolumegroupjob.h Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
restorefilesystemjob.cpp Explicitely specify the scope of enum. 2018-04-07 19:54:30 +01:00
restorefilesystemjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
setfilesystemlabeljob.cpp Show error when setting file system label fails. 2018-04-13 20:21:48 +03:00
setfilesystemlabeljob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
setpartflagsjob.cpp Use smart pointers for CoreBackendPartitionTable. 2018-03-31 21:49:20 +01:00
setpartflagsjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
setpartgeometryjob.cpp Checking for SoftwareRAID_Device type in partition table job. 2018-07-11 12:01:26 -03:00
setpartgeometryjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
setpartitionattributesjob.cpp Add new job to set the GPT partition attributes 2020-06-15 17:51:42 -04:00
setpartitionattributesjob.h Add new job to set the GPT partition attributes 2020-06-15 17:51:42 -04:00
setpartitionlabeljob.cpp Fix typos 2020-05-15 11:39:55 -04:00
setpartitionlabeljob.h Add new job to set the GPT partition label 2020-03-25 11:20:01 -04:00
setpartitionuuidjob.cpp Add new job to set the GPT partition UUID 2020-05-15 12:13:17 -04:00
setpartitionuuidjob.h Add new job to set the GPT partition UUID 2020-05-15 12:13:17 -04:00
shredfilesystemjob.cpp Replace readSectors/writeSectors backend functions. 2017-10-28 18:07:44 +01:00
shredfilesystemjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00