Gaël PORTAY
0529ebfb01
Add support for setting the specific GPT type
...
The GPT partition layout defines the type of the partition using a
UUID[1]. The type of the partition is not related to the underlying
filesystem but to its functionality: rootfs, home, var, swap, esp...
The UUID 4f68bce3-e8cd-4db1-96e7-fbcaf984b709 defines the root partition
(/), the UUID 933ac7e1-2eb4-4f13-b844-0e14e2aef915 defines the home
partition (/home), the UUID 4d21b016-b534-45c2-a9fb-5c16e091fd2d defines
the variable partition (/var)... Also, the UUIDs may vary depending on
the architecture (x86, x86_64, arm or aarch64).
KPMcore guesses the type depending on the underlying filesystem.
This commit enables the setting of a more specific GPT type if it is
specified through the method Partition::setType(). It falls back to the
previous guess type if the type is left unset.
[1]: https://systemd.io/DISCOVERABLE_PARTITIONS/
2020-03-20 22:15:50 -04:00
Andrius Štikonas
28e1308ec5
Switch to scoped name PartitionTable::Flag::
...
Deprecated old style enum PartitionTable::FlagName.
This will allow to switch to scoped enum class in some future version.
2019-02-09 18:04:44 +00:00
Andrius Štikonas
f4cd7dd953
Use C++14 style deprecated attributes.
2018-09-01 18:52:15 +01:00
Andrius Štikonas
0dd5ac25fd
Revert "Remove deprecated attribute for now."
...
This reverts commit 4bcf9288e6
.
2018-06-16 19:35:09 +01:00
Andrius Štikonas
4bcf9288e6
Remove deprecated attribute for now.
...
Not available on current Neon.
2018-04-12 15:16:49 +03:00
Andrius Štikonas
4773023f75
Add migration documentation for deprecated enum values.
2018-04-12 13:47:33 +03:00
Andrius Štikonas
df449ac3d4
Mark old enum values as deprecated.
2018-04-09 13:42:36 +01:00
Andrius Štikonas
f389306964
Make sure deprecated Partition::State enums have the same values as the new ones.
2018-04-09 12:32:46 +01:00
Andrius Štikonas
b42b41bdea
Add a shorter Partition::State enum names.
...
Will be converted to enum class later.
2018-04-09 03:46:05 +01:00
Andrius Štikonas
3e7e9d8955
Sort partitions by first sector.
2017-12-21 23:16:12 +00:00
Andrius Štikonas
72dfbe480a
Replace readSectors/writeSectors backend functions.
...
New alternatives use QByteArray to store data and use bytes, not sectors.
2017-10-28 18:07:44 +01:00
Andrius Štikonas
e4c125c519
Do not over encapsulate Partition methods.
...
This caused more trouble than helped. There is no reason not to allow
e.g. settings new flags on partition or changing it's path.
2017-10-09 21:13:58 +01:00
Andrius Štikonas
d741fe4a00
Fix a typo in a comment.
2017-10-09 17:37:16 +01:00
Andrius Štikonas
17e6c32633
Fix more implicit type conversion warnings.
2017-09-11 13:41:03 +01:00
Andrius Štikonas
5433294a5b
Fix more minor clang issues.
2017-09-11 00:29:30 +01:00
Andrius Štikonas
f7e5f7c7bf
Rename KPMcore include guards.
...
clang in -Weverything mode does not like double underscore.
2017-09-10 20:12:52 +01:00
Teo Mrnjavac
a749d1c84d
Handle parent change in Partition copy constructor.
2016-12-01 19:00:39 +01:00
Andrius Štikonas
3272cd3f5f
Do not allow deactivating LUKS containers containing active LVM physical volumes.
2016-10-30 02:31:46 +00:00
Andrius Štikonas
28fa6ac5a4
Add support for GTP partition labels.
2016-09-24 22:15:15 +01:00
Andrius Štikonas
cd4a6314e7
Simplify QStringList->QString conversion.
2016-09-01 22:05:35 +01:00
Andrius Štikonas
40ff0861a8
Convert most of the remaining foreach cases.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
464b3060fb
Remove remaining ../ from #includes.
2016-05-06 22:36:24 +01:00
Andrius Štikonas
ea4b945ebb
Add override keyword to virtual functions.
2016-04-27 21:54:02 +01:00
Teo Mrnjavac
83787cbdfc
Make the parent in Partition a QPointer.
...
This also reverts commit dc9e9651ac
.
2016-04-27 16:58:17 +02:00
Andrius Štikonas
58e9876307
Rename qglobal.h to QtGlobal
2016-04-18 17:14:31 +01:00
Andrius Štikonas
626f560e52
Format kpmcore code using KDE style.
2015-07-13 17:16:36 +03:00
Teo Mrnjavac
7fa51ae067
Make it possible to set partition sectors from the outside world
2015-07-13 16:03:49 +02:00
Teo Mrnjavac
3bbce2865f
Revert "Format kpmcore code using KDE style."
...
This reverts commit 21b569e499
.
2015-07-13 16:03:36 +02:00
Andrius Štikonas
21b569e499
Format kpmcore code using KDE style.
2015-07-13 17:02:13 +03:00
Andrius Štikonas
1ef6fa8131
Move kpmcore library into its own repository.
2015-06-04 01:29:22 +01:00