Chantara Tith
0d09853bd4
Remove hardcoded 4096 payloadOffset.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
8a3ba0a4a6
Remove unused header.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
432e59ac67
Add support for lvm pvmove before doing pvresize.
2016-08-15 17:20:50 +01:00
Andrius Štikonas
fd8c81921e
Get rid of unused LVM flag for LVM LV.
2016-08-15 17:20:50 +01:00
Chantara Tith
97c20ef236
Fix Luks over LVM resizing. Hardcode 512 as the sector instead of LVM PE size.
2016-08-15 17:20:50 +01:00
Chantara Tith
0952ffb11f
Hardcode LUKS payload offset return value in byte size instead of sector number.
2016-08-15 17:20:50 +01:00
Chantara Tith
38b324036e
Overload getPVSize for QStringList.
2016-08-15 17:20:50 +01:00
Chantara Tith
c26e094ca1
Move lvm2_pv functions to static.
2016-08-15 17:20:50 +01:00
Chantara Tith
e8bff59040
It makes more sense to have logic for getting list of used PVs in the LvmDevice.
2016-08-15 17:20:50 +01:00
Chantara Tith
ad23d6cbce
Fix createVG PV list white space problem.
2016-08-15 17:20:50 +01:00
Chantara Tith
036ed02b29
Add used and free PV scan for lvm2_pv.
2016-08-15 17:20:50 +01:00
Chantara Tith
a91d65aa47
Move lvm2_pv from regex to field options. Add read used space to lvm pv
2016-08-15 17:20:50 +01:00
Chantara Tith
f53cc1b55c
Cache lvm2_pv and luks result in finding external tool
2016-08-15 17:20:50 +01:00
Chantara Tith
6360260fae
Add support for reading LVM PV info
2016-08-15 17:20:50 +01:00
Chantara Tith
0af98556ac
Implement lvm PV resizing
2016-08-15 17:20:50 +01:00
Chantara Tith
0a6de0c2f0
Set VG name as PV mount point
2016-08-15 17:20:50 +01:00
Andrius Štikonas
b0dccc1c36
Also enable LUKS for F2FS and nilfs2 filesystems.
2016-08-08 02:03:45 +01:00
Andrius Štikonas
4d25524e91
Add support for resizing online.
2016-08-08 02:01:35 +01:00
Andrius Štikonas
0f33fe07c9
Fix coverity issues and some other minor simplifications.
2016-08-05 13:55:56 +01:00
Andrius Štikonas
ea99bcc76f
Correctly report used space of FAT partitions whose dirty bit is set.
...
BUG: 366313
2016-08-02 21:41:09 +01:00
Andrius Štikonas
918cf2ffa4
Use more compact syntax for passing and returning kauth helper arguments.
2016-07-29 14:19:12 +01:00
Andrius Štikonas
99886f32fc
Add more warning tags.
2016-07-18 12:50:52 +01:00
Andrius Štikonas
39e419a36e
Use <warning> KUIT tags.
2016-07-18 12:21:06 +01:00
Andrius Štikonas
3a2b78e143
Improve semantic markup of translations.
2016-07-17 23:41:00 +01:00
Andrius Štikonas
e437da6091
Also check whether HFS+ shrink support is available.
2016-06-12 16:15:18 +01:00
Andrius Štikonas
2514f7d8f4
Use diskdev_cmds instead of obsolete hfsplusutils for HFS+ file systems.
2016-06-12 13:33:04 +01:00
Andrius Štikonas
b6911285dc
Adjust maximum capacity for fat32, jfs and reiserfs.
2016-06-09 22:07:23 +01:00
Andrius Štikonas
35c7f9749e
Also reduce max capacity for ext2 and ext3 file systems.
2016-06-09 19:46:21 +01:00
Andrius Štikonas
3756ec45da
Reduce maximum capacity of FAT16 file systems by 1 MiB.
2016-06-09 19:22:56 +01:00
Andrius Štikonas
09711cdf1d
Whitespace fixes.
2016-06-01 21:00:31 +01:00
Andrius Štikonas
0c70c66aae
Disable MountPointDialog for swap, lvm pv and unknown partitions.
2016-05-24 17:26:12 +01:00
Andrius Štikonas
9de7341985
Use lsblk --list instead of lsblk --raw. Makes unicode mapper names work.
2016-05-23 12:00:33 +01:00
Andrius Štikonas
b4a13599aa
Libpartedbackend can also use KDiskFreeSpaceInfo for mounted luks partitions.
2016-05-22 00:52:07 +01:00
Andrius Štikonas
35a4798672
Add some support to get used space info for mounted LUKS partitions using KDiskFreeSpaceInfo.
2016-05-22 00:48:55 +01:00
Andrius Štikonas
7e8ee77edf
Make luks helper functions non-static.
2016-05-20 19:38:12 +01:00
Andrius Štikonas
12bc2329a2
Used space is larger for luks volumes due to payload.
2016-05-20 19:17:52 +01:00
Andrius Štikonas
fdfc47cf8f
Leave LUKS cmdSupport variables static for now.
2016-05-18 17:39:28 +01:00
Andrius Štikonas
7914e0aa98
Improve luks::supportCopy and luks::supportSetLabel.
2016-05-18 02:04:33 +01:00
Andrius Štikonas
ecbbdb3b1d
Do not allow moving open luks volumes.
2016-05-18 00:46:08 +01:00
Andrius Štikonas
47cb6752ba
Use batch mode of cryptsetup to format luks volume.
2016-05-18 00:44:15 +01:00
Andrius Štikonas
e5d72b7d11
Set miinimal capacity for btrfs filesystems back to 256 MiB.
...
mkfs.btrfs can make smaller filesystems but other tools, e.g.
btrfs filesystem resize do not work well on small partitions.
2016-05-17 22:02:21 +01:00
Andrius Štikonas
a610e24686
Move luks init code to constructor.
2016-05-17 19:05:17 +01:00
Andrius Štikonas
142ff07938
Remove reduntant virtual keywords.
2016-05-17 18:01:31 +01:00
Andrius Štikonas
094042cc75
Fix luks operations.
2016-05-17 17:38:17 +01:00
Andrius Štikonas
5d28790152
Simplify Luks support tool (and do not init Luks filesystem).
2016-05-17 17:35:49 +01:00
Andrius Štikonas
927a6421fe
Make FileSystem::init virtual instead of static.
2016-05-17 16:33:52 +01:00
Andrius Štikonas
e64e536797
Revert "Remove Luks from FileSystemFactory."
...
This reverts commit 98d515e826
.
2016-05-17 15:30:40 +01:00
Andrius Štikonas
98d515e826
Remove Luks from FileSystemFactory.
2016-05-17 15:04:50 +01:00
Andrius Štikonas
6d82fc0964
Document new function variables.
2016-05-13 23:18:24 +01:00
Andrius Štikonas
c6c31dc5c0
Use long options for mount.
2016-05-13 23:13:22 +01:00
Andrius Štikonas
1dfe304fd2
Restore back functionality of unmounting all mount points.
2016-05-13 23:08:58 +01:00
Chantara Tith
b653b5b6e3
move mount logic from Partition to FileSystem
2016-05-13 23:00:27 +01:00
Chantara Tith
2a12571d44
move unmount logic from Partition to FileSystem
2016-05-13 23:00:27 +01:00
Andrius Štikonas
3bfb0b4b5b
Restore optimized luks::mapperName function.
...
It seems that crashes are not our fault but rather of frameworkintegration.
2016-05-13 00:58:00 +01:00
Andrius Štikonas
9b5c33696c
Show error message if shrinking innerFS inside luks fails.
2016-05-12 16:48:32 +01:00
Andrius Štikonas
1ea4f4976d
Revert "Revert "Port away from QRegExp to QRegularExpression.""
...
This reverts commit c291af2c83
.
2016-05-12 16:45:13 +01:00
Andrius Štikonas
82243234e3
We no longer need to fill partition sizes. KPMCore now tracks max fs size (including inside luks).
2016-05-11 23:00:37 +01:00
Andrius Štikonas
c291af2c83
Revert "Port away from QRegExp to QRegularExpression."
...
This reverts commit bb2de6cd56
.
This was causing a crash when restoring partitions.
2016-05-11 22:31:33 +01:00
Andrius Štikonas
513bbdac4c
Convert FS::luks static cmdSupport members to non-static.
2016-05-11 18:01:21 +01:00
Andrius Štikonas
7c137c36c6
Disable copying open luks volumes.
2016-05-11 15:19:51 +01:00
Andrius Štikonas
4aeea8b143
Remove accidentally committed debug code.
2016-05-11 14:58:06 +01:00
Andrius Štikonas
a7c9acd518
Move luks label handlingfrom libpartedbackend to FS::luks.
2016-05-11 11:53:15 +01:00
Andrius Štikonas
19f5ce0b28
Remove curly braces when generating a new LUKS UUID.
2016-05-11 02:16:24 +01:00
Andrius Štikonas
0031f84315
Do not allow setting LUKS labels when crypt is closed.
2016-05-10 02:20:37 +01:00
Andrius Štikonas
64b0cf4c77
Unbreak non ASCII passphrases.
2016-05-09 11:07:31 +01:00
Andrius Štikonas
785aa7edf4
Avoid piping LUKS passphrase.
...
Also remove piping support from ExternalCommand.
It's unlikely that it will be useful enough. There were no more users of this
after luks open was migrated to QProcess::write.
2016-05-09 00:42:01 +01:00
Andrius Štikonas
bb2de6cd56
Port away from QRegExp to QRegularExpression.
2016-05-08 00:22:22 +01:00
Andrius Štikonas
29c6578351
Fix nilfs reporting missing tools.
2016-05-08 00:21:22 +01:00
Andrius Štikonas
5c32921fcd
Make log message more user friendly.
2016-05-07 01:11:59 +01:00
Andrius Štikonas
464b3060fb
Remove remaining ../ from #includes.
2016-05-06 22:36:24 +01:00
Andrius Štikonas
dc421db5c3
Move FS detection code back to backends.
2016-05-06 19:14:01 +01:00
Teo Mrnjavac
d584c70696
Passphrase accessor.
2016-05-06 16:50:23 +02:00
Andrius Štikonas
3ede101167
Fix a typo: mount->umount.
2016-05-06 14:34:40 +01:00
Teo Mrnjavac
6013b5887c
Always use outer UUID for mapper name.
2016-05-05 14:15:57 +02:00
Andrius Štikonas
0bd44b94dc
Use trimmed() instead of simplified().
2016-05-05 12:46:27 +01:00
Andrius Štikonas
a1026d20be
Use KPasswordDialog to open LUKS containers.
2016-05-01 14:17:06 +01:00
Andrius Štikonas
f1210d0aa7
Pass LUKS payload length to cryptsetup --size.
...
Before we were passing the length of the whole LUKS partition. After shrinking
LUKS partitions blkid would not recognize them.
2016-04-30 13:48:09 +01:00
Andrius Štikonas
a115961f04
Calculate the size of innerFS when growing LUKS volumes.
2016-04-29 20:25:14 +01:00
Andrius Štikonas
314742f40a
Use long options for cryptstup.
2016-04-29 19:49:06 +01:00
Andrius Štikonas
4ff7ada40b
Fix size vs sector number when resizing LUKS.
2016-04-29 18:12:34 +01:00
Andrius Štikonas
7cd1fd6eb7
Initial LUKS shrink support.
2016-04-29 17:56:39 +01:00
Andrius Štikonas
91c36c3d20
Adjust minCapacity for btrfs and luks. After all, it seems 40 MiB doesn't work.
2016-04-29 17:09:41 +01:00
Andrius Štikonas
47a1594705
Slightly improve setting used sectors.
2016-04-29 15:33:26 +01:00
Andrius Štikonas
e2f21360bb
Add support for reading used capacity of innerFS.
...
Also make sure labels, used capacity and UUID are properly updated when
opening or closing luks volumes."
2016-04-29 14:27:01 +01:00
Andrius Štikonas
85aca763a2
Pass a pointer to the parent widget to decrypt dialog.
2016-04-29 12:36:24 +01:00
Andrius Štikonas
4df97ec3e7
Fix detection of closed luks volumes (broken by new mapperName function).
2016-04-28 23:25:01 +01:00
Andrius Štikonas
aa02ae7b1c
When cryptsetup is missing complain about it, not support tools of innerFS.
2016-04-28 22:47:58 +01:00
Andrius Štikonas
6b772f3332
Optimize luks::mapperName function.
...
Now it uses lsblk to find out mapper node.
It also makes opened luks volumes to be properly detected when no cryptsetup
is found, e.g. crypt is opened in initramfs.
2016-04-28 22:38:38 +01:00
Andrius Štikonas
25e28a0e16
Only enable deactivation of LUKS volume if cryptsetup is found.
2016-04-28 21:56:03 +01:00
Andrius Štikonas
ea4b945ebb
Add override keyword to virtual functions.
2016-04-27 21:54:02 +01:00
Andrius Štikonas
f7e62d93f9
Merge branch 'master' into luks-decorator
2016-04-27 16:34:02 +01:00
Andrius Štikonas
e5641bf7f5
Minimal capacity of F2FS filesystems is 30MiB.
2016-04-27 16:09:14 +01:00
Andrius Štikonas
e96c13b2bb
Disable opening crypt if cryptsetup is not found.
2016-04-27 14:29:48 +01:00
Andrius Štikonas
51ef8013b1
Fix luks supportToolFound logic.
2016-04-27 14:22:00 +01:00
Andrius Štikonas
6bcbe14169
Add support for detecting support tools of innerFS.
2016-04-27 13:52:23 +01:00
Andrius Štikonas
e3bb8a335c
Return error if creating innerFS fails.
2016-04-27 00:50:51 +01:00
Andrius Štikonas
9920828f81
Reduce minimal btrfs partition capacity.
2016-04-27 00:32:27 +01:00
Andrius Štikonas
9c31d45229
Slightly reorder functions in luks.cpp to match other filesystems.
2016-04-27 00:29:01 +01:00
Andrius Štikonas
26047b35ef
Fix copy-paste typo.
2016-04-27 00:10:28 +01:00
Andrius Štikonas
f787af70fc
btrfs-debug-tree is not used anymore.
2016-04-26 13:54:16 +01:00