Andrius Štikonas
3228fa081a
Use qAsConst in ranged based for loops.
2017-06-04 22:26:24 +01:00
Christian Morlok
b10577e1c7
Fix creation of encrypted volumes
...
We can't rely on the order of lsblk. Check for the type=crypt instead.
BUG: 379205
2017-04-25 19:08:14 +01:00
Andrius Štikonas
ff714f2f0e
Fix online label support.
...
Some filesystems require mountpoint while some deviceNode to change file system
label only. So split writeLabel action into online and offline actions.
2017-04-09 17:49:55 +01:00
Andrius Štikonas
7c901593b2
Use slightly more descriptive variable names.
2017-02-05 15:50:56 +00:00
Andrius Štikonas
b5b3af4b22
Use qCeil to set used sectors for luks file systems.
...
When using LUKS encrypted LVM logical volumes sector size is large and
we cannot assume that result of division is integer. Without this, number of
used extents can be underestimated by one.
2017-01-26 17:40:41 +00: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
f8ba25fdfa
Improve used space detection to use fs utils when not mounted.
2017-01-05 17:27:17 +00:00
Teo Mrnjavac
30ac4bb6ab
[Coverity] Initialize all members.
...
CID 147251
2016-12-13 16:46:36 +01:00
Teo Mrnjavac
dcf972b779
[Coverity] Initialize all members.
...
CID 154913
2016-12-13 16:40:47 +01:00
Andrius Štikonas
cbe21e7ef9
Fix online resize of encrypted volumes.
2016-12-06 21:42:44 +00:00
Andrius Štikonas
cc8a2558eb
Fix one forgotten instance of fsck.msdos -> fsck.fat.
2016-12-06 01:45:22 +00:00
Andrius Štikonas
2e960d5c00
Make initLUKS function non-static.
2016-11-30 17:18:51 +00:00
Teo Mrnjavac
52b356e45f
Make sure to always also read outerUuid.
2016-11-30 17:44:03 +01:00
Teo Mrnjavac
39ec355b70
Remove obsolete headers.
2016-11-30 16:42:03 +01:00
Teo Mrnjavac
5e40017238
Add FS::luks::outerUuid().
2016-11-30 16:42:03 +01:00
Teo Mrnjavac
eb3b90ec9e
Handle cryptsetup luksUUID failure.
2016-11-16 15:20:54 +01:00
Andrius Štikonas
bb8514e859
Fix handling of encrypted LVM physical volumes.
2016-11-03 14:21:18 +00:00
Andrius Štikonas
e47dd74635
Convert Partition*->QPointer<Partition> in LvmPV class.
2016-11-03 13:39:16 +00:00
Andrius Štikonas
5d2bb2f8af
Store list of physical volumes in a global variable.
2016-11-03 13:26:14 +00:00
Andrius Štikonas
36202cc1ad
Replace complicated QPair type with custom LvmPV class.
2016-11-02 23:06:55 +00:00
Andrius Štikonas
0827eda687
Do not run the same check twice.
...
Spotted by Kevin_Kofler.
2016-10-30 02:54:10 +00:00
Andrius Štikonas
e103c65b73
Always force LUKS password (in case crypsetup is compiled with libpwquality).
2016-10-30 02:41:24 +00: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
2414b69be1
mkfs.fat exists with code 1 when it is run without any arguments.
2016-10-30 01:15:08 +00:00
Andrius Štikonas
e765316f9e
Mark LVM PV as mounted if it is part of Volume Group.
...
* Add support for online LVM PV resize and check actions.
* Fix support for online actions inside LUKS container.
2016-10-30 01:47:29 +01:00
Andrius Štikonas
898c9a7333
mkfs.msdos->mkfs.fat
2016-10-28 22:07:52 +01:00
Andrius Štikonas
559fad9803
Show mount point for swap as "none".
...
This also silences QFileInfo warning from KMountPoint.
2016-10-03 00:14:46 +01:00
Andrius Štikonas
ee6e4469ca
Remove unused function.
2016-09-24 23:05:15 +01:00
Andrius Štikonas
aa5daf0378
Use symlinks to hfsplus (diskdev_cmds) commands.
...
Some distributions rename those commands to mkfs.hfsplus and fsck.hfsplus.
BUG: 369288
2016-09-24 17:10:16 +01:00
Andrius Štikonas
ef7680030c
Remove some no longer necessary functions.
2016-09-18 02:40:30 +01:00
Andrius Štikonas
5592c05ef3
Mark luks sector size to be constexpr.
2016-09-12 19:43:58 +01:00
Chantara Tith
874900fe72
Move initLUKS from helpers to FS::luks.
2016-09-12 23:49:20 +07:00
Chantara Tith
c70945b116
Change LUKS default logicalSectorSize to 512
2016-09-12 23:44:17 +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
7c0a32758e
Do not check for cryptsetup executable so often.
2016-09-07 15:14:25 +01:00
Andrius Štikonas
8f77c6d679
Construct list of LVM PVs from our own device list instead of using pvs.
2016-09-07 14:36:25 +01:00
Andrius Štikonas
d197b9b06e
Optimize LUKS scanning.
2016-09-06 18:21:17 +01:00
Andrius Štikonas
b95fe45d66
Fix a bug when creating a luks encrypted partition.
2016-09-06 00:25:59 +01:00
Andrius Štikonas
4b9f34b109
Do not allow mounting/umounting LVM PVs.
2016-09-06 00:14:44 +01:00
Andrius Štikonas
5e5178b3af
Initial work on storing LVM variables during initial scan.
2016-09-05 14:48:36 +01:00
Andrius Štikonas
d83ec394b1
Make Filesystem::create non-const.
2016-09-05 12:10:56 +01:00
Andrius Štikonas
b3e82d7c75
Cache LUKS specific variables during initial scan.
2016-09-04 23:32:00 +01:00
Andrius Štikonas
b5b5ac9cb4
getPESize does not have to be static.
2016-09-04 11:55:49 +01:00
Andrius Štikonas
5ab60c6dfa
Enable used space reporting for swap.
...
BUG: 367473
2016-08-29 12:12:57 +01:00
Andrius Štikonas
742905ef7f
Support setting labels online.
2016-08-26 21:16:14 +01:00
Andrius Štikonas
c84ff5b957
Use swaplabel for swap labels.
2016-08-26 18:31:14 +01:00
Andrius Štikonas
ef2c85e60f
Silence clang warning + some other small changes.
...
Fix a typo in a comment
2016-08-24 23:01:36 +01:00
Chantara Tith
28dd42839d
More documentations.
2016-08-15 17:20:50 +01:00