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
Caio Carvalho
a3d43e159f
Removing LIBKPMCORE_EXPORT from SmartParser and adding SMART support dependencies to testsmart in cmake
2018-01-21 01:41:59 -03:00
Caio Carvalho
49c0c39f4b
- Including SMART support test
...
- Adding export macro to SmartParser
2018-01-20 21:56:10 -03:00
Andrius Štikonas
1c024c6b29
Fix a typo in the comment.
2018-01-11 21:59:18 +01:00
Caio Carvalho
0190d32cf6
Including doxygen comments to the new SMART support classes
2018-01-11 17:38:53 -03:00
Andrius Štikonas
a135c86ba1
Use QStringLiteral instead of QString::fromLocal8Bit
2018-01-11 14:17:55 +01:00
Andrius Štikonas
ed7c5b1c77
Use long command line option for smartctl.
2018-01-11 12:00:52 +01:00
Andrius Štikonas
790553aa0b
Merge branch 'smart' into kauth
2018-01-11 11:31:18 +01:00
Caio Carvalho
44fae61d4f
- Removing libatasmart dependency from CMakeLists.txt
...
- Changing getQuirk regular expression evaluation to use QRegularExpression instead of QRegExp
2018-01-09 19:34:20 -03:00
Caio Carvalho
d71731141c
- Changed m_Quirk variable in SmartAttributeParsedData to SmartQuirk value instead of reference
...
- Changed smartctl call to use ExternalCommand class instead of QProcess
- Changed Q_FOREACH to C++11 ranged based for
- Changed quint64 json parsing
2018-01-09 01:35:59 -03:00
Caio Carvalho
8177fb9738
Adding smart JSON output support
2018-01-08 17:59:48 -03:00
Andrius Štikonas
f20bea9bf8
Merge branch 'sfdisk' into kauth
2017-12-24 23:40:06 +00:00
Andrius Štikonas
3e7e9d8955
Sort partitions by first sector.
2017-12-21 23:16:12 +00:00
Andrius Štikonas
3a691edb4a
Do not install copy source/target device headers.
2017-12-15 19:33:11 +00:00
Andrius Štikonas
8264c87ab8
Cleanup unnecessary includes.
2017-12-10 18:44:54 +00:00
Andrius Štikonas
27462bcddb
Remove workaround to access user dbus session as root.
2017-12-10 18:09:03 +00:00
Andrius Štikonas
906a89c16d
Use ExternalCommand to copy fstab file to its final location.
2017-12-10 17:36:39 +00:00
Andrius Štikonas
d2f13ff4cc
QFile->QTemporaryFile.
2017-12-10 17:36:39 +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
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
0d88e26c8c
Add an experimental sfdisk backend.
2017-11-07 22:51:29 +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
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
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
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
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
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
f29534e7c7
Use untranslated file system name when exporting partition table.
...
CCBUG: 364648
2017-09-14 14:47:00 +01:00
Andrius Štikonas
50ba46a693
Fix a typo where declarared variable was not used.
2017-09-14 01:27:38 +01:00
Andrius Štikonas
268a68a318
Split fstab lines with both spaces and tabs.
2017-09-13 23:05:32 +01:00
Andrius Štikonas
8f7e0beb0f
Sort files in CMakeLists.txt alphabetically.
2017-09-13 18:52:43 +01:00
Andrius Štikonas
34712dd2ed
Add fstab file parser.
...
Remove dependency on KMountPoint and hence KIO.
2017-09-13 18:46:33 +01:00
Andrius Štikonas
17e6c32633
Fix more implicit type conversion warnings.
2017-09-11 13:41:03 +01:00
Andrius Štikonas
a041090168
Port LvmDevice away from KDiskFreeSpaceInfo.
2017-09-11 12:15:37 +01:00
Andrius Štikonas
8a477e689e
Minor clang warnings++
2017-09-11 12:01:39 +01:00
Andrius Štikonas
5433294a5b
Fix more minor clang issues.
2017-09-11 00:29:30 +01:00