Commit Graph

42 Commits

Author SHA1 Message Date
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 f7e5f7c7bf Rename KPMcore include guards.
clang in -Weverything mode does not like double underscore.
2017-09-10 20:12:52 +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 d6c375f959 Update copyrights. 2016-11-04 14:20:11 +00:00
Andrius Štikonas 28478ee0ad More conversion from QStringList to QList<const Partition*>. 2016-09-18 01:53:42 +01: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 c480d80273 Make LvmDevice::LVPathList public. 2016-09-05 17:28:54 +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 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 77ff25e160 Move LVM deviceNodeList and LvPathList to public. 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 c3c718615d Add LVM snapshotting functionality. 2016-08-15 17:20:50 +01:00
Andrius Štikonas 510feefc55 Various small cleanups. 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 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 17d3d9305a Refactor functions for getting list of PV and LV. 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 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 3b7eda5933 Add LVM operations 2016-08-15 17:20:50 +01:00
Chantara Tith a07e57cbb5 Add LVM delete partition job 2016-08-15 17:20:50 +01:00
Chantara Tith fedfc0d440 Fix PartitionTable sector representation and used space for LVM partition 2016-08-15 17:20:50 +01:00
Chantara Tith aeaecad6fb Move from regex to LVM Field options 2016-08-15 17:20:50 +01:00
Chantara Tith 3170e0a6a9 Refactor and add UUID to LvmDevice 2016-08-15 17:20:50 +01:00
Chantara Tith bd892fd2d6 Construct PartitionTable and Partition in LvmDevice 2016-08-15 17:20:50 +01:00
Chantara Tith 103b5343d6 Initial work on LvmDevice 2016-08-15 17:20:50 +01:00