Commit Graph

1364 Commits

Author SHA1 Message Date
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
Andrius Štikonas 2137fa58b8 Explicitely specify the scope of FileSystem::Type enum. 2018-04-07 19:54:55 +01:00
Andrius Štikonas 3c9d85d842 Use enums instead of ints when choosing filesystem color in KConfig. 2018-04-07 19:05:05 +01:00
Andrius Štikonas f42da524fc enum -> enum class. 2018-04-05 22:00:06 +01:00
Andrius Štikonas 3eae84de13 Adapt to kpmcore API changes std::array->std::vector. 2018-04-05 21:54:55 +01:00
Huzaifa Faruqui bf65a186bd Removed config option to apply operations as non-root 2018-04-04 00:31:14 +05:30
l10n daemon script 8c8e8f8b47 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-04-03 05:28:21 +02:00
l10n daemon script 8b355027e5 GIT_SILENT made messages (after extraction) 2018-04-03 03:29:14 +02:00
Andrius Štikonas 3aed3ccd93 Remove obsolete CHS information. 2018-04-02 14:01:43 +01:00
Andrius Štikonas 73fef8d69c Revert "Unnecessary use of a pointer for MainWindow."
This reverts commit f33695eb2f.
2018-04-02 13:01:56 +01:00
Andrius Štikonas f33695eb2f Unnecessary use of a pointer for MainWindow. 2018-04-02 01:25:21 +01:00
Andrius Štikonas 6f8cde5520 Use for loop with iterators when removing mount points. 2018-04-01 18:47:45 +01:00
Andrius Štikonas b38db099e0 Merge branch 'master' into kauth 2018-03-31 20:29:15 +01:00
Abhijeet Sharma e54510b881 Multiple mount point support in EditMountPointDialog
Multiple mount points can also be modified and removed from fstab.

Differential Revision: https://phabricator.kde.org/D11632
2018-03-31 20:27:05 +01:00
Andrius Štikonas 2bbf89af28 Fix mutex logic for cancelling operations. 2018-03-31 20:17:38 +01:00
Andrius Štikonas c40a729ba7 Do not allow the second instance of Partition Manager.
BUG: 365882
2018-03-24 22:26:45 +00:00
Caio Carvalho 079e423abd - Including tooltip for SMART attribute description. 2018-03-24 16:16:50 -03:00
Andrius Štikonas d37c0ef9ce Revert "Disallow executing KDE Partition Manager as root."
This reverts commit cfa53f6d3c.
2018-03-22 20:13:58 +00:00
Andrius Štikonas cfa53f6d3c Disallow executing KDE Partition Manager as root.
Summary:
Running GUI applications as root is a huge security risk. Especially
the X server is not secured for that. Non-root applications can easily
interact with a root running application and thus try to exploit simple
bugs in either kate/kwrite itself or in the underlying libraries such
as Qt, XLib or xcb.

On Wayland the situation can be considered worse as the compositor is
running as the normal user and is not protected to handle root windows.
It can be rather trivial to attack the root running application from the
compositor through interfaces such as scripting. This is not in the aim
of the compositors to protect against.

This change introduces a check whether the application is started as
root before any interaction with X or Wayland happens, that is prior to
creating the QApplication. If it is detected that we run as root, we
exit and print an information about how to properly edit an application
in kwrite/kate as root. The text is deliberatly not translated to keep
the threat from running as root as low as possible.

See also Differential Revision: https://phabricator.kde.org/D4634
2018-03-22 17:39:04 +00:00
abhijeet sharma a38a6cd35d Fixed the "remove existing mount point" bug
Summary:
The QString "contains method" is also searching for empty QStrings.
Due to this all entries in /etc/fstab were removed . After this patch it is
searching for only non-empty strings in removeMountPoint() function.

Reviewers: stikonas

Reviewed By: stikonas

Tags: #kde_partition_manager

Differential Revision: https://phabricator.kde.org/D11542
2018-03-22 01:29:13 +05:30
Andrius Štikonas cc73b6c9ce Move external command helper stopping code to kpmcore. 2018-03-21 20:51:10 +01:00
Andrius Štikonas 62a3b57c2d Remove --dontsu command line option. 2018-03-19 16:24:49 +01:00
Andrius Štikonas a1a535cb03 Remove checkPermissions code. 2018-03-19 02:45:18 +01:00
Andrius Štikonas 60e86c3ad6 Stop ExternalCommandHelper before quiting the application. 2018-03-19 02:34:30 +01:00
Andrius Štikonas 98209f90bc No need to explicitely set enum values. 2018-03-03 16:39:52 +00:00
Abhijeet Sharma be07085500 Add possibility to remove an existing mount point
User is able to remove an existing Mount point via
Partition -> Edit Mount Point -> Remove.

Differential Revision: https://phabricator.kde.org/D10514
2018-03-03 16:37:58 +00:00
l10n daemon script 7dd9e17a8c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-03-03 05:26:20 +01:00
l10n daemon script f227a81ff4 GIT_SILENT made messages (after extraction) 2018-03-03 03:19:01 +01:00
Abhijeet Sharma 141f37ed27 Add Partition UUID and Partition Label in partition properties dialog
After this patch partition UUID and partition label will be visible
in the properties dialog of the partitions.

Also these label will only be visible if the partition table is GPT

Differential Revision: https://phabricator.kde.org/D10323
2018-02-13 21:27:05 +00:00
Andrius Štikonas eab21df647 Do not confirm overwrite twice. 2018-02-05 13:14:36 +00:00
Andrius Štikonas fa65cd116b Use defaultBackend from kpmcore.
Do not duplicate the same thing in partitionmanager.kcfg
2018-01-31 18:50:33 +00:00
Abhijeet Sharma 4f2381d7e6 Change default size of device and partition properties dialogs
so as to accommodate all the labels

Differential Revision: https://phabricator.kde.org/D10179
2018-01-30 15:46:05 +00:00
Andrius Štikonas d5bccabac5 Add support for displaying partition labels/uuid.
Differential Revision: https://phabricator.kde.org/D10150
2018-01-27 23:02:36 +00:00
Andrius Štikonas 21755cb449 Remove unused KService dependency. 2018-01-16 17:14:53 +01:00
Andrius Štikonas 74d609a782 Always show Advanced config page. 2018-01-16 15:14:47 +01:00
l10n daemon script e7354c02d1 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-01-13 04:48:00 +01:00
Andrius Štikonas 6252fb480f Merge branch '3.3' 2018-01-07 16:51:50 +02:00
l10n daemon script 523e07cbf5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-01-07 04:56:25 +01:00
Andrius Štikonas 9439e9b1fd Fix a crash when resizing LVM LV. 2018-01-06 23:24:16 +02:00
Andrius Štikonas eaff75dc1b Exclude FileSystem::Luks2 from New File System dialog.
Just like with Luks1, we only want to create Luks2 containers with
some other file system inside.
2017-12-31 08:41:17 +00:00
Andrius Štikonas b4b5dcd804 Add a passphrase request dialog for LUKS2 resizing. 2017-12-31 08:41:17 +00:00
Andrius Štikonas 70f75a3f92 Treat LUKS2 file system as encrypted too. 2017-12-31 08:41:17 +00:00
l10n daemon script 4e1afc8be6 GIT_SILENT made messages (after extraction) 2017-12-25 03:06:33 +01:00
Andrius Štikonas 4b97201539 Add LUKS2 and FAT12 to file system color configuration dialog. 2017-12-24 20:43:26 +00:00
l10n daemon script 7c1ff3cc19 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-12-24 04:48:55 +01:00
l10n daemon script c3b143903c GIT_SILENT made messages (after extraction) 2017-12-20 04:59:43 +01:00
l10n daemon script 26db2cfd8c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-12-11 04:38:36 +01:00
Andrius Štikonas f322f05037 appdata: use more generic doc URL. 2017-12-05 20:45:32 +00:00
Andrius Štikonas ded99a1497 appdata: update homepage URL, use https for links 2017-12-05 20:11:25 +00:00
Andrius Štikonas d25523e43a Properly save new fstab entries. 2017-12-03 00:17:19 +00:00
Andrius Štikonas d4c72ad075 Fix creation of FAT mountpoints.
BUG: 387463
2017-11-30 23:33:35 +00:00
l10n daemon script a6ed618ba6 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-11-27 04:58:05 +01:00
l10n daemon script 7e29cf6c62 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-11-20 04:32:00 +01:00
Andrius Štikonas ecec8dadda Do not display cylinder/head/sector information.
CHS has never been important for Linux.
2017-11-07 00:51:59 +00:00
Andrius Štikonas f639d965dd Fix saving new backend when clicking Ok button.
When clicking Ok, dialog gets hidden and we never set the new backend.
2017-11-07 00:47:04 +00:00
Andrius Štikonas f62edf052c Move LVM LV setup code to the base class.
The same checks (e.g. hide LVM LV name edit line) are also needed
in the other children of SizeDialogBase.
2017-10-28 19:02:26 +01:00
l10n daemon script 0b1780397e SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-10-24 05:07:07 +02:00
Andrius Štikonas b7fdd6e4c4 Don't repeat work of KAboutData::setupCommandLine(). 2017-10-11 00:20:03 +01:00
Andrius Štikonas f105f448b3 Add a validator for LVM LV names. 2017-10-09 23:56:15 +01:00
Andrius Štikonas f30a3c999f Add what's it entry to Recreate Existing File System checkbox.
BUG: 385524
2017-10-09 18:42:39 +01:00
Andrius Štikonas ca42730d39 Fix a typo in a comment. 2017-10-09 17:08:27 +01:00
Andrius Štikonas e512ed337a Use qOverload in Qt signal/slots. 2017-10-09 13:54:31 +01:00
Andrius Štikonas d38b889a22 Merge branch '3.2' 2017-10-06 18:54:25 -04:00
Andrius Štikonas f34733e824 Fix regexp++. 2017-10-06 23:48:52 +01:00
Andrius Štikonas eb6478aa49 Fix a broken QRegularExpression in LVM VG name validator. 2017-10-06 23:16:30 +01:00
l10n daemon script 8baad25d47 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-10-02 05:00:54 +02:00
Andrius Štikonas 7ca06a74ae Update credits. 2017-10-02 01:40:14 +01:00
Andrius Štikonas cd9c4ab36b Port away from KService. 2017-10-01 22:07:21 +01:00
l10n daemon script 38d9c72466 GIT_SILENT made messages (after extraction) 2017-10-01 03:28:58 +02:00
l10n daemon script c9e9d31236 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-09-30 05:08:31 +02:00
l10n daemon script 485632e6e5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-09-26 04:54:03 +02:00
l10n daemon script 9872a44597 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-09-23 04:55:31 +02:00
l10n daemon script a8189399af SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-09-22 04:55:58 +02:00
Andrius Štikonas cf14bdcac8 Use canonical device paths when comparing them. 2017-09-20 21:22:32 +01:00
Andrius Štikonas 9407c1ede4 Fix KUIT markup. 2017-09-20 20:39:59 +01:00
Andrius Štikonas 1c176ad5f4 Workaround for different swap naming conventions. 2017-09-18 15:21:47 +01:00
Andrius Štikonas 454845e14e Port from MountEntry to FstabEntry.
This helps to preserve comments in fstab file

BUG: 305469
2017-09-16 20:41:45 +01:00
Andrius Štikonas 24237a6120 Change a way untranslated file system name is accessed. 2017-09-15 12:47:28 +01:00
Andrius Štikonas f29656ca45 Move showColumnsContextMenu function from kpmcore to partitionmanager. 2017-09-14 20:42:43 +01:00
Andrius Štikonas 4b4198c34a Use untranslated file system name when importing partition table.
BUG: 364648
2017-09-14 14:47:39 +01:00
Jonathan Riddell f8f74d1698 revert duplicate commit 2017-09-13 15:30:00 +01:00
Jonathan Riddell a4d7832f86 Add freedesktop.org keywords to .desktop file, Author: Jonathan Carter <jcarter@linux.com> 2017-09-13 15:17:41 +01:00
l10n daemon script 931b1e90e0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-09-13 08:45:37 +02:00
l10n daemon script 385507c3cb SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-09-12 04:49:41 +02:00
Andrius Štikonas aa762266ae Fix some minor clang warnings. 2017-09-11 18:46:48 +01:00
Andrius Štikonas 78eca538d6 Remove double underscore from include guards. 2017-09-11 16:28:04 +01:00
l10n daemon script 688b21f9f7 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-09-11 04:50:44 +02:00
Andrius Štikonas 9348e14b01 Update credits: Pali Rohár 2017-09-10 18:04:04 +01:00
l10n daemon script d70c1ab373 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-09-10 04:50:43 +02:00
Andrius Štikonas 112b6c9f07 Move IconThemes dependency from kpmcore to partitionmanager. 2017-09-08 15:06:08 +01:00
Andrius Štikonas d076291973 Add support for detecting ISO9660 file systems. 2017-09-08 11:43:31 +01:00
l10n daemon script 1dd8e32d40 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-09-08 04:30:49 +02:00
Andrius Štikonas eb80d94586 Merge branch 'next2' 2017-09-08 01:05:50 +01:00
Andrius Štikonas 421515dcaa Add partition;disk keywords to the desktop file. 2017-09-06 14:12:15 +01:00
Andrius Štikonas a9047ca6e2 Merge branch 'master' into next2 2017-09-06 00:10:29 +01:00
Andrius Štikonas feb2e374e4 Fix a crash when clicking cancel in ApplyProgressDialog.
BUG: 384348
2017-09-06 00:07:11 +01:00
Andrius Štikonas 20da0d64cf Port away from QRegExp. 2017-09-05 12:55:44 +01:00
Andrius Štikonas da621fbfbe Use QValidator to validate label input. 2017-09-05 12:52:47 +01:00
Andrius Štikonas 0f64ac2dc3 Port to validateLabel function. 2017-09-04 17:39: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 58281d6855 Adapt to kpmcore createWithLabel changes. 2017-08-31 10:21:32 +01:00
Andrius Štikonas 4b68a0cba0 Add support for UDF file system. 2017-08-31 10:21:20 +01:00
Andrius Štikonas 64463944f7 Workaround for 380974.
If DBUS_SESSION_BUS_ADDRESS is not defined then try to determine it from
~/.dbus/session/bus/ and pass to partitionmanager running as root.

This fixes a long delay before KMessageBoxes become usable.
The delay happens when using KNotifications >= 5.33.
2017-06-13 22:12:58 +02:00
Andrius Štikonas 4e78cd9ff1 Pass DBUS_SESSION_BUS_ADDRESS environmental variable.
This is necessary for disabling Plasma automounter on Wayland.

BUG: 368175
2017-06-13 00:06:39 +02:00
Andrius Štikonas fc8875ba65 Migrating to variables with prefix 'KDE_INSTALL_'
KXMLGUI_INSTALL_DIR -> KDE_INSTALL_KXMLGUI5DIR
ICON_INSTALL_DIR -> KDE_INSTALL_ICONDIR
2017-06-12 01:45:29 +02: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 6889a3b17c Replace QMaps for mount point entries with std::multimap.
This allows to retain multiple fstab entries for given block device.
At the moment there is no UI to access more than one mount point entry
but at least we will not be corrupting user's fstabs when we edit
unrelated entries.
2017-06-04 23:04:52 +01:00
Andrius Štikonas 42fc14cad1 Add a note about kdesu configuration 2017-05-31 21:49:17 +01:00
Andrius Štikonas 97dc11bb89 Port qSort. 2017-05-03 19:24:41 +01:00
Andrius Štikonas d9e19a2d5d Use new function overload of KRun::runUrl()
KIO 5.31 introduced a new overload of KRun::runUrl() and set deprecation
warnings on the old one.
2017-04-16 19:35:08 +01:00
Andrius Štikonas 255e34bf9e Port from deprecated ui() to uiDelegate() 2017-04-11 20:49:46 +01:00
Andrius Štikonas 4e3fddc6eb Rename desktop/appdata files to lowercase.
This is necessary for icons to work in Plasma Wayland session.
2017-04-09 00:28:04 +01:00
l10n daemon script 4b8b08acb7 GIT_SILENT made messages (after extraction) 2017-02-05 03:56:24 +01:00
l10n daemon script be75dd3af0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-02-04 06:20:38 +01:00
l10n daemon script 36f03c17c2 GIT_SILENT made messages (after extraction) 2017-02-04 03:52:40 +01:00
Andrius Štikonas a33b1f516a Add missing trailing colon. 2017-01-26 23:38:37 +00:00
Andrius Štikonas 3cefd3f087 Revert "Pass through /home/andrius environmental variable to use ~/.config/ and user theme."
This reverts commit 408edd7f15.
2017-01-09 12:27:24 +00:00
Andrius Štikonas 7f5e592ba9 Use qAsConst and required Qt 5.7.1. 2017-01-05 19:11:32 +00:00
Andrius Štikonas 408edd7f15 Pass through /home/andrius environmental variable to use ~/.config/ and user theme. 2017-01-05 18:32:28 +00:00
Andrius Štikonas 71481dd606 Fix desktop file.
KDE Partition Manager restarts itself with correct environmental variables.

BUG: 374272
2017-01-02 13:37:24 +02:00
l10n daemon script 7b0f19ead5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2016-12-20 12:48:20 +01:00
l10n daemon script 4bfd117d4a GIT_SILENT made messages (after extraction) 2016-12-20 08:43:32 +01:00
Andrius Štikonas 771c0ceaa2 Add a validator for LVM VG names. Restrict to alphanumeric and +-_. 2016-12-07 21:51:22 +00:00
Andrius Štikonas d2b3f7344a Revert "Remove LVM LV formatted as LVM PV partition from the PV list when resizing LVM VG if it belongs to the same VG."
This reverts commit 6e6f41b209.
2016-12-06 03:18:29 +00:00
Andrius Štikonas 6e6f41b209 Remove LVM LV formatted as LVM PV partition from the PV list when resizing LVM VG if it belongs to the same VG. 2016-12-06 02:51:54 +00:00
Andrius Štikonas d9c80e3b76 Silence some layout warnings. 2016-11-19 03:03:36 +00:00
Andrius Štikonas f9c1665e87 LVM VG resize should be allowed if final size is exactly equal to used space.
I.e. replace strict inequality with more or equal.
2016-11-07 18:57:30 +00: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 042b83e1a0 Update copyright. 2016-11-04 14:14:05 +00:00
Andrius Štikonas 2602e0620c Fix handling of encrypted LVM physical volumes. 2016-11-03 14:22:11 +00:00
Andrius Štikonas 46ae0c73a8 Store list of physical volumes in a global variable. 2016-11-03 13:26:23 +00:00
Andrius Štikonas 97aedd1806 Replace complicated QPair type with custom LvmPV class. 2016-11-02 23:07:01 +00:00
Andrius Štikonas b2520a8dc6 Refresh actions after LVM VG deactivate job. 2016-10-30 02:32:26 +00:00
Andrius Štikonas 3c465a4cb6 Pass more variables to sudo for Wayland support. 2016-10-27 01:51:50 +01:00
Andrius Štikonas c84026a27e Pass KDE_FULL_SESSION variable to sudo if it was defined in the initial environment. 2016-10-19 21:26:59 +01:00
l10n daemon script bedfee3a98 SVN_SILENT made messages (after extraction) 2016-10-07 07:04:25 +00:00
Andrius Štikonas f8c172a5c0 Revert "Do not allow the second instance of Partition Manager"
This reverts commit 71510d2709.
2016-10-06 17:59:17 +01:00
Andrius Štikonas fea271330d Use cached values for resizing volume groups. 2016-09-24 21:09:16 +01:00
Andrius Štikonas 9a337e72f4 Add a template to easily access inner filesystem inside LUKS. 2016-09-22 13:15:29 +01:00
Andrius Štikonas e30c95ea25 Add some extra context for translators. 2016-09-18 11:59:25 +01:00
Andrius Štikonas b5f5a78054 Make two strings translatable. 2016-09-18 11:56:37 +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 007c2faf11 Continue converting LVM away from QStrings to Partition objects. 2016-09-11 00:19:58 +01:00
Andrius Štikonas 280ba106e8 Store the list of LVM Physical Volumes in operationStack. 2016-09-10 22:10:11 +01:00
Andrius Štikonas 95ca21f4e2 More optimizations for LVM. 2016-09-08 01:42:13 +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 10a2aca527 Initial work on storing LVM variables during initial scan. 2016-09-05 14:48:59 +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 98150d48bb Readd forgotten files. 2016-09-04 15:58:53 +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
l10n daemon script 6cd699643a SVN_SILENT made messages (after extraction) 2016-09-02 07:10:06 +00:00
Andrius Štikonas e7ac5e5fa2 Q_FOREACH porting. 2016-09-01 00:44:33 +01:00
Andrius Štikonas 78c4b09467 Let Qt handle object deletion. 2016-08-27 00:17:01 +01:00
Andrius Štikonas e8fee5dd23 Do not allow creating LVM LV with no name. 2016-08-27 00:16:39 +01:00
Andrius Štikonas cafbf8d30c Do not call a function to check ok button status twice. 2016-08-26 23:16:56 +01:00
Andrius Štikonas b04093bbfc Add support for setting labels online. 2016-08-26 18:59:54 +01:00
Andrius Štikonas 302b44730d Volume -> Volume Group. 2016-08-25 15:55:49 +01:00
Andrius Štikonas c3664c42b1 Improve descriptions of LVM actions. 2016-08-25 15:51:15 +01:00
Andrius Štikonas c30a983921 Add more KUIT string contexts. 2016-08-25 00:22:32 +01:00
Andrius Štikonas 94ef37623e Add About KPMcore Library action. 2016-08-25 00:15:07 +01:00
Andrius Štikonas 43c15ed2d0 Move Panels Shown action a bit lower in the menu. 2016-08-24 23:18:39 +01:00
Andrius Štikonas 7f0ab53f8a Cleanup includes a bit. 2016-08-23 16:40:16 +01:00
Andrius Štikonas a234179358 Show more accurate device type in case of LVM VG. 2016-08-23 16:06:37 +01:00
Andrius Štikonas 55032b66a3 Create a new Tools menu as Teo suggested.
It contains actions to create a new volume, view supported filesystems, etc.
View menu was cleaned up and enable/disable panel actions were moved
to settings menu.
2016-08-22 22:49:42 +01:00
Pino Toscano 89eb1e127f fixuifiles 2016-08-16 22:14:42 +02:00
Andrius Štikonas 784758831b Add Chantara Tith to credits. 2016-08-15 17:41:11 +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
Chantara Tith b581c3d715 API changes, change to renamed methods. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 5267f9825a Convert some more for loops to ranged based loop. 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
Andrius Štikonas 0b92926465 Fix a previous commit (inner loop for was making deep copy. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 561269a2e6 Convert to C++11 for loop where it is safe to do so. 2016-08-15 17:38:00 +01:00
Chantara Tith fe01d6c2e2 Remove partTableWidget from VolumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 9803797647 Fix volumeDialog updateSizeInfos not updating when there isn't any PVs. 2016-08-15 17:38:00 +01:00
Chantara Tith 9d3ddf4e5c Remove dirty PVs from CreateVolumeDialog physical volumes list. 2016-08-15 17:38:00 +01:00
Chantara Tith 9525683522 Add deactivating LVM VG action. 2016-08-15 17:38:00 +01:00
Chantara Tith 1472b310fd Disable OK button when creating new VG with name of an existing one. 2016-08-15 17:38:00 +01:00
Chantara Tith 5775560759 When creating new LV, disable OK button if the LV name already exists. 2016-08-15 17:38:00 +01:00
Chantara Tith 9e58e13d21 Get current PV list from deviceNodeList instead of calling external one. 2016-08-15 17:38:00 +01:00
Chantara Tith 7f61e77eb5 Add selected device to ResizeVolumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith f863a15a72 update partTable only when partition list update. 2016-08-15 17:38:00 +01:00
Chantara Tith 92cbb1f6dc Fix crash when smartStatus is nullptr. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 175ea6a5ed Do not attempt removing LVM VG if there are active LVs. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 33d38c9852 Move PE size spinbox constraints to .ui file. 2016-08-15 17:38:00 +01:00
Chantara Tith 2b25813040 Set PE Size spinBox minimum value to 1. 2016-08-15 17:38:00 +01:00
Chantara Tith ce9ad5559e Enable Smart Status for Disk Device only. 2016-08-15 17:38:00 +01:00
Chantara Tith 2ec6857064 Decouple Sector and Size informations update. 2016-08-15 17:38:00 +01:00
Chantara Tith c8844c91e9 Remove lvm2_pv from FileSystem comboBox when creating LV. 2016-08-15 17:38:00 +01:00
Chantara Tith 8e44082a73 Total used sectors and total LV in volumeDialog only need to be updated once. 2016-08-15 17:38:00 +01:00
Chantara Tith 6a2663d4d5 Disable partTableWidget preview for create/resize volumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 12e373dd45 Remove redundant informations of LVM PV from infopane. 2016-08-15 17:38:00 +01:00
Chantara Tith 89d310e0c8 Use different seperator to avoid error with string handling. 2016-08-15 17:38:00 +01:00
Chantara Tith 34d6934a1b Fix typo. 2016-08-15 17:38:00 +01:00
Chantara Tith 906f85a54d Disable resize/remove volume group action when LVM device is not selected. 2016-08-15 17:38:00 +01:00
Chantara Tith da6cb2e4df Add more LVM infos to the infopane. 2016-08-15 17:38:00 +01:00
Chantara Tith 1a3cee45ff Add MiB suffix to PE size spinBox. 2016-08-15 17:38:00 +01:00
Chantara Tith 99e36d4e32 update total sector when PE size is changed. 2016-08-15 17:38:00 +01:00
Chantara Tith cbd61d90c0 Read and Display size of PV inside physical volumes list. 2016-08-15 17:38:00 +01:00
Chantara Tith e25b6aa784 Payload offset return in byte size instead of sector number. 2016-08-15 17:38:00 +01:00
Chantara Tith 9f3e3bc5f0 Add functionality to specify PE size when creating VG. 2016-08-15 17:38:00 +01:00
Chantara Tith 475a677601 Disable moving for LV. 2016-08-15 17:38:00 +01:00
Chantara Tith 7f50dbaf4d Change from isLegalSize to isValidSize. 2016-08-15 17:38:00 +01:00
Chantara Tith e437c46d45 Disable OK button when LV name is empty. 2016-08-15 17:38:00 +01:00
Chantara Tith 100277b0e1 Display warning message when trying to remove VG with existing LV. 2016-08-15 17:38:00 +01:00
Chantara Tith 5f364befd8 Temporary disable changing volume type and PE size, until the features are implemented on KPMCore side. 2016-08-15 17:38:00 +01:00
Chantara Tith 2917317619 Update volumeDialog ok button status as the used and total size changes. 2016-08-15 17:38:00 +01:00
Chantara Tith e6834393ae Fix the hacky solution for the usedSize overflow. 2016-08-15 17:38:00 +01:00
Chantara Tith a9655d7fad FIX used size overflow when multiplied. 2016-08-15 17:38:00 +01:00
Chantara Tith 27882cdb6a Display device info on volume dialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 01cb06a4a4 It makes more sense to display used size instead of the allocated sectors. 2016-08-15 17:38:00 +01:00
Chantara Tith b8be4f7c79 Add volume resizing dialog. 2016-08-15 17:38:00 +01:00
Chantara Tith bc4321d105 Add totalAllocatedSectors to volume widget. 2016-08-15 17:38:00 +01:00
Chantara Tith f7d475d05c Initialize VG name if there is any. 2016-08-15 17:38:00 +01:00
Chantara Tith f84821ff9c Unclutter createVolumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 71a6cc761d Simplify if clause. 2016-08-15 17:38:00 +01:00
Chantara Tith 951cb925ea Move to using static lvm2_pv methods. 2016-08-15 17:38:00 +01:00
Chantara Tith a89dbbdd7d Add checkbox for selecting multiple partition when creating new volume. 2016-08-15 17:38:00 +01:00
Chantara Tith a1fe5dff56 Temporary Use selected Partition as PV for creating new VG. 2016-08-15 17:38:00 +01:00
Chantara Tith 9a4e54fb42 Add remove and resize action to MainWindow. 2016-08-15 17:38:00 +01:00
Chantara Tith 80f32cd53a Add volume type ComboBox to VolumeWidget 2016-08-15 17:38:00 +01:00
Chantara Tith 46e509ba28 Use custom list widget for displaying PV. 2016-08-15 17:38:00 +01:00
Chantara Tith 7a5f8fb1a8 Update CreateVolumeDialog OK button status. 2016-08-15 17:38:00 +01:00
Chantara Tith 8e4d9fc849 Change volumeWidget's label default value. 2016-08-15 17:38:00 +01:00
Chantara Tith 3721b198bf Abstract createvolumewidget generic stuffs to volumedialog base class. 2016-08-15 17:38:00 +01:00
Chantara Tith 4f564d52f5 Initial work on createvolume widget and dialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 0dd81709a1 Display DevicePropDialog totalsectors and type correctly 2016-08-15 17:38:00 +01:00
Chantara Tith 975e005ed2 Append all the remaining space for LVM resize dialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 1673a9ddeb Hide sizeDetailsWidget for LVM device. This also fix crashes when trying to align LV 2016-08-15 17:38:00 +01:00
Chantara Tith e9cfc151f7 Hide freeSpace Before and After Label for LVM resize. 2016-08-15 17:38:00 +01:00
Chantara Tith e798a26cb6 Make LVM partition immovable when resize. 2016-08-15 17:38:00 +01:00
Chantara Tith f49b36fe14 Hide LV name for disk device resize 2016-08-15 17:38:00 +01:00
Chantara Tith 07bf741c6a Add new LV operation 2016-08-15 17:38:00 +01:00
Chantara Tith 6c946d7a2c Initial work on LVM Device 2016-08-15 17:38:00 +01:00
Chantara Tith a2df4b648b Add lvm-specific infopane information 2016-08-15 17:38:00 +01:00