Commit Graph

386 Commits

Author SHA1 Message Date
Andrius Štikonas 562f523795 @dev -> @param. 2016-08-15 17:14:26 +01:00
Chantara Tith e8b2b8dd92 More documentations. 2016-08-15 22:09:59 +07:00
Chantara Tith 34844eb56b Add deactivatable check to deactivate VG operation. 2016-08-15 22:09:59 +07:00
Andrius Štikonas 50378c03bb Make sure to activate all LVM LVs on start. 2016-08-15 22:09:59 +07:00
Chantara Tith 39bf73c5ce Add all LVM devices to the bottom of the devices list. 2016-08-15 22:09:59 +07:00
Chantara Tith b48ab75b87 Remove device's partitionTable when deactivated. 2016-08-15 22:09:59 +07:00
Andrius Štikonas 6ecbaf9b2f Make variable names slightly more consistent thruoght kmpcore.
Add more doxygen comments.
2016-08-15 22:09:59 +07:00
Andrius Štikonas c64a7c6494 Simplify QStringList->QString conversion. 2016-08-15 22:09:59 +07:00
Andrius Štikonas a5bea5dfdf Simplify construction of PV list. 2016-08-15 22:09:59 +07:00
Chantara Tith 92b20929d1 Remove unused includes. 2016-08-15 22:09:59 +07:00
Chantara Tith a95fc3c2af Remove unused parameters from LvmDevice. 2016-08-15 22:09:59 +07:00
Chantara Tith c93bd24096 API changes, Refactor and Raname to a consistant interface. 2016-08-15 22:09:59 +07:00
Andrius Štikonas d47bfbb4a1 Convert some for loops into for ranged based loops. 2016-08-15 22:09:59 +07:00
Andrius Štikonas 8aef4f7431 Convert most of the remaining foreach cases. 2016-08-15 22:09:59 +07:00
Andrius Štikonas ca09b5eb79 Fix a compilation error in KPM. 2016-08-15 22:09:59 +07:00
Andrius Štikonas 7a77dc85c7 More work on C++11 for loops. 2016-08-15 22:09:59 +07:00
Andrius Štikonas ca3e012263 More work on C++11 for loops. 2016-08-15 22:09:59 +07:00
Andrius Štikonas e60b147a90 Make getFreePV const. 2016-08-15 22:09:59 +07:00
Andrius Štikonas a6b016775f Convert to C++11 for loop where it is safe (avoid detaching Qt objects). 2016-08-15 22:09:56 +07:00
Andrius Štikonas 6709ae7e79 Fix broken include guard. 2016-08-15 22:09:09 +07:00
Andrius Štikonas 63a75b356d Show the describtion of resize LVM VG as one line. 2016-08-15 22:09:09 +07:00
Andrius Štikonas 091f5cadd9 Add --force to lvm pvcreate in case there are some old file system signatures. 2016-08-15 22:09:09 +07:00
Chantara Tith 47e1391b3b A small dirty hack to keep track of all the PVs that to be added to any VG. 2016-08-15 22:09:09 +07:00
Chantara Tith 6e589b4077 Add activating LVM LV and VG. 2016-08-15 22:09:09 +07:00
Chantara Tith 388e423718 Add deactivating VG operation. 2016-08-15 22:09:09 +07:00
Chantara Tith 698e1b185e Add deactivating VG and LV jobs. 2016-08-15 22:09:09 +07:00
Chantara Tith d2c94bfd81 Add deactivating LVM LV and VG. 2016-08-15 22:09:09 +07:00
Chantara Tith a79c75c22d Decouple VG scan and system scan. 2016-08-15 22:09:09 +07:00
Chantara Tith cd6f76137c Move LVM deviceNodeList and LvPathList to public. 2016-08-15 22:09:09 +07:00
Chantara Tith b608ea9ccb Add UUID for LV filesystem. 2016-08-15 22:09:09 +07:00
Chantara Tith 5c8526b2d3 Store device pointer for RemoveVolumeGroupOperation for preview uses. 2016-08-15 22:09:09 +07:00
Chantara Tith 679bbf0574 Resizing Volume Group preview. 2016-08-15 22:09:09 +07:00
Chantara Tith 3156bd34bf Set partitionTable Last/First sector setter as public. 2016-08-15 22:09:09 +07:00
Chantara Tith a646270558 Add internal storage to LVM Device to keep track of its LVs and PVs. 2016-08-15 22:09:09 +07:00
Andrius Štikonas 107b80e2b8 Improve resizing of LVM PVs. 2016-08-15 22:09:09 +07:00
Chantara Tith 060468d6b8 Fix ResizeVolumeGroupJob Type. This fixes the build warnings. 2016-08-15 22:09:09 +07:00
Chantara Tith e1b32d6dbb LUKS static cast here should be sufficient. 2016-08-15 22:09:09 +07:00
Chantara Tith 7b100cd043 FIX LVM2 PV resize FIXME. 2016-08-15 22:09:09 +07:00
Chantara Tith bbd4abdab2 Remove hardcoded 4096 payloadOffset. 2016-08-15 22:09:09 +07:00
Chantara Tith 2fbe3e63aa Enable smartStatus for Disk Device only. 2016-08-15 22:09:09 +07:00
Chantara Tith 31e240b326 Micro optimization. calling one external function instead of two. 2016-08-15 22:09:09 +07:00
Chantara Tith 32770fbb42 Add LVM snapshotting functionality. 2016-08-15 22:09:09 +07:00
Chantara Tith fc15d66632 Reduce the calls of external functions to speed up scanning time. 2016-08-15 22:09:09 +07:00
Chantara Tith 5a1e4ed340 House-cleaning, removing finished TODO and FIXME tasks. 2016-08-15 22:09:09 +07:00
Andrius Štikonas e754e389ab Various small cleanups. 2016-08-15 22:09:09 +07:00
Andrius Štikonas 1be02963eb Remove unused header. 2016-08-15 22:09:09 +07:00
Andrius Štikonas 930d9b58ce 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 22:09:09 +07:00
Andrius Štikonas 748b48e660 Add support for lvm pvmove before doing pvresize. 2016-08-15 22:09:09 +07:00
Andrius Štikonas ce3e91c13c Do not limit number of partitions in Volume Manager Devices. 2016-08-15 22:09:09 +07:00
Andrius Štikonas 3c5f2664b8 Get rid of unused LVM flag for LVM LV. 2016-08-15 22:09:09 +07:00