Andrius Štikonas
f260247422
Simplify return value logic.
2018-10-21 23:59:39 +01:00
Caio Carvalho
a2d601d512
Checking for SoftwareRAID_Device type in partition table job.
2018-07-11 12:01:26 -03:00
Caio Carvalho
a8b7222350
Check for SoftwareRAID devices in CreateFileSystemJob.
2018-07-10 23:04:55 -03:00
Caio Carvalho
6c27d99f2c
Enabling to create and delete SoftwareRAID devices' partitions.
2018-07-10 20:03:59 -03:00
Andrius Štikonas
ed59aac2c8
Show error when setting file system label fails.
2018-04-13 20:21:48 +03:00
Andrius Štikonas
07458efb91
Make sure system is informed about the change of file system label.
2018-04-13 15:54:51 +03:00
Andrius Štikonas
6b558f49d8
Use blockdev --rereadpt instead of partx --update.
2018-04-13 13:08:43 +03:00
Andrius Štikonas
527734e9e8
Switch JobStatus enum to scoped enum.
2018-04-12 15:18:50 +03:00
Andrius Štikonas
622def3b56
Convert more enums to scoped enums.
2018-04-09 15:14:34 +01:00
Andrius Štikonas
ee2688d4d9
Merge branch 'master' into kauth
2018-04-09 12:44:14 +01:00
Andrius Štikonas
b42b41bdea
Add a shorter Partition::State enum names.
...
Will be converted to enum class later.
2018-04-09 03:46:05 +01:00
Andrius Štikonas
3ccd04e675
Switch Device::Type enum to enum class.
2018-04-09 02:57:45 +01:00
Andrius Štikonas
17c8772240
Explicitely specify the scope of enum.
2018-04-07 19:54:30 +01:00
Andrius Štikonas
279159ca6f
Use smart pointers for CoreBackendPartitionTable.
2018-03-31 21:49:20 +01:00
Andrius Štikonas
1500eeb625
Use std::unique_ptr for CoreBackendDevices
2018-03-31 14:44:40 +01:00
Andrius Štikonas
2cef3f6ec6
Cleanup ExternalCommand interface:
...
* Remove a separate constructor for copyblocks.
* Remove kauthThread and finished() signal.
2018-03-22 17:29:40 +00:00
Huzaifa Faruqui
72da110996
Fix copyblocks exit status check
2018-02-06 22:32:26 +05:30
Andrius Štikonas
06139c85ac
Remove unused function argument in startCopyBlocks.
2018-02-06 16:24:32 +00:00
Huzaifa Faruqui
b143c139e5
Fix Report in copyBlocks
2018-01-29 16:45:21 +05:30
Andrius Štikonas
bf2a23dada
Use copyjobs KAuth helper for other copying jobs too.
2018-01-24 15:45:19 +00:00
Andrius Štikonas
61fed73a5d
Remove some debug output.
2018-01-24 15:35:11 +00:00
Huzaifa Faruqui
e42a5c9289
Implement copyblocks function in KAuth helper.
...
Switch BackupFileSystemJob to thenew copyblocks function.
Reviewed and cleaned up by: Andrius Štikonas
2018-01-24 15:22:42 +00:00
Andrius Štikonas
790553aa0b
Merge branch 'smart' into kauth
2018-01-11 11:31:18 +01:00
Andrius Štikonas
4773f49edc
Initial support for resizing LUKS2 volumes.
...
Does not yet work when LUKS2 is used with dm-integrity.
2017-12-29 20:01:06 +00:00
Andrius Štikonas
fdf6e19de0
Remove another workaround which hopefully is no longer necessary.
2017-12-10 19:56:04 +00:00
Andrius Štikonas
41473119b1
backend: provide more information about backend device.
...
Pass Device object, not just deviceNode string when opening Core Backend Device
2017-12-06 21:33:31 +00:00
Andrius Štikonas
0bfb7094df
Merge branch 'master' into sfdisk
2017-12-06 00:41:19 +00:00
Andrius Štikonas
e66fb4b95e
Do not attempt to set partition flags that were not changed.
2017-12-06 00:27:02 +00:00
Andrius Štikonas
80de99fc73
Move setFlags function from CoreBackendPartition to CoreBackendPartitionTable.
...
setFlags function now takes additional argument const Partition& partition.
This allows us to completely remove CoreBackendPartition class.
Remove getPartitionBySector and getExtendedPartitions.
These functions were designed around libparted API and are not very convenient
with other backends.
2017-11-07 22:55:28 +00:00
Andrius Štikonas
a6415561ae
SetPartFlagsJob should return error when it is unable to find partition.
2017-11-07 03:07:51 +00:00
Andrius Štikonas
87e210432d
Merge branch '3.2'
2017-10-31 16:16:36 +00:00
Andrius Štikonas
8909dd87d0
Add a workaround for device not ready error.
...
In rare cases after moving file system to a new location file system check
fails on the first try. As a temporary workaround, wait a bit and try again.
2017-10-30 15:59:05 +00:00
Andrius Štikonas
55e445b069
More user friendly copying direction message in the log.
2017-10-30 14:24:55 +00:00
Andrius Štikonas
72dfbe480a
Replace readSectors/writeSectors backend functions.
...
New alternatives use QByteArray to store data and use bytes, not sectors.
2017-10-28 18:07:44 +01:00
Andrius Štikonas
8a477e689e
Minor clang warnings++
2017-09-11 12:01:39 +01:00
Andrius Štikonas
f7e5f7c7bf
Rename KPMcore include guards.
...
clang in -Weverything mode does not like double underscore.
2017-09-10 20:12:52 +01:00
Andrius Štikonas
f1accd1e0d
Remove IconThemes dependency from kpmcore.
2017-09-08 15:05:55 +01:00
Andrius Štikonas
7dba4b8245
Record sector size in FileSystem class.
2017-09-03 15:37:14 +01:00
Andrius Štikonas
d797a47229
QList->QVector.
2017-08-31 10:48:10 +01:00
Andrius Štikonas
6a78a74515
Add support for creating file systems with label.
...
Some file systems such as UDF or F2FS only support writing labels when creating
them.
At the moment this only works in new partition dialog and not in the partition
properties dialog.
2017-08-31 10:13:01 +01:00
Andrius Štikonas
ff714f2f0e
Fix online label support.
...
Some filesystems require mountpoint while some deviceNode to change file system
label only. So split writeLabel action into online and offline actions.
2017-04-09 17:49:55 +01:00
Andrius Štikonas
d6c375f959
Update copyrights.
2016-11-04 14:20:11 +00:00
Andrius Štikonas
6717ea913d
Fix resize volume group job description.
2016-11-03 22:15:43 +00:00
Andrius Štikonas
58cec6040f
Fix create volume group job description.
2016-11-03 22:08:32 +00:00
Andrius Štikonas
5182c037db
Fix resizing of LVM VGs when LVM PV is encrypted.
2016-10-30 13:36:01 +00:00
Andrius Štikonas
724574e436
Fix creation of LVM VGs when LVM PV is encrypted.
2016-10-30 03:24:01 +00:00
Andrius Štikonas
3272cd3f5f
Do not allow deactivating LUKS containers containing active LVM physical volumes.
2016-10-30 02:31:46 +00:00
Andrius Štikonas
28478ee0ad
More conversion from QStringList to QList<const Partition*>.
2016-09-18 01:53:42 +01:00
Andrius Štikonas
70a9a0dd9a
More optimizations for LVM.
2016-09-08 01:42:04 +01:00
Andrius Štikonas
6ec0215205
Improve LVM job wording.
2016-08-26 13:29:24 +01:00