Commit Graph

188 Commits

Author SHA1 Message Date
Andrius Štikonas 773cbf6d3b Newly created / to be removed LVM PVs in Resize VG dialog
Port changes from Create VG dialog:
Commit: af9fbe8a4f
2018-07-16 00:20:00 +01:00
Caio Carvalho b68db554f6 Operations should check LvmDevice::s_DirtyPVs instead of check pending CreateVolumeGroupOperations to search for newly LVM PVs. 2018-07-15 19:43:44 -03:00
Caio Carvalho a606306e79 Showing SoftwareRAID device properties and allowing to create RAID device partition table. 2018-07-11 12:23:10 -03:00
Caio Carvalho dfca46250e - Passing list of pending operations as argument to ResizeOperation::canGrow.
- Access LVM::pvList through static list attribute.
2018-05-09 04:15:28 -03:00
Caio Carvalho 556a5a22ba Don't delete, shrink or move LVM PVs that are being targeted by CreateVolumeGroupOperations. 2018-05-07 22:16:58 -03:00
Caio Carvalho af9fbe8a4f - Allow creating LVM VG with PVs that are going to be created in OperationStack.
- Check if there is another CreateVolumeGroupOperation with the LVM PV before listing it in the LVM VG creation widget.
- Disallow creating VG with some PV that will be deleted.
2018-05-03 20:50:42 -03:00
Andrius Štikonas 2846f9adba Set KAuth parent widget. 2018-04-15 01:35:55 +03:00
Andrius Štikonas 93f18ebd9f Show MainWindow before KAuth dialog. 2018-04-15 01:03:41 +03:00
Andrius Štikonas 1344021e1b Move KAuth helper setup code to ExternalCommand class. 2018-04-14 23:56:10 +03:00
Andrius Štikonas c0385aca3c CoreBackendManager -> CoreBackendManager::self(). 2018-04-13 14:25:11 +03:00
Andrius Štikonas e9ac1cf977 Adjust to kpmcore enum changes. 2018-04-09 15:14:48 +01:00
Andrius Štikonas 96693a8455 Switch Device::Type enum to enum class. 2018-04-09 02:58:03 +01:00
Huzaifa Faruqui bf65a186bd Removed config option to apply operations as non-root 2018-04-04 00:31:14 +05:30
Andrius Štikonas cc73b6c9ce Move external command helper stopping code to kpmcore. 2018-03-21 20:51:10 +01:00
Andrius Štikonas 60e86c3ad6 Stop ExternalCommandHelper before quiting the application. 2018-03-19 02:34:30 +01:00
Andrius Štikonas e512ed337a Use qOverload in Qt signal/slots. 2017-10-09 13:54:31 +01:00
Andrius Štikonas eb6478aa49 Fix a broken QRegularExpression in LVM VG name validator. 2017-10-06 23:16:30 +01:00
Andrius Štikonas 24237a6120 Change a way untranslated file system name is accessed. 2017-09-15 12:47:28 +01:00
Andrius Štikonas 4b4198c34a Use untranslated file system name when importing partition table.
BUG: 364648
2017-09-14 14:47:39 +01:00
Andrius Štikonas ff45763427 Record sector size in FileSystem class. 2017-09-03 16:01:48 +01:00
Andrius Štikonas 4c46d7ad0b Adapt to kpmcore QList->QVector changes. 2017-08-31 10:49:26 +01:00
Andrius Štikonas 482c1f63a3 std::vector->QVector. 2017-08-31 10:34:58 +01:00
Andrius Štikonas e3c14dbbb4 Convert pvList to std::vector.
We do not need to insert elements at arbitrary locations,
so vector should be sufficient.

Postpone changes in kpmcore till later to avoid breaking API.
2017-06-05 00:28:22 +01:00
Andrius Štikonas 255e34bf9e Port from deprecated ui() to uiDelegate() 2017-04-11 20:49:46 +01:00
Andrius Štikonas 3eddfe2374 Use new kpmcore function to check whether LVM VG can be removed. 2016-11-05 15:35:27 +00:00
Andrius Štikonas 46ae0c73a8 Store list of physical volumes in a global variable. 2016-11-03 13:26:23 +00:00
Andrius Štikonas b2520a8dc6 Refresh actions after LVM VG deactivate job. 2016-10-30 02:32:26 +00:00
Andrius Štikonas fea271330d Use cached values for resizing volume groups. 2016-09-24 21:09:16 +01:00
Andrius Štikonas 5bebcfbbc8 More conversion from QStringList to QList<const Partition*>.
listPhysicalVolumes::checkedItems is now QList based.
2016-09-18 01:55:14 +01:00
Andrius Štikonas e2afd2c683 Avoid calling lvm command to list Volume Groups in CreateNewVolumeGroup dialog. 2016-09-11 02:54:16 +01:00
Andrius Štikonas 280ba106e8 Store the list of LVM Physical Volumes in operationStack. 2016-09-10 22:10:11 +01:00
Andrius Štikonas da663169f7 Adapt to kpmcore changes regarding LVM PV detection. 2016-09-07 14:36:59 +01:00
Andrius Štikonas e7d2a21599 Hide encrypt/decrypt action for non luks partitions. 2016-09-06 00:34:16 +01:00
Andrius Štikonas 29cb8f6201 Replace 2 cases of getLVs with LVPathList. 2016-09-05 17:29:09 +01:00
Andrius Štikonas 19cd61dad0 Update to latest KPMcore API (cache luks specific values during the scan). 2016-09-04 23:34:16 +01:00
Andrius Štikonas 614503a910 Rename Volume->VolumeGroup. 2016-09-04 12:25:43 +01:00
Andrius Štikonas 46b2c16131 Use lvm2_pvFS pointer to call member functions. 2016-09-04 11:58:46 +01:00
Andrius Štikonas e7ac5e5fa2 Q_FOREACH porting. 2016-09-01 00:44:33 +01:00
Andrius Štikonas c3664c42b1 Improve descriptions of LVM actions. 2016-08-25 15:51:15 +01:00
Andrius Štikonas 94ef37623e Add About KPMcore Library action. 2016-08-25 00:15:07 +01:00
Chantara Tith 9c6aae990a Use deactivate VG operation to check if a volume is deactivatable. 2016-08-15 17:38:00 +01:00
Andrius Štikonas bd2db0ceef Hide smart status and create partition table operations for non Disk Devices. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 25e33357d2 Disable resizing or deactivating deactivated LVM volume groups. 2016-08-15 17:38:00 +01:00
Andrius Štikonas b8c1acc7b6 Do not allow deactivating LVM VG devices that have mounted partitions. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 22173b75a6 Show disabled remove volume group operation for non-empty Volume Groups. 2016-08-15 17:38:00 +01:00
Chantara Tith 81daeba1d5 Change deactivate VG action icon to 'media-eject' 2016-08-15 17:38:00 +01:00
Chantara Tith c0d11a9025 Manually call deactivate VG operation's preview. 2016-08-15 17:38:00 +01:00
Chantara Tith f5a7a324ff Deactivate Volume Group right away without Apply operation. 2016-08-15 17:38:00 +01:00
Chantara Tith f167642d87 Set LVM operations/actions to invisible when other device is selected. 2016-08-15 17:38:00 +01:00
Andrius Štikonas a379c4ab31 Also add deactivate volume group action to .rc file. 2016-08-15 17:38:00 +01:00