kpmcore/src/jobs
Gaël PORTAY f585f6c3ad Add new job to set the GPT partition label
The GPT partition layout supports naming partitions.

The support for the partition label was added in the backend libparted
since commit 28fa6ac (Add support for GTP partition labels).

The libparted was removed later by commit 8fa1814 (Remove libparted
backend) and no backend sets the partition label.

The CLI sfdisk sets the partition label using the option --part-label.
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-label disk.img 1 efi
	(...)

	$ sfdisk --part-label disk.img 2 rootfs
	(...)

	$ sfdisk --dump disk.img
	(...)
	disk.img1 : start=        2048, size=      131072, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=D08E5B2A-4649-9F4A-AEA3-6C3048888EAA, name="efi"
	disk.img2 : start=      133120, size=     1963999, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=0BEEFE82-19EA-DC4C-BB6A-27B6DA0C3BD2, name="rootfs"

This commit introduces the new job set-partition-label that is used in
the new-operation to set the label of the partition. The job uses the
newly introduced method setPartitionLabel that is implemented by the
sfdisk and dummy backends.
2020-03-25 11:20:01 -04:00
..
CMakeLists.txt Add new job to set the GPT partition label 2020-03-25 11:20:01 -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 Rename KPMcore include guards. 2017-09-10 20:12:52 +01: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 Enabling to create and delete SoftwareRAID devices' partitions. 2018-07-10 20:03:59 -03: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 Rename KPMcore include guards. 2017-09-10 20:12:52 +01: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 Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
deactivatevolumegroupjob.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
deactivatevolumegroupjob.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01: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
setpartitionlabeljob.cpp Add new job to set the GPT partition label 2020-03-25 11:20:01 -04:00
setpartitionlabeljob.h Add new job to set the GPT partition label 2020-03-25 11:20:01 -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