Commit Graph

369 Commits

Author SHA1 Message Date
Chantara Tith a8cf3e0737 Handle LUKS inside LVM. still need to fix incorrect sectorUsed. 2016-07-28 02:57:49 +07:00
Chantara Tith 4a422f8eea Display preview for LV operation. 2016-07-28 02:57:49 +07:00
Chantara Tith 72d2e175b8 Rephrashing comment. 2016-07-28 02:57:49 +07:00
Andrius Štikonas 01ef9cdc5f Fix displaying resize widget with small number of sectors. 2016-07-28 02:57:49 +07:00
Chantara Tith 7642a516c5 Add functionality to specify PE size when creating VG group. 2016-07-28 02:57:49 +07:00
Chantara Tith 10696c87a7 Fix LVM volume showing incorrect preview when creating new LV. 2016-07-28 02:57:49 +07:00
Chantara Tith 89db5b9131 Move LvmDevice member variables from 32 bits to 64 bits. 2016-07-28 02:57:49 +07:00
Chantara Tith 271b59a30b Add optional destination partitions to LVM movePV. This also helps preventing moving data back and forth when resizing. 2016-07-28 02:57:49 +07:00
Andrius Štikonas fcf65fda18 Fix integer overflow. 2016-07-28 02:57:49 +07:00
Chantara Tith 930f936b8c Handle case when the to-be-moved PV is not used. 2016-07-28 02:57:49 +07:00
Chantara Tith 5a36f03632 Initial work on Resize operation and move/resize jobs. 2016-07-28 02:57:49 +07:00
Chantara Tith 6805269dd0 Remove canRemove. 2016-07-28 02:57:49 +07:00
Chantara Tith c791280089 Refactor functions for getting list of PV and LV. 2016-07-28 02:57:49 +07:00
Chantara Tith e46af09523 Overload getPVSize for QStringList. 2016-07-28 02:57:49 +07:00
Chantara Tith 786bf82935 Move lvm2_pv functions to static. 2016-07-28 02:57:49 +07:00
Chantara Tith d216ffaaea It makes more sense to have logic for getting list of used PVs in the LvmDevice. 2016-07-28 02:57:49 +07:00
Chantara Tith d7917936e0 Handle LvmDevice's getField case when VG name is not supplied. 2016-07-28 02:57:49 +07:00
Chantara Tith faa314c87d Add LVM PV move. 2016-07-28 02:57:48 +07:00
Chantara Tith e526786d73 Initial work on removeVolume Operation and Job. 2016-07-28 02:57:48 +07:00
Chantara Tith 3898fec758 Move LVM removeVG parameter to LvmDevice instead of QString of VG name. 2016-07-28 02:57:48 +07:00
Chantara Tith ccd4cd7e4e Move createvolumegroup operation and job parameter to QStringList 2016-07-28 02:57:48 +07:00
Chantara Tith 5b92f1b411 Fix createVG PV list white space problem. 2016-07-28 02:57:48 +07:00
Chantara Tith e5714ced27 Add used and free PV scan for lvm2_pv. 2016-07-28 02:57:48 +07:00
Chantara Tith 016daaa75d Add removeVG lvmdevice. And, Change createVG to accpeting QStringList instead. 2016-07-28 02:57:48 +07:00
Chantara Tith 8b48406200 Initial work on create volume operation and job. 2016-07-28 02:57:48 +07:00
Chantara Tith 2770da7da6 Add LvmDevice createVG. 2016-07-28 02:57:48 +07:00
Chantara Tith 0ab8227d94 Add freeSetors for partitionTable 2016-07-28 02:57:48 +07:00
Chantara Tith 7851d9e93b Remove else clause 2016-07-28 02:57:48 +07:00
Chantara Tith aaa2158dc3 Move LVM totalPE to 64 bits 2016-07-28 02:57:48 +07:00
Chantara Tith 64a48d6e1c Disable createPartitionTable action for LVM device. 2016-07-28 02:57:48 +07:00
Chantara Tith a298800fe2 LVM LV resize Operation 2016-07-28 02:57:48 +07:00
Chantara Tith 503c493daf Fix LV used space. 2016-07-28 02:57:48 +07:00
Chantara Tith c0e3288741 Use partionPath for new LV partition 2016-07-28 02:57:48 +07:00
Chantara Tith cf193d6e66 Better LVM operations report 2016-07-28 02:57:48 +07:00
Chantara Tith 430f56e416 Move from creating unallocated LVM partitio manually to PartitionTable 2016-07-28 02:57:48 +07:00
Chantara Tith 86737c314e Move lvm2_pv from regex to field options. Add read used space to lvm pv 2016-07-28 02:57:48 +07:00
Chantara Tith 34810d3148 Add LVM operations 2016-07-28 02:57:48 +07:00
Chantara Tith b5262262c2 Add Label for LVM partition's filesystem 2016-07-28 02:57:48 +07:00
Chantara Tith 76800ea872 Add LVM delete partition job 2016-07-28 02:57:48 +07:00
Chantara Tith 542db88336 Fix PartitionTable sector representation and used space for LVM partition 2016-07-28 02:57:48 +07:00
Chantara Tith 0f3c4b0a8c Use KMountPoint for LvmDevice's Partition 2016-07-28 02:57:48 +07:00
Chantara Tith 5184935b3f Move scanPartitions to LVM Field 2016-07-28 02:57:48 +07:00
Chantara Tith fcfd6d2335 Move from regex to LVM Field options 2016-07-28 02:57:47 +07:00
Chantara Tith b7902cbdb9 Refactor and add UUID to LvmDevice 2016-07-28 02:57:47 +07:00
Chantara Tith 0bc72a13d4 Construct PartitionTable and Partition in LvmDevice 2016-07-28 02:57:47 +07:00
Chantara Tith b8380c69f8 Initial work on LvmDevice 2016-07-28 02:57:47 +07:00
Chantara Tith b53ab2eceb Initial Device separation 2016-07-28 02:57:47 +07:00
Chantara Tith e15e11a313 Cache lvm2_pv and luks result in finding external tool 2016-07-28 02:57:47 +07:00
Chantara Tith 8c3dbcd146 Add support for reading LVM PV info 2016-07-28 02:57:47 +07:00
Chantara Tith bfa59cdbad Implement lvm PV resizing 2016-07-28 02:57:47 +07:00