kpmcore/src/core
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
..
raid Fix minor EBN issues 2020-03-21 11:22:15 +00:00
CMakeLists.txt Allow copyblocks to be used together with small QByteArrays. 2018-10-29 00:02:12 +00:00
copysource.cpp Move kpmcore library into its own repository. 2015-06-04 01:29:22 +01:00
copysource.h Do not install some private smart include files. 2018-04-02 13:13:16 +01:00
copysourcedevice.cpp Use std::unique_ptr for CoreBackendDevices 2018-03-31 14:44:40 +01:00
copysourcedevice.h Use std::unique_ptr for CoreBackendDevices 2018-03-31 14:44:40 +01:00
copysourcefile.cpp Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copysourcefile.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
copysourceshred.cpp Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copysourceshred.h Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copytarget.cpp Move kpmcore library into its own repository. 2015-06-04 01:29:22 +01:00
copytarget.h Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copytargetbytearray.cpp Allow copyblocks to be used together with small QByteArrays. 2018-10-29 00:02:12 +00:00
copytargetbytearray.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
copytargetdevice.cpp Use std::unique_ptr for CoreBackendDevices 2018-03-31 14:44:40 +01:00
copytargetdevice.h Use std::unique_ptr for CoreBackendDevices 2018-03-31 14:44:40 +01:00
copytargetfile.cpp Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copytargetfile.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
device.cpp d-pointerize Operation class. 2018-04-11 03:52:46 +03:00
device.h Changing HardwareRAID_Device to FakeRAID_Device. 2018-07-11 11:57:56 -03:00
device_p.h d-pointerize LvmDevice class. 2018-04-09 02:40:24 +01:00
devicescanner.cpp Add scanDevices function that uses flags instead of bools. 2019-02-09 15:40:06 +00:00
devicescanner.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
diskdevice.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
diskdevice.h Reuse the d-pointer of the base class Device for the child class DiskDevice. 2018-04-09 00:35:06 +01:00
fstab.cpp On non-Linux, findBlkIdDevice() has unused parameters 2020-05-08 16:18:14 +02:00
fstab.h Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
lvmdevice.cpp Fix minor EBN issues 2020-03-21 11:22:15 +00:00
lvmdevice.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
operationrunner.cpp Revert "Try to workaround systemd automounting." 2018-04-13 01:06:32 +03:00
operationrunner.h Mark override members as such 2019-02-16 00:17:48 +01:00
operationstack.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
operationstack.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
partition.cpp Add a shorter Partition::State enum names. 2018-04-09 03:46:05 +01:00
partition.h Add new job to set the GPT partition attributes 2020-06-15 17:51:42 -04:00
partitionalignment.cpp Fix minor typo 2019-11-22 15:45:18 +02:00
partitionalignment.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
partitionnode.cpp Simplify if-return code a bit. 2016-08-31 20:14:21 +01:00
partitionnode.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
partitionrole.cpp Allow accessing untranslated partition roles. 2017-09-15 13:09:01 +01:00
partitionrole.h Allow accessing untranslated partition roles. 2017-09-15 13:09:01 +01:00
partitiontable.cpp Add a function to convert QStringList of flag names to flags. 2019-02-28 00:15:26 +00:00
partitiontable.h Add a function to convert QStringList of flag names to flags. 2019-02-28 00:15:26 +00:00
smartattribute.cpp S.M.A.R.T. attribute 178 is same as 179 2018-12-19 23:18:49 +00:00
smartattribute.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
smartattributeparseddata.cpp smart: obtain disk size in blocks. 2019-06-05 18:32:11 +01:00
smartattributeparseddata.h Use strongly typed enum for SmartAttributeUnit. 2018-04-05 23:06:52 +01:00
smartdiskinformation.cpp smart: obtain disk size in blocks. 2019-06-05 18:32:11 +01:00
smartdiskinformation.h smart: obtain disk size in blocks. 2019-06-05 18:32:11 +01:00
smartparser.cpp Fix minor issues found by EBN 2019-11-22 15:45:12 +02:00
smartparser.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
smartstatus.cpp Make S.M.A.R.T. disk temperature label show only integers. 2019-09-07 11:51:05 +01:00
smartstatus.h Fix minor EBN issues 2020-03-21 11:22:15 +00:00
volumemanagerdevice.cpp Fix minor EBN issues 2020-03-21 11:22:15 +00:00
volumemanagerdevice.h Fixing device scanning process 2019-04-03 15:37:47 -06:00
volumemanagerdevice_p.h d-pointerize LvmDevice class. 2018-04-09 02:40:24 +01:00