Anthony Fieroni
faca8f7f0d
S.M.A.R.T. attribute 178 is same as 179
...
smartctl --all /dev/sda
178 Used_Rsvd_Blk_Cnt_Chip 0x0013 100 100 010 Pre-fail Always
Differential Revision: https://phabricator.kde.org/D17683
2018-12-19 23:18:49 +00:00
Andrius Štikonas
2007f2b8ea
Allow copyblocks to be used together with small QByteArrays.
...
Add CopyTargetByteArray. CopySourceByteArray is not implemented yet.
This is only suitable for reading small amount of data such as GPT header
or FAT boot sector location. Not meant for copying whole partition because
data has to be transfered over DBus.
Differential Revision: https://phabricator.kde.org/D16487
2018-10-29 00:02:12 +00:00
Andrius Štikonas
fe27ca6f29
Also update allocated PE number when resizing LVM LVs.
2018-10-14 01:11:57 +01:00
Andrius Štikonas
3e31ec1431
Fix free space handling when resizing LVM LVs.
...
BUG: 399772
2018-10-14 00:02:06 +01:00
Andrius Štikonas
4080eef0ba
Set FlagBoot = FlagEsp and deprecate it.
2018-09-01 21:27:05 +01:00
Andrius Štikonas
f4cd7dd953
Use C++14 style deprecated attributes.
2018-09-01 18:52:15 +01:00
Andrius Štikonas
4fcbb540e0
Fix unallocated space calculation in the presence of LVM RAID partitions.
...
BUG: 396776
2018-07-24 21:39:55 +01:00
Caio Carvalho
4b723be585
Adding LvmDevice::s_OrphanPVs shared list to store PVs paths that are member of VGs that will be deleted soon.
2018-07-23 13:34:40 -03:00
Caio Carvalho
64419caa8d
Add chunk size for RAID 1 arrays.
2018-07-16 15:39:47 -03:00
Caio Carvalho
c1e393240b
Using QFile instead of calling ExternalCommand to read /proc/mdstat and mdadm.conf files.
2018-07-15 19:38:33 -03:00
Caio Carvalho
3fd221f794
Ranged-for in availableInConf const copy.
...
All the scanned devices should be added to devices list.
2018-07-15 16:36:43 -03:00
Caio Carvalho
a508cfbc83
Avoiding pointer comparison.
2018-07-15 15:51:23 -03:00
Caio Carvalho
e761c131d0
Changing prettyName for RAID devices with Resync/Recovery status.
2018-07-15 13:21:12 -03:00
Caio Carvalho
f3fac7eac7
Add SoftwareRAID::Status enum.
...
Check for RAID before modelCommand in SfdiskBackend::scanDevice.
2018-07-15 13:11:50 -03:00
Caio Carvalho
fae6cd4d61
RAID 0 devices don't need to check for resync/recovery progress.
2018-07-15 12:10:19 -03:00
Caio Carvalho
dff99ffcf5
Support RAID devices which are in resync/recovery process after its creation/assemble.
...
Revert modelCommand.output().trimmed().isEmpty() check in SfdiskBackend::scanDevice.
2018-07-15 12:06:54 -03:00
Caio Carvalho
a0b9a93b6b
Support inactive RAID devices.
2018-07-15 10:31:27 -03:00
Andrius Štikonas
f572681684
Partially revert 252b108660
.
...
That commit broke LVM support.
2018-07-15 00:28:38 +01:00
Andrius Štikonas
252b108660
Abort LVM scanning when lvdisplay command fails.
2018-07-14 13:19:15 +01:00
Caio Carvalho
aa23ecdc3c
Software RAID devices can be created containing '/' character after 'md'. (e.g. /dev/md/alpha0)
2018-07-13 19:33:08 -03:00
Caio Carvalho
6803d6bc67
Including RAID level in SoftwareRAID device pretty name.
2018-07-13 17:56:13 -03:00
Caio Carvalho
b3e0dbe15a
Adding full command option for detail and stop Software RAID.
2018-07-13 16:20:38 -03: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
Caio Carvalho
e2f88dbbf9
Including SoftwareRAID attributes getters.
2018-07-11 12:03:44 -03:00
Caio Carvalho
a2d601d512
Checking for SoftwareRAID_Device type in partition table job.
2018-07-11 12:01:26 -03:00
Caio Carvalho
ab7def5e7d
Changing HardwareRAID_Device to FakeRAID_Device.
2018-07-11 11:57:56 -03: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
04a5e2914d
Correctly showing Software RAID device partition table.
2018-07-10 19:09:22 -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
Andrius Štikonas
0dd5ac25fd
Revert "Remove deprecated attribute for now."
...
This reverts commit 4bcf9288e6
.
2018-06-16 19:35:09 +01:00
Andrius Štikonas
dc248c3011
Merge branch 'master' into kauth
2018-06-15 20:40:29 +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
dcfb9f181f
Use more C++11 initializer lists.
2018-04-23 00:09:46 +03: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
fc4133233b
Revert "Try to workaround systemd automounting."
...
This reverts commit 9cc583e7d5
.
2018-04-13 01:06:32 +03:00
Andrius Štikonas
4bcf9288e6
Remove deprecated attribute for now.
...
Not available on current Neon.
2018-04-12 15:16:49 +03:00
Andrius Štikonas
0263e45251
Merge branch 'master' into kauth
2018-04-12 13:48:06 +03:00
Andrius Štikonas
4773023f75
Add migration documentation for deprecated enum values.
2018-04-12 13:47:33 +03:00
Andrius Štikonas
db40442744
d-pointerize Operation class.
2018-04-11 03:52:46 +03:00
Andrius Štikonas
9cc583e7d5
Try to workaround systemd automounting.
2018-04-10 23:26:44 +03:00
Andrius Štikonas
dda5ddd3e6
Fix more memory leaks in SmartDiskInformation.
2018-04-09 16:16:02 +01:00
Andrius Štikonas
a9a637454a
Fix a memory leak in SmartParser.
...
CC: caiojcarvalho@gmail.com
2018-04-09 16:07:44 +01:00
Andrius Štikonas
492e3beb18
Reuse SmartStatus::SelfTestStatus enum.
2018-04-09 15:37:46 +01:00
Andrius Štikonas
b5d0b500cf
Reuse SmartStatus::Overall enum for SmartDiskInformation.
2018-04-09 15:27:07 +01:00
Andrius Štikonas
622def3b56
Convert more enums to scoped enums.
2018-04-09 15:14:34 +01:00
Andrius Štikonas
df449ac3d4
Mark old enum values as deprecated.
2018-04-09 13:42:36 +01:00
Andrius Štikonas
ee2688d4d9
Merge branch 'master' into kauth
2018-04-09 12:44:14 +01:00