Andrius Štikonas
e66fb4b95e
Do not attempt to set partition flags that were not changed.
2017-12-06 00:27:02 +00:00
Andrius Štikonas
8afe33a4a4
Allow setting label for inner LUKS file system during the initial creation.
2017-12-03 16:28:16 +00:00
Andrius Štikonas
4bf5bb467f
Fix conversion to/from QString/QByteArray
...
BUG: 384321
2017-12-03 12:37:21 +00:00
Andrius Štikonas
f1a695bdac
Add support for growing f2fs file system.
2017-11-13 19:34:52 +00:00
Andrius Štikonas
be7ba11f17
Remove unnecessary semicolons.
2017-11-12 14:55:55 +00:00
Andrius Štikonas
fad8a3568e
Fix the previous commit.
...
FileSystem::create is never called if createWithLabel is available.
2017-11-12 14:45:49 +00:00
Andrius Štikonas
58f2decdf8
Support newer f2fs-tools versions.
...
BUG: 386771
2017-11-12 13:07:48 +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
89a5308686
btrfs: implement updateUUID.
2017-11-05 20:42:40 +00:00
Andrius Štikonas
9ea983654c
Do not export symbols of CopySource(Target)Device
...
Calamares resize jobs was ported to ResizeOperation, so this is no longer
necessary.
2017-11-01 20:11:38 +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
e4c125c519
Do not over encapsulate Partition methods.
...
This caused more trouble than helped. There is no reason not to allow
e.g. settings new flags on partition or changing it's path.
2017-10-09 21:13:58 +01:00
Andrius Štikonas
d741fe4a00
Fix a typo in a comment.
2017-10-09 17:37:16 +01:00
Andrius Štikonas
9f3b2b8fd4
Use qOverload in Qt signal/slots.
2017-10-09 13:39:34 +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
15eabf9859
Add some comments about LVM in DeviceScanner.
2017-10-03 21:02:40 +01:00
Adriaan de Groot
c4ae5d680c
Docs: document Device (a description) and CoreBackendDevice (an operational class)
2017-10-03 05:56:16 -04:00
Adriaan de Groot
98caf84424
Docs: change parameter name to match intention.
...
Document that means exclude-read-only and change the
name to match. It was already named excludeReadOnly in the
parted backend.
2017-10-03 05:56:16 -04:00
Andrius Štikonas
80c5cb5a1f
Remove no longer used include.
2017-10-03 02:32:36 +01:00
Andrius Štikonas
40e22c94f2
Store ExternalCommand output in QByteArray.
...
This makes it possible to run dd with ExternalCommand.
2017-10-03 02:27:47 +01:00
Andrius Štikonas
37d3639bfe
Update credits.
2017-10-02 22:44:58 +01:00
Adriaan de Groot
e67b6b6a2b
Docs: Add documentation about FileSystem::name()
2017-10-02 16:16:49 +02:00
Andrius Štikonas
8fd723770a
Update credits.
2017-10-02 01:40:41 +01:00
Andrius Štikonas
722ef62ebb
Port away from KService.
2017-10-01 22:05:50 +01:00
Andrius Štikonas
8c3ab58d84
Add a comment about FAT volume ID hack.
2017-09-28 14:24:13 +01:00
Pali Rohár
e957c220bd
Disallow non-ASCII and ASCII control characters in FAT label
...
FAT label is interpreted according to current OEM DOS codepage which is
system dependent setting. But most DOS codepages have same characters in
printable ASCII range, so this is the only safe range of characters which
are interpreted in same way by most programs and operating systems. Also
all DOS codepages are only 8bit, so characters above U+FF cannot be stored
to FAT label.
2017-09-26 22:02:02 +01:00
Pali Rohár
5a30aff288
Set FAT label in upper case
...
FAT label should be stored in upper case. Also Windows systems doing it.
2017-09-26 22:01:56 +01:00
Andrius Štikonas
098fdee506
fstab fixes:
...
* Do not output # for empty inline comments.
* More checks to validate fstab entry.
2017-09-20 21:22:53 +01:00
Andrius Štikonas
a3732c1459
Fix a typo. Remove extra trimmed().
2017-09-17 13:52:48 +01:00
Andrius Štikonas
1713f66872
Fix reading partition label.
2017-09-17 13:06:31 +01:00
Andrius Štikonas
d99b3f6eb3
Improve QFileInfo usage.
...
Cache QFileInfo result in a local variable.
Before repeated request often incorrectly resulted in QString()
2017-09-17 00:39:53 +01:00
Andrius Štikonas
4a64465738
Remove MountEntry class.
2017-09-16 20:56:32 +01:00
Andrius Štikonas
8dd1e70b21
Fix inline comment handling.
...
CCBUG: 305469
2017-09-16 20:50:57 +01:00
Andrius Štikonas
baec157314
Add a function to write fstab file.
...
CCBUG: 305469
2017-09-16 20:40:46 +01:00
Andrius Štikonas
8719fb0bf3
Add fstab mutators.
2017-09-16 20:16:17 +01:00
Andrius Štikonas
4257021857
Use QStringList to store fstab options.
2017-09-16 19:09:03 +01:00
Andrius Štikonas
687e3fc7d4
Do not store more than 10M characters in ExternalCommand output.
...
BUG: 368674
2017-09-15 14:59:59 +01:00
Andrius Štikonas
ec89795326
Allow accessing untranslated partition roles.
2017-09-15 13:09:01 +01:00
Andrius Štikonas
dff6086e64
Copy paste typo.
2017-09-15 12:59:10 +01:00
Andrius Štikonas
0d16e945c1
Add a partition role name for LVM logical volume.
2017-09-15 12:50:05 +01:00
Andrius Štikonas
f1888f0d1c
Change a way untranslated file system name is accessed.
2017-09-15 12:47:01 +01:00
Andrius Štikonas
0c33a7b001
Move showColumnsContextMenu function from kpmcore to partitionmanager.
2017-09-14 20:43:08 +01:00
Andrius Štikonas
95a74c63d1
Do not report wrong mountpoint for closed LUKS file systems.
...
When libparted scans luks partitions it calls detectFileSystem
regardless of whether luks is open or closed. This results in
mapperNode being empty, so we need to prevent detectFileSystem
from reporting anything in this case.
2017-09-14 17:50:21 +01:00
Andrius Štikonas
f29534e7c7
Use untranslated file system name when exporting partition table.
...
CCBUG: 364648
2017-09-14 14:47:00 +01:00
Andrius Štikonas
5d65d83990
Add functions to access untranslated name of file system.
...
CCBUG: 364648
2017-09-14 14:23:07 +01:00
Andrius Štikonas
50ba46a693
Fix a typo where declarared variable was not used.
2017-09-14 01:27:38 +01:00
Andrius Štikonas
6b4185cff1
Do not crash when partition has no mount points.
2017-09-13 23:28:37 +01:00