Commit Graph

490 Commits

Author SHA1 Message Date
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 432e59ac67 Add support for lvm pvmove before doing pvresize. 2016-08-15 17:20:50 +01:00
Andrius Štikonas 54a78b150d Do not limit number of partitions in Volume Manager Devices. 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 12a74b4a2b Use VG as PV mount point. 2016-08-15 17:20:50 +01:00
Chantara Tith 97c20ef236 Fix Luks over LVM resizing. Hardcode 512 as the sector instead of LVM PE size. 2016-08-15 17:20:50 +01:00
Chantara Tith cbb077ffbd House-cleaning and removing irrelevant TODO. 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 0feb7a7330 Display preview for LV operation. 2016-08-15 17:20:50 +01:00
Chantara Tith 52ee15f3c0 Rephrashing comment. 2016-08-15 17:20:50 +01:00
Andrius Štikonas da0dabc50d Fix displaying resize widget with small number of sectors. 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 bef1085ce7 Fix LVM volume showing incorrect preview when creating new LV. 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
Andrius Štikonas 5edebbc32b Fix integer overflow. 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 7e9889bce6 Initial work on Resize operation and move/resize jobs. 2016-08-15 17:20:50 +01:00
Chantara Tith b211dc03e3 Remove canRemove. 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 38b324036e Overload getPVSize for QStringList. 2016-08-15 17:20:50 +01:00
Chantara Tith c26e094ca1 Move lvm2_pv functions to static. 2016-08-15 17:20:50 +01:00
Chantara Tith e8bff59040 It makes more sense to have logic for getting list of used PVs in the LvmDevice. 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 c74a61e513 Initial work on removeVolume Operation and Job. 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 0476f9df83 Move createvolumegroup operation and job parameter to QStringList 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 036ed02b29 Add used and free PV scan for lvm2_pv. 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 e5fa4cc465 Initial work on create volume operation and job. 2016-08-15 17:20:50 +01:00
Chantara Tith 32b978074f Add LvmDevice createVG. 2016-08-15 17:20:50 +01:00
Chantara Tith 3c229f8a5a Add freeSetors for partitionTable 2016-08-15 17:20:50 +01:00
Chantara Tith e9ff3c874a Remove else clause 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 e50f7e65bf Disable createPartitionTable action for LVM device. 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 49e2462919 Use partionPath for new LV partition 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 a91d65aa47 Move lvm2_pv from regex to field options. Add read used space to lvm pv 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
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