Andrius Štikonas
19f78ef76a
Port away from qAsConst.
2020-10-24 22:01:45 +01:00
Andrius Štikonas
7ecdaf3ac8
Fix resizing of fat partitions.
...
Workaround a bug in fatresize (or libparted) where resizing to
partition length failed. Instead try to resize to length - 1.
BUG: 407834
2020-10-04 22:21:58 +01:00
Andrius Štikonas
4819eec59b
Allow moving partitions with unknown file system.
...
BUG: 404398
2020-10-04 21:18:08 +01:00
Andrius Štikonas
0c25d1f9c4
Use QFile::decodeFileName for decoding device node names.
...
BUG: 384321
2020-10-01 23:51:59 +01:00
Andrius Štikonas
d68ffeadef
REUSE: SPDX style license headers for src/util.
2020-10-01 00:33:19 +01:00
Andrius Štikonas
8534265421
REUSE: SPDX headers for src/fs/*.
2020-09-28 00:51:18 +01:00
Andrius Štikonas
fc826690b9
SPDX licenses for tests and CMakeLists.txt.
2020-09-17 02:15:16 +01:00
Andrius Štikonas
a810d0d2fd
Merge branch 'gportay/kpmcore-update-filesystem-features-api'
2020-03-22 01:24:57 +00:00
Gaël PORTAY
9d6c98ff4a
Replace FSFeature by QVariantMap
...
The object QVariant is a native object in the Qt world that represents
any type of value: boolean, integer, string, floating point, date,
UUID...
This change updates the API to use the object QVariant and provide a
more flexible API to represent the filesystem features.
2020-03-21 18:09:01 -04:00
Yuri Chornoivan
62aaa90a29
Fix minor EBN issues
2020-03-21 11:22:15 +00:00
Andrius Štikonas
efb970ba11
Add a missing features.h include.
2020-02-08 22:01:24 +00:00
Arnaud Ferraris
d24191ebd8
Add support for filesystem-specific features
...
In some cases, it may be necessary to create a filesystem with specific features
enabled/disabled.
This PR makes it possible to create filesystems this way. It does so
by introducing a new m_Features member variable and the createWithFeatures()
function to the FileSystem base class. The latter function is implemented
for the btrfs, ext2/3/4 and FAT filesystems.
Additionnally, the CreateFileSystemJob has been modified to enable
creating/formatting filesystems with specific features enabled.
Differential Revision: https://phabricator.kde.org/D21903
CCBUG: 342178
2020-01-12 11:58:32 +00:00
Yuri Chornoivan
2980b21b8d
Update references
2019-11-22 15:45:04 +02:00
Andrius Štikonas
bb7bf3ca03
Make FileSystemFactory::init reentrant.
...
BUG: 413927
2019-11-18 22:45:58 +02:00
Andrius Štikonas
2c7b3f2bfa
Fix resizing of encrypted partitions.
...
BUG: 413883
2019-11-18 21:16:05 +02:00
Shubham Jangra
6ea88cc737
Add QString include
2019-06-12 22:18:08 +05:30
Shubham Jangra
d1a82f65d4
Revert "Remove redundant includes and refactor"
...
This reverts commit 4229b02fd2
.
2019-06-12 22:11:11 +05:30
Shubham Jangra
4229b02fd2
Remove redundant includes and refactor
2019-06-10 23:07:06 +05:30
Shubham Jangra
ef20244be5
Add support for Minix(Mini Unix) Filesystem
...
Reviewers: stikonas, cjlcarvalho
Reviewed By: stikonas
Subscribers: cjlcarvalho, #kde_partition_manager
Tags: #kde_partition_manager
Differential Revision: https://phabricator.kde.org/D21652
2019-06-09 00:01:30 +05:30
Andrius Štikonas
dd0adbec42
Remove unused include.
2019-04-06 17:36:25 +01:00
Andrius Štikonas
ecb78121f3
Allow moving partitions of unknown type.
...
This usually be safe. There is a theoretical chance that some
unknown OS fails to boot, but I'm not aware of any such cases.
BUG: 404398
2019-02-15 19:16:07 +00:00
Andrius Štikonas
559c326be7
Add detection support for Apple File System (APFS).
2019-01-13 17:34:05 +00:00
Andrius Štikonas
e749b01b8e
Fix a typo in filesystem support dialog.
...
BitLocker was mixed up with btrfs.
CCBUG: 392892
2019-01-13 13:16:44 +00:00
Andrius Štikonas
708318a5ad
Add BitLocker detection support.
...
CCBUG: 392892
2019-01-13 02:24:18 +00:00
Andrius Štikonas
80f5a32dc0
Remove remaining cases of call to dd binary.
...
BUG: 398154
2018-11-29 22:32:07 +00:00
Andrius Štikonas
09e4d47e07
Do not use external process dd.
...
BUG: 398154
2018-11-25 20:50:22 +00:00
Andrius Štikonas
b893a39223
Use the same executable name in findExternal and ExecuteCommand
...
Even if they are symlinked, only one name was whitelisted.
2018-08-23 21:45:30 +01:00
Andrius Štikonas
2579d04229
Remove ExternalCommand::waitFor.
...
This is no longer used with KAuth.
ExternalCommand::start now waits until command finishes.
2018-07-21 21:19:34 +01:00
Caio Carvalho
2298d08c41
Adding support for detecting linux_raid_member file system.
2018-07-15 17:38:43 -03:00
Andrius Štikonas
b11b73b1e5
Remove extra semicolon after Q_UNUSED.
2018-07-12 00:12:43 +01:00
Caio Carvalho
9e6cf4063a
- Refactoring LVM::pvList to be a class with static QList<LvmPV> attribute instead of extern instance.
...
- Moving LVM VG verification in canShrink, canMove, canGrow to isLVMPVinNewlyVG method at ResizeOperation.
- Don't grow LVM PVs that are being targeted by CreateVolumeGroupOperations.
2018-05-09 04:09:17 -03:00
Andrius Štikonas
40f59a4870
Rename LUKS open and close Labels to "Lock" and "Unlock"
...
BUG: 393409
2018-04-23 11:05:44 +03:00
Andrius Štikonas
a43d5bbc5b
fatresize is libparted based, so does not support FAT12.
2018-04-16 11:32:29 +03:00
Andrius Štikonas
99c14ad074
Correctly report when excutable is not found.
2018-04-16 11:06:13 +03:00
Andrius Štikonas
4b1793f79b
Update backend name in the docs.
2018-04-15 01:09:48 +03:00
Andrius Štikonas
9e107c8136
Add forgotten files.
2018-04-11 15:14:17 +03:00
Andrius Štikonas
622def3b56
Convert more enums to scoped enums.
2018-04-09 15:14:34 +01:00
Andrius Štikonas
2e5f0fbcb2
d-pointerize FileSystem class.
2018-04-08 01:46:08 +01:00
Andrius Štikonas
17c8772240
Explicitely specify the scope of enum.
2018-04-07 19:54:30 +01:00
Andrius Štikonas
63cea60ff1
Replace std::array with std::vector
...
Less efficient but helps with keeping ABI stable
2018-04-05 21:52:17 +01:00
Andrius Štikonas
7ed6657e30
Restore functionality of FileSystem::findExternal
...
This also fixes unused variable warnings
2018-03-31 23:49:37 +01:00
Andrius Štikonas
738842799a
Make kpmcore link libraries private.
2018-03-31 16:30:53 +01:00
Andrius Štikonas
9ea7cab92a
Merge branch 'master' into kauth
2018-01-31 15:15:25 +00:00
Andrius Štikonas
ba4e443223
Move file system label and UUID read code to backends.
...
This allows to use different implementations on different platforms.
E.g. libblkid is not available on FreeBSD.
libparted backend still uses the same libblkid implementation
sfdisk backend reads label and UUID from udev database
2018-01-31 15:13:34 +00:00
Andrius Štikonas
2534608094
Use btrfs check --repair instead of btrfsck.
2018-01-29 13:30:14 +00:00
Andrius Štikonas
4069e5112e
Post merge fixes.
...
In kauth branch ExternalCommand::write should be called before start.
2018-01-11 11:45:39 +01:00
Andrius Štikonas
790553aa0b
Merge branch 'smart' into kauth
2018-01-11 11:31:18 +01:00
Pali Rohár
2f4aeaf851
Add support for reading capacity and changing label/uuid on UDF filesystem
2018-01-03 20:09:53 +02:00
Andrius Štikonas
8b9451c8d7
We don't need keyLocation for luks1 file system it is always dm-crypt.
2017-12-29 22:53:02 +00:00
Andrius Štikonas
1802b7ad05
Add luks2::create method.
2017-12-29 20:38:36 +00:00