Andrius Štikonas
6e4c330410
Do not run moc on classes where it is not necessary.
2016-05-22 23:53:17 +01:00
Andrius Štikonas
f820c8d764
Adjust minimal filesystem size for luks partitions.
2016-05-20 20:13:11 +01:00
Andrius Štikonas
4278172f35
Iterate over operation stack backwards.
...
BUG: 363216
2016-05-19 16:40:20 +01:00
Andrius Štikonas
da550fb534
Fix null pointer dereference.
2016-05-19 01:53:30 +01:00
Andrius Štikonas
6f8a2c7016
Also disable decryption of luks partition if it is copied in the operation stack.
2016-05-18 15:45:00 +01:00
Andrius Štikonas
063c50aec6
Add a method to check whether partition is part of operationStack.
2016-05-18 14:56:13 +01:00
Andrius Štikonas
ffa24e4451
Revert "Disable OperationStack merging of operations for luks partitions."
...
This is no longer necessary now that copying/resizing of new luks partitions is
forbidden.
This reverts commit aec564f1a2
.
2016-05-18 13:58:08 +01:00
Andrius Štikonas
aec564f1a2
Disable OperationStack merging of operations for luks partitions.
2016-05-18 13:13:51 +01:00
Andrius Štikonas
142ff07938
Remove reduntant virtual keywords.
2016-05-17 18:01:31 +01:00
Chantara Tith
b653b5b6e3
move mount logic from Partition to FileSystem
2016-05-13 23:00:27 +01:00
Chantara Tith
2a12571d44
move unmount logic from Partition to FileSystem
2016-05-13 23:00:27 +01:00
Andrius Štikonas
7e8cfaf25c
Convert QRegExp->QRegularExpression in Partition class.
2016-05-12 16:46:25 +01:00
Andrius Štikonas
1ea4f4976d
Revert "Revert "Port away from QRegExp to QRegularExpression.""
...
This reverts commit c291af2c83
.
2016-05-12 16:45:13 +01:00
Andrius Štikonas
c291af2c83
Revert "Port away from QRegExp to QRegularExpression."
...
This reverts commit bb2de6cd56
.
This was causing a crash when restoring partitions.
2016-05-11 22:31:33 +01:00
Andrius Štikonas
4fc3f321dd
Revert "Better to use deleteLater with QObjects."
...
This reverts commit 3ec80be2a1
.
This was causing a crash when changing filesystem (reformatting).
2016-05-11 22:17:38 +01:00
Andrius Štikonas
bb2de6cd56
Port away from QRegExp to QRegularExpression.
2016-05-08 00:22:22 +01:00
Andrius Štikonas
7e7d9e2a9a
Use long style command line parameters.
2016-05-06 22:47:56 +01:00
Andrius Štikonas
464b3060fb
Remove remaining ../ from #includes.
2016-05-06 22:36:24 +01:00
Andrius Štikonas
0bd44b94dc
Use trimmed() instead of simplified().
2016-05-05 12:46:27 +01:00
Andrius Štikonas
ea4b945ebb
Add override keyword to virtual functions.
2016-04-27 21:54:02 +01:00
Andrius Štikonas
f7e62d93f9
Merge branch 'master' into luks-decorator
2016-04-27 16:34:02 +01:00
Teo Mrnjavac
83787cbdfc
Make the parent in Partition a QPointer.
...
This also reverts commit dc9e9651ac
.
2016-04-27 16:58:17 +02:00
Teo Mrnjavac
3ec80be2a1
Better to use deleteLater with QObjects.
2016-04-27 15:36:07 +02:00
Andrius Štikonas
2e7055aa69
Merge branch 'master' into luks-decorator
2016-04-21 23:03:28 +01:00
Teo Mrnjavac
26026b6232
PartitionRole::LUKS is now PartitionRole::Luks.
2016-04-19 16:46:18 +02:00
Andrius Štikonas
58e9876307
Rename qglobal.h to QtGlobal
2016-04-18 17:14:31 +01:00
Teo Mrnjavac
b4a57db54d
Update copyright and strings.
2016-04-15 15:43:21 +02:00
Teo Mrnjavac
12e7da5b1c
Add LUKS role. Both open and closed LUKS "filesystems" should use this.
2016-04-15 15:10:14 +02:00
Teo Mrnjavac
0a8a5887df
Bring back LUKS code which was previously merged+reverted.
...
Revert "Revert merge of branch luks-decorator."
This reverts commit efd3179d95
.
Messages:
FS::luks is now a decorator for an actual FS composed inside.
Implement cryptOpen/cryptClose/mount/unmount operations.
detectFileSystem, which only uses blkid, is now in FileSystem.cpp.
FileSystem::mount now requires a mountPoint.
Use umount -A to immediately umount all mount points in unmountCmds.
Add override keywords, TODO: add them everywhere.
LibPartedBackend no longer links against libblkid.
Fix LUKS handling in LibPartedBackend::scanDevicePartitions.
Allow detecting FS::Type by path, and remove libparted workaround.
FS detection now only uses blkid (from util-linux).
2016-03-31 18:43:38 +02:00
Andrius Štikonas
ca5bc8000b
Merge branch 'more-parted-flags'
2016-03-08 20:48:09 +00:00
Teo Mrnjavac
3c2f383b8e
Define underlying type for enums so they can be forward-declared.
2016-03-03 16:03:41 +01:00
Andrius Štikonas
41f9dc36dd
Cleanup unused include.
2016-03-03 10:17:41 +01:00
Andrius Štikonas
e0c23f443b
Update copyright.
2016-03-02 19:00:31 +00:00
Teo Mrnjavac
852c8c8516
Bring partition flags support up to current libparted level.
...
This doesn't quite support all the types listed by fdisk as described
in bug 359819 since we are limited by what's exposed by libparted, but
it covers the most important ones.
BUG: 359819
2016-03-02 11:43:27 +01:00
Andrius Štikonas
a0592de93a
Cleanup unused include.
2016-02-29 17:58:25 +00:00
Andrius Štikonas
d9f87b1031
Simplify prettyName logic. We already check for empty name in the constructor.
2016-02-25 22:24:46 +00:00
Andrius Štikonas
b25d7c19de
Make Partition Manager device selector more user friendly:
...
Show Device name – Capacity (Device node)
BUG:259679
2016-02-22 16:14:50 +00:00
Andrius Štikonas
efd3179d95
Revert merge of branch luks-decorator.
2015-09-16 14:18:13 +01:00
Teo Mrnjavac
d8494a00a5
FS::luks is now a decorator for an actual FS composed inside.
...
Implement cryptOpen/cryptClose/mount/unmount operations.
detectFileSystem, which only uses blkid, is now in FileSystem.cpp.
FileSystem::mount now requires a mountPoint.
Use umount -A to immediately umount all mount points in unmountCmds.
Add override keywords, TODO: add them everywhere.
LibPartedBackend no longer links against libblkid.
Fix LUKS handling in LibPartedBackend::scanDevicePartitions.
2015-08-14 17:53:06 +02:00
Teo Mrnjavac
ab049467b7
First check, then assert. Also fix check syntax.
2015-07-23 17:52:22 +02:00
Teo Mrnjavac
de27f840bf
Always use nullptr instead of NULL because it is type-safe.
2015-07-22 15:48:03 +02:00
Teo Mrnjavac
df01276a53
config.h is no more.
2015-07-21 12:44:59 +02:00
Teo Mrnjavac
4e6655c356
Parameter intentionally unused, do not warn.
2015-07-20 17:11:40 +02:00
Teo Mrnjavac
fda3c2c814
Use PartitionAlignment::sectorAlignment instead of KConfig.
2015-07-15 18:38:41 +02:00
Teo Mrnjavac
f343f4c3b2
Make sectorAlignment a static setting in PartitionAlignment.
...
Also yank out cylinder alignment from sectorAlignment.
2015-07-15 18:37:30 +02:00
Teo Mrnjavac
0a4ac3065b
By default we never align to cylinder boundaries because it's not 1987.
2015-07-14 18:41:44 +02:00
Andrius Štikonas
626f560e52
Format kpmcore code using KDE style.
2015-07-13 17:16:36 +03:00
Teo Mrnjavac
fd8603f70c
Do not use KConfig for the shred action.
2015-07-13 16:03:49 +02:00
Teo Mrnjavac
eb1879774f
Export Copy{Source,Target}Device classes.
2015-07-13 16:03:49 +02:00
Teo Mrnjavac
7fa51ae067
Make it possible to set partition sectors from the outside world
2015-07-13 16:03:49 +02:00