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
Chantara Tith
426a9385cd
Remove unused includes.
2016-08-15 17:20:50 +01:00
Chantara Tith
69536b1129
Remove unused parameters from LvmDevice.
2016-08-15 17:20:50 +01:00
Chantara Tith
6fd0c7a0db
API changes, Refactor and Raname to a consistant interface.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
16a2d063e3
More work on C++11 for loops.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
a10c8d3aaa
Convert to C++11 for loop where it is safe (avoid detaching Qt objects).
2016-08-15 17:20:50 +01:00
Chantara Tith
25bbce4975
A small dirty hack to keep track of all the PVs that to be added to any VG.
2016-08-15 17:20:50 +01:00
Chantara Tith
6915187fb2
Add activating LVM LV and VG.
2016-08-15 17:20:50 +01:00
Chantara Tith
ca2bbb27d7
Add deactivating LVM LV and VG.
2016-08-15 17:20:50 +01:00
Chantara Tith
5befd7484e
Decouple VG scan and system scan.
2016-08-15 17:20:50 +01:00
Chantara Tith
4b7289fa0d
Add UUID for LV filesystem.
2016-08-15 17:20:50 +01:00
Chantara Tith
53b154fe16
Add internal storage to LVM Device to keep track of its LVs and PVs.
2016-08-15 17:20:50 +01:00
Chantara Tith
5447768a76
LUKS static cast here should be sufficient.
2016-08-15 17:20:50 +01:00
Chantara Tith
20c79023c8
Micro optimization. calling one external function instead of two.
2016-08-15 17:20:50 +01:00
Chantara Tith
c3c718615d
Add LVM snapshotting functionality.
2016-08-15 17:20:50 +01:00
Chantara Tith
484c1765ed
Reduce the calls of external functions to speed up scanning time.
2016-08-15 17:20:50 +01:00
Chantara Tith
87e9bf9cb5
House-cleaning, removing finished TODO and FIXME tasks.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
510feefc55
Various small cleanups.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
2a62bc4b14
Fix crashes in LVM scanner when external device is unplugged without deactivating LVM partitions.
...
This commit removes stderror channel from output of external commands.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
fd8c81921e
Get rid of unused LVM flag for LVM LV.
2016-08-15 17:20:50 +01:00
Chantara Tith
1c7dd64e68
Move LVM scanning logic from DeviceScanner to LvmDevice.
2016-08-15 17:20:50 +01:00
Chantara Tith
4d78cad920
Deactivate VG before removing it.
2016-08-15 17:20:50 +01:00
Chantara Tith
0952ffb11f
Hardcode LUKS payload offset return value in byte size instead of sector number.
2016-08-15 17:20:50 +01:00
Chantara Tith
27290f04f3
Handle LUKS inside LVM. still need to fix incorrect sectorUsed.
2016-08-15 17:20:50 +01:00
Chantara Tith
52ee15f3c0
Rephrashing comment.
2016-08-15 17:20:50 +01:00
Chantara Tith
254ac012af
Add functionality to specify PE size when creating VG group.
2016-08-15 17:20:50 +01:00
Chantara Tith
85c7106ab9
Move LvmDevice member variables from 32 bits to 64 bits.
2016-08-15 17:20:50 +01:00
Chantara Tith
042878b66f
Add optional destination partitions to LVM movePV. This also helps preventing moving data back and forth when resizing.
2016-08-15 17:20:50 +01:00
Chantara Tith
3d0df854b5
Handle case when the to-be-moved PV is not used.
2016-08-15 17:20:50 +01:00
Chantara Tith
17d3d9305a
Refactor functions for getting list of PV and LV.
2016-08-15 17:20:50 +01:00
Chantara Tith
c5472f2162
Handle LvmDevice's getField case when VG name is not supplied.
2016-08-15 17:20:50 +01:00
Chantara Tith
0cfc323f84
Add LVM PV move.
2016-08-15 17:20:50 +01:00
Chantara Tith
ef7b4003b7
Move LVM removeVG parameter to LvmDevice instead of QString of VG name.
2016-08-15 17:20:50 +01:00
Chantara Tith
ad23d6cbce
Fix createVG PV list white space problem.
2016-08-15 17:20:50 +01:00
Chantara Tith
167432844e
Add removeVG lvmdevice. And, Change createVG to accpeting QStringList instead.
2016-08-15 17:20:50 +01:00
Chantara Tith
32b978074f
Add LvmDevice createVG.
2016-08-15 17:20:50 +01:00
Chantara Tith
818ab34ce9
Move LVM totalPE to 64 bits
2016-08-15 17:20:50 +01:00
Chantara Tith
fd3580e62f
LVM LV resize Operation
2016-08-15 17:20:50 +01:00
Chantara Tith
ff2bf7b022
Fix LV used space.
2016-08-15 17:20:50 +01:00
Chantara Tith
41d6a21bf2
Better LVM operations report
2016-08-15 17:20:50 +01:00
Chantara Tith
ab6df5ff86
Move from creating unallocated LVM partitio manually to PartitionTable
2016-08-15 17:20:50 +01:00
Chantara Tith
3b7eda5933
Add LVM operations
2016-08-15 17:20:50 +01:00
Chantara Tith
933ecc9cce
Add Label for LVM partition's filesystem
2016-08-15 17:20:50 +01:00