Andrius Štikonas
1500eeb625
Use std::unique_ptr for CoreBackendDevices
2018-03-31 14:44:40 +01:00
Andrius Štikonas
e3aae714a2
Remove unnecessary whitespace.
2018-03-24 18:27:00 +00:00
Caio Carvalho
f8f25dc82a
- Changing SmartQuirkDatabase to store QString instead of char*.
...
- Changing quirkDatabase function to return QVector<SmartQuirkDatabase> instead of SmartQuirkDatabase*.
2018-03-24 15:17:30 -03:00
Andrius Štikonas
ac6dc0eb87
Remove backend readData/writeData functions.
2018-02-06 16:48:02 +00:00
Andrius Štikonas
2641730c0c
Merge branch 'master' into kauth
2018-02-04 15:56:38 +00:00
Andrius Štikonas
469855f7f7
Add missing variables to Partition class copy constructor.
2018-02-04 15:21:58 +00:00
Andrius Štikonas
f2b7f2bd9b
Use const char* instead of QString in Fstab::findBlkIdDevice
...
Thansk to: Adriaan de Groot
2018-01-31 17:02:59 +00:00
Andrius Štikonas
f98dbcc208
Only use libblkid on Linux.
2018-01-31 16:58:00 +00:00
Andrius Štikonas
838150d439
Do not use blkid cache.
2018-01-31 16:53:34 +00:00
Andrius Štikonas
c50006ed22
Fix #include issues in smart code.
...
CC: caiojcarvalho@gmail.com
2018-01-31 16:12:11 +00:00
Andrius Štikonas
9ea7cab92a
Merge branch 'master' into kauth
2018-01-31 15:15:25 +00:00
Andrius Štikonas
dd709fc8a9
Remove unnecessary extra LIBKPMCORE_EXPORT macros.
2018-01-27 13:15:19 +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
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