Andrius Štikonas
19f78ef76a
Port away from qAsConst.
2020-10-24 22:01:45 +01:00
Andrius Štikonas
85396708f4
Use Qt::SplitBehavior
...
Old version QString::SplitBehavious is now deprecated.
2020-10-13 01:23:29 +01:00
Andrius Štikonas
d68ffeadef
REUSE: SPDX style license headers for src/util.
2020-10-01 00:33:19 +01:00
Andrius Štikonas
11bb5799ec
REUSE: SPDX license headers for backend and core folders.
2020-09-20 20:33:16 +01:00
Yuri Chornoivan
62aaa90a29
Fix minor EBN issues
2020-03-21 11:22:15 +00: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
fe27ca6f29
Also update allocated PE number when resizing LVM LVs.
2018-10-14 01:11:57 +01:00
Andrius Štikonas
3e31ec1431
Fix free space handling when resizing LVM LVs.
...
BUG: 399772
2018-10-14 00:02:06 +01:00
Caio Carvalho
4b723be585
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
Andrius Štikonas
f572681684
Partially revert 252b108660
.
...
That commit broke LVM support.
2018-07-15 00:28:38 +01:00
Andrius Štikonas
252b108660
Abort LVM scanning when lvdisplay command fails.
2018-07-14 13:19:15 +01:00
Caio Carvalho
9e6cf4063a
- Refactoring LVM::pvList to be a class with static QList<LvmPV> attribute instead of extern instance.
...
- Moving LVM VG verification in canShrink, canMove, canGrow to isLVMPVinNewlyVG method at ResizeOperation.
- Don't grow LVM PVs that are being targeted by CreateVolumeGroupOperations.
2018-05-09 04:09:17 -03:00
Andrius Štikonas
dcfb9f181f
Use more C++11 initializer lists.
2018-04-23 00:09:46 +03:00
Andrius Štikonas
ee2688d4d9
Merge branch 'master' into kauth
2018-04-09 12:44:14 +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
87f0d9d0a7
micro-optimization: QStringLiteral->QLatin1Char
2018-04-09 03:18:12 +01:00
Andrius Štikonas
844f7b3d59
LvmDevice: switch away from manual pointers.
2018-04-09 03:14:30 +01:00
Andrius Štikonas
3ccd04e675
Switch Device::Type enum to enum class.
2018-04-09 02:57:45 +01:00
Andrius Štikonas
7e8bab3b4e
d-pointerize LvmDevice class.
2018-04-09 02:40:24 +01:00
Andrius Štikonas
17c8772240
Explicitely specify the scope of enum.
2018-04-07 19:54:30 +01:00
Andrius Štikonas
2760f02fbf
Move LVM device scanning code.
...
Now it's the backend's responsibility to find LVM devices.
All LVM scanning code was moved into LvmDevice::scanSystemLVM helper,
so that it is very easy to plug LVM into backend.
LVM devices are now intentionally not detected in Dummy Backend.
2017-10-06 03:17:51 +01:00
Andrius Štikonas
17e6c32633
Fix more implicit type conversion warnings.
2017-09-11 13:41:03 +01:00
Andrius Štikonas
a041090168
Port LvmDevice away from KDiskFreeSpaceInfo.
2017-09-11 12:15:37 +01:00
Andrius Štikonas
0badfebcb1
lvm: disable error channel for vgs/pvs commands.
...
Having an error channel can result in unwanted devices, e.g.:
"/dev//dev/mapper/test: read failed after 0 of 4096 at 0: Input/output error"
2017-09-04 19:55:08 +01:00
Andrius Štikonas
7dba4b8245
Record sector size in FileSystem class.
2017-09-03 15:37:14 +01:00
Andrius Štikonas
d797a47229
QList->QVector.
2017-08-31 10:48:10 +01:00
Andrius Štikonas
756c5b5beb
Use QHash instead of QMap for storing LVM LV sizes.
2017-08-31 10:16:16 +01:00
Andrius Štikonas
63ddb4e472
QList<QString> -> QStringList.
2017-06-12 12:47:17 +02:00
Andrius Štikonas
901d01185f
Do not set LUKS logical sector size to 512.
...
This breaks used space reporting for LUKS encrypted LVM LV.
2017-01-25 18:21:25 +01:00
Andrius Štikonas
2e960d5c00
Make initLUKS function non-static.
2016-11-30 17:18:51 +00:00
Andrius Štikonas
3c58349561
Make sure KDiskFreeSpaceInfo is never used for swap.
2016-11-15 17:00:59 +00:00
Andrius Štikonas
f948569fef
Pass --force to vgremove in order to allow removing deactivated volume groups.
2016-11-05 21:48:30 +00:00
Andrius Štikonas
e3214a1b48
Do not call KDiskFreeSpaceInfo::freeSpaceInfo without a non-empty mount point.
2016-11-05 20:29:31 +00:00
Andrius Štikonas
d6c375f959
Update copyrights.
2016-11-04 14:20:11 +00:00
Andrius Štikonas
724574e436
Fix creation of LVM VGs when LVM PV is encrypted.
2016-10-30 03:24:01 +00:00
Andrius Štikonas
23bf7585ed
Small typo in a comment.
2016-09-20 22:56:48 +01:00
Andrius Štikonas
28478ee0ad
More conversion from QStringList to QList<const Partition*>.
2016-09-18 01:53:42 +01:00
Chantara Tith
874900fe72
Move initLUKS from helpers to FS::luks.
2016-09-12 23:49:20 +07:00
Chantara Tith
bcd6156628
Reduce code duplication in handling mountPoint/mount/diskSpace.
2016-09-12 17:23:19 +07:00
Andrius Štikonas
123369f78b
Store the list of LVM Physical Volumes in operationStack.
...
This is necessary in order to make LVM LV formatted as LVM PV work.
2016-09-10 22:10:25 +01:00
Andrius Štikonas
70a9a0dd9a
More optimizations for LVM.
2016-09-08 01:42:04 +01:00
Andrius Štikonas
5e5178b3af
Initial work on storing LVM variables during initial scan.
2016-09-05 14:48:36 +01:00
Andrius Štikonas
b3e82d7c75
Cache LUKS specific variables during initial scan.
2016-09-04 23:32:00 +01:00
Andrius Štikonas
68539ad97a
Remove some comments about data loss.
...
lvresize --force should not cause data loss when reducing because we reduce file system first.
vgextend --yes is about overwriting number of metadata copies, so it shouldn't cause data loss either.
2016-09-01 22:22:46 +01:00
Andrius Štikonas
4889a0ef34
Remove some TODO comments.
2016-08-31 20:37:32 +01:00
Andrius Štikonas
a1ebb5205b
Round used sectors up in lvm device scanner.
2016-08-29 13:03:26 +01:00
Andrius Štikonas
5ab60c6dfa
Enable used space reporting for swap.
...
BUG: 367473
2016-08-29 12:12:57 +01:00
Chantara Tith
28dd42839d
More documentations.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
3eda1d79c6
Make sure to activate all LVM LVs on start.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
8a3c11774c
Make variable names slightly more consistent thruoght kmpcore.
...
Add more doxygen comments.
2016-08-15 17:20:50 +01:00