l10n daemon script
79a6f5a192
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-07-15 05:17:11 +02:00
Caio Carvalho
d8602817f0
Adding reassemble method for SoftwareRAID.
2018-07-12 14:38:52 -03:00
Caio Carvalho
3f7c5ca722
Reassemble Software RAID when commit partition table.
2018-07-12 14:08:24 -03:00
Andrius Štikonas
b11b73b1e5
Remove extra semicolon after Q_UNUSED.
2018-07-12 00:12:43 +01:00
Andrius Štikonas
d51404c7f1
sfdisk: fix returned partition name
...
This makes it work with partitions such as /dev/mmcblk1p2
2018-07-11 23:36:20 +01:00
Caio Carvalho
ae8987b82c
Sfdisk always creates RAID logical partitions with a 'p' character before partition number.
2018-07-10 23:03:21 -03:00
Caio Carvalho
c03c0ddc15
Including src/core/raid subdirectory.
2018-07-09 20:48:52 -03:00
Caio Carvalho
998b1292c0
SoftwareRAID initial implementation.
2018-07-09 20:01:34 -03:00
l10n daemon script
11954f1185
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-06-16 05:31:52 +02:00
Andrius Štikonas
dc248c3011
Merge branch 'master' into kauth
2018-06-15 20:40:29 +01:00
Caio Carvalho
358957641b
Including LVM VG device scan in scanDevice in SfdiskBackend and LibPartedBackend. It was scanning only for DiskDevices.
2018-06-11 18:33:11 -03:00
l10n daemon script
7497d509f4
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-06-07 05:41:48 +02:00
l10n daemon script
b3a8a3874f
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-23 05:26:25 +02: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
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
17c8772240
Explicitely specify the scope of enum.
2018-04-07 19:54:30 +01:00
l10n daemon script
6eab8757b5
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-06 05:23:24 +02:00
Andrius Štikonas
279159ca6f
Use smart pointers for CoreBackendPartitionTable.
2018-03-31 21:49:20 +01:00
Andrius Štikonas
2527b3ecc3
Merge branch 'master' into kauth
2018-03-31 20:30:05 +01:00
Andrius Štikonas
738842799a
Make kpmcore link libraries private.
2018-03-31 16:30:53 +01:00
Andrius Štikonas
1500eeb625
Use std::unique_ptr for CoreBackendDevices
2018-03-31 14:44:40 +01:00
Andrius Štikonas
8fa1814f45
Remove libparted backend.
2018-03-31 13:14:38 +01:00
l10n daemon script
8658743a49
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-30 05:19:57 +02:00
l10n daemon script
ad863cc6b1
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-19 05:09:05 +01:00
Andrius Štikonas
519cc2cd3c
Merge branch 'master' into kauth
2018-03-18 12:52:57 +01:00
l10n daemon script
2f621fc6db
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-13 05:16:54 +01:00
l10n daemon script
4406297053
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-12 04:59:29 +01:00
l10n daemon script
f89bc39c76
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-11 05:21:27 +01:00
l10n daemon script
11d2bbc344
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-06 05:21:11 +01:00
l10n daemon script
07a0f47c57
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-05 05:14:10 +01:00
l10n daemon script
67b25dc0e9
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-04 05:17:01 +01:00
l10n daemon script
fe117a20b0
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:15 +01:00
Andrius Štikonas
144e260efe
Finish porting to KCoreAddons JSON plugins.
...
Convert .desktop files to .json with desktoptojson
2018-03-02 11:33:46 +00:00
l10n daemon script
ff9e6c8323
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-02-19 04:59:32 +01:00
Andrius Štikonas
ac6dc0eb87
Remove backend readData/writeData functions.
2018-02-06 16:48:02 +00:00
Andrius Štikonas
af6c345210
Use CMAKE_SYSTEM_NAME to check whether we are running on Linux.
2018-02-04 19:17:34 +00:00
Andrius Štikonas
aa23fc1168
cmake does not define LINUX variable.
2018-02-04 19:11:25 +00:00
Andrius Štikonas
11e435657a
Do not build libparted backend.
2018-02-04 16:14:59 +00:00
Andrius Štikonas
2641730c0c
Merge branch 'master' into kauth
2018-02-04 15:56:38 +00:00
Andrius Štikonas
dcc9875923
Fix regular expression used in readLabel and readUUID.
2018-02-04 15:56:30 +00:00
Andrius Štikonas
4cae6f0632
Merge branch 'master' into kauth
2018-02-04 13:44:29 +00:00
Andrius Štikonas
8aac14ceca
Actually run udev command when reading label/uuid.
2018-02-04 13:40:32 +00:00
Andrius Štikonas
7e60df68bd
Do not expose libparted backend on non Linux systems.
2018-01-31 17:08:05 +00:00
Andrius Štikonas
56de5e1e06
Merge branch 'master' into kauth
2018-01-31 16:03:58 +00:00
Andrius Štikonas
67f79f42dd
Add cmake option for sfdisk backend.
2018-01-31 16:03:51 +00: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
7e8f64ffd7
Fix a possibly uninitialized variable.
2018-01-31 14:58:43 +00:00
Andrius Štikonas
4eff7d7594
Do not export CoreBackendDevice and CoreBackendPartitionTable classes.
2018-01-21 13:53:07 +00:00
l10n daemon script
098b9bc2ae
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-14 04:49:26 +01:00
l10n daemon script
85085d8eb7
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:47:56 +01:00
Andrius Štikonas
790553aa0b
Merge branch 'smart' into kauth
2018-01-11 11:31:18 +01:00
l10n daemon script
5376808159
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:23 +01:00
l10n daemon script
ba3676e165
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-04 04:49:48 +01:00
Andrius Štikonas
a6a69b1e31
Merge branch 'sfdisk' into kauth
2017-12-25 00:13:18 +00:00
Andrius Štikonas
590b531863
Commit partition table when closing Sfdisk backend device.
2017-12-25 00:11:13 +00:00
Andrius Štikonas
41570fde5d
Set FAT12 MBR/GPT partition type.
2017-12-24 23:56:03 +00:00
Andrius Štikonas
f20bea9bf8
Merge branch 'sfdisk' into kauth
2017-12-24 23:40:06 +00:00
Andrius Štikonas
5123411f1f
Add support for FAT12 file system.
2017-12-24 23:24:37 +00:00
Andrius Štikonas
f9cd824075
Add a comment about boot flags.
2017-12-20 15:03:48 +00:00
Andrius Štikonas
f8cbd28238
Remove FIXME that was already fixed.
2017-12-16 12:55:34 +00:00
Andrius Štikonas
7aa77f489d
Add FileSystem::Luks2 child class.
2017-12-14 02:08:32 +00:00
Andrius Štikonas
8c030baf3e
Switch file system detection code to udevadm.
2017-12-14 01:14:45 +00:00
Andrius Štikonas
47429dd1bf
Proof of concept attempt to implement KAuth.
2017-12-10 17:36:39 +00:00
Andrius Štikonas
def62c975d
Replace ntfs with ntfs-3g in lsblk file system detection code.
2017-12-09 23:31:31 +00:00
Andrius Štikonas
c3827b0c60
Call kpartx to reread partition table.
2017-12-09 23:29:18 +00:00
Andrius Štikonas
e3d01cf25f
Do not attempt to set empty partition type.
2017-12-09 19:19:36 +00:00
Andrius Štikonas
4c2efe8c52
Add partition type map.
2017-12-07 23:24:03 +00:00
Andrius Štikonas
55b8cd3e6b
sfdisk: store a pointer to the device in SfdiskPartitionTable class.
2017-12-07 20:50:54 +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
d27455b6f0
Avoid unnecessary QString encoding/decoding.
...
CCBUG: 384321
2017-12-04 21:19:11 +00:00
Andrius Štikonas
f09cb6435e
Fix conversion to/from QByteArray in sfdisk backend.
...
CCBUG: 384321
2017-12-03 12:40:57 +00:00
Andrius Štikonas
6996687123
Merge branch 'master' into sfdisk
2017-12-03 12:38:43 +00:00
Andrius Štikonas
4bf5bb467f
Fix conversion to/from QString/QByteArray
...
BUG: 384321
2017-12-03 12:37:21 +00:00
Andrius Štikonas
d3cde41df0
Allow setting boot, esp and bios-grub flags in sfdisk backend.
2017-11-08 00:01:24 +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
0d88e26c8c
Add an experimental sfdisk backend.
2017-11-07 22:51:29 +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
2760f02fbf
Move LVM device scanning code.
...
Now it's the backend's responsibility to find LVM devices.
All LVM scanning code was moved into LvmDevice::scanSystemLVM helper,
so that it is very easy to plug LVM into backend.
LVM devices are now intentionally not detected in Dummy Backend.
2017-10-06 03:17:51 +01:00
Andrius Štikonas
1713f66872
Fix reading partition label.
2017-09-17 13:06:31 +01:00
Andrius Štikonas
17e6c32633
Fix more implicit type conversion warnings.
2017-09-11 13:41:03 +01:00
Andrius Štikonas
5433294a5b
Fix more minor clang issues.
2017-09-11 00:29:30 +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
2404689dd0
Port away from KDiskFreeSpaceInfo to QStorageInfo.
2017-09-08 18:35:30 +01:00
Andrius Štikonas
5a83e741cb
Add support for detecting ISO9660 file systems.
...
BUG: 364476
2017-09-08 11:42:12 +01:00
Andrius Štikonas
6ad873223e
udf: set MBR partition id to 0x07.
2017-09-03 21:24:15 +01:00
Andrius Štikonas
7dba4b8245
Record sector size in FileSystem class.
2017-09-03 15:37:14 +01:00
Pali Rohár
feec00f4e7
Add basic support for UDF filesystem
...
For reading UDF label and UUID is needed blkid >= 2.30. For creating new
UDF filesystem is needed mkudffs binary from the udftools package.
When creating new UDF fileystem, revision 2.01 for hard disk media is used.
Therefore it is not possible to use it for optical (or other) medias.
Problems:
* Check for min and max capacity is incorrect as it depends on logical
(sector) size of the disk.
* Check for max label length is incorrect too as it depends on characters
itself in label.
* Specifying label is not working yet as FileSystem::create() does not get
label parameter.
* UDF filesystem should be used on unpartitioned disk, without MBR or GPT
and spanning whole disk, but KDE Partition Manager does not support it.
* When MBR is used, MBR partition id should be 0x07, but currently it is
incorrect 0x83. See: https://serverfault.com/a/829172 (same for GPT)
2017-08-31 10:12:44 +01:00
Andrius Štikonas
037380228d
QRegularExpression->QJson
...
lsblk LUKS mapping point parsing now uses json.
2017-07-04 14:42:39 +01:00
Andrius Štikonas
311a171307
Use QtJson to parse lsblk output.
2017-06-28 14:11:43 +01:00
Harald Sitter
984a4e9ace
fix device RO check
...
Summary:
- mark deviceNode const
- copy it as deviceName
- mutate deviceName by removing `/dev/`
- use the new deviceName for the read-only check
this makes sure we emit the unmodified deviceNode (e.g. /dev/vda) rather
than the name (e.g. vda). unbreaks for example calamares which doesn't
know what to do with "vda".
CCBUG: 378607
Test Plan:
- without fix clamares fails to list devices
- with the fix calamares lists devices
Reviewers: stikonas
Reviewed By: stikonas
Differential Revision: https://phabricator.kde.org/D6414
2017-06-28 13:51:27 +02:00
Andrius Štikonas
a35702e911
Use lsblk's TYPE=disk when scanning for devices.
...
The previous way relied on kernel device numbers but this gets ugly, especially
in cases when device number is not assigned such as virtio disks.
BUG: 378607
2017-06-22 03:11:58 +01:00
Andrius Štikonas
fda1e219de
Add more major device numbers for virtio.
...
BUG: 378607
2017-06-20 15:51:13 +01:00
l10n daemon script
cb1f76d018
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-06-11 04:31:47 +02:00
Andrius Štikonas
d2ce014589
Use range based for instead of Q_FOREACH.
...
Bump Qt version requirements to 5.7.0
2017-06-01 11:16:09 +01:00
Andrius Štikonas
e43d6645e4
Replace VLA with new[].
2017-06-01 01:36:38 +01:00
Alexander Schlarb
427e37a047
Prevent the libparted backend from exposing "null devices"
...
REVIEW: 129968
BUG: 375394
2017-02-25 13:45:22 +00:00
Teo Mrnjavac
876a3932fd
Do not filter out KVM virtual disks in LibPartedBackend::scanDevices.
2017-02-17 11:55:15 +01:00