Milan Broz
7843415243
Move string_to_size to userspace tools.
2015-08-26 12:42:25 +02:00
Milan Broz
6e82bdd9a5
Do not use real password when unlocking "fake" header on reecryption.
...
If reencrypt removes encryption (or adds encryption to not yet encrypted system)
there is a temporary header using null (none) cipher.
We do not need to pass through password when unlocking these devices.
2015-07-02 08:18:44 +02:00
Milan Broz
6d51e8ab69
Support permanent device decryption using cryptsetup-reencrypt --decrypt.
2015-01-27 14:20:34 +01:00
Milan Broz
b789b011a2
Fix some compiler warnings introduced recently.
2015-01-15 12:27:34 +01:00
Milan Broz
f16f37233f
Fix partial reads and handle EINTR in reencryption code.
...
The partial read usually happens only on IO error,
so reencrypt at least part what is read properly.
For EINTR code must restart read completely.
Fixes issue#226.
2014-10-04 15:39:38 +02:00
Ondrej Kozina
3d6bcae84c
reencrypt: use fsync instead of O_DIRECT flag
...
O_DIRECT operations directed towards filesystem are problematic:
There's no sane way how to detect specific filesystem requirements
for such operations.
This patch is replacing O_DIRECT flag with O_SYNC flag for all
open() calls related to reencrypt log. The O_SYNC flag is used
when --use-fsync option is detected.
Man page is modified accordingly.
2014-09-23 18:47:02 +02:00
Milan Broz
3350ff017f
Do not allocate big context on stack for cryptsetup-reencrypt.
2014-08-10 16:09:01 +02:00
Milan Broz
54c7a2b0aa
Fix signed/unsigned compiler warnings.
2014-06-29 11:55:11 +02:00
Milan Broz
779c80c581
Fix some spelling error found by lintian.
...
Thanks to Jonas Meurer.
2014-03-04 20:27:15 +01:00
Milan Broz
2e97d8f8e8
Prepare version 1.6.4.
2014-02-27 14:36:13 +01:00
Milan Broz
e364041b40
Add --keep-key to cryptsetup-reencrypt.
...
This allows change of LUKS header hash (and iteration count) without
the need to reencrypt the whole data area.
2014-01-19 15:29:12 +01:00
Milan Broz
957201e758
Fix reencryption tool to work with 4k devices.
...
See https://bugzilla.redhat.com/show_bug.cgi?id=1029032#c7
Thanks to Ondra Kozina to figure this out.
2013-12-08 17:50:25 +01:00
Ondrej Kozina
5736b0a114
unify --key-slot behavior in cryptsetup_reencrypt
...
- cryptsetup-reencrypt: unify --key-slot behavior
across the utility and enable the option even
without --key-file.
[FIXME: add tests and man page revision]
2013-11-10 18:29:11 +01:00
Milan Broz
6127b6959f
Update copyright year on changed files.
2013-03-24 09:05:33 +01:00
Milan Broz
fd5b88449a
Make passphrase prompts more consistent.
...
Also see http://code.google.com/p/cryptsetup/issues/detail?id=145
2013-02-11 14:53:49 +01:00
Milan Broz
29f21208a0
Change License from GPLv2 only to GPLv2+ ("or any later").
...
Agreed by all copyright authors.
2012-12-29 11:33:54 +01:00
Milan Broz
0bd8b9823a
Fix time of check/use Coverity report in cryptsetup-reencrypt.
2012-12-17 16:10:39 +01:00
Milan Broz
50be50c521
Add fixme for ETA calculation.
2012-12-17 09:54:10 +01:00
Milan Broz
b16feb6853
Add verbose messages during reencryption to avoid confusion.
2012-12-14 14:48:36 +01:00
Milan Broz
32c578729c
Handle signals in tool context.
2012-12-11 19:01:46 +01:00
Milan Broz
710aad20d3
Move signal handling into common utils code.
2012-12-11 15:40:42 +01:00
Milan Broz
89e09afdf6
Fix some problems found by Coverity static analysis.
2012-09-19 13:58:00 +02:00
Milan Broz
ff9db165eb
Use common utils_tools.c for all tools.
...
Unify tool environment and deduplicate code.
2012-08-13 18:31:26 +02:00
Milan Broz
b99b4825a2
Use resume instead of restart.
2012-06-27 21:28:11 +02:00
Petr Písař
9b455125e9
Pass help text to popt already translated
...
popt does not process the text registered by poptSetOtherOptionHelp()
through gettext on its own. Application must do it.
2012-06-26 21:26:04 +02:00
Milan Broz
b684fffdaf
Switch to use unit suffix for --reduce-device-size option.
2012-06-25 16:06:43 +02:00
Milan Broz
fb3b62ca02
Add --device-size option for reencryption tool.
2012-06-25 15:34:11 +02:00
Milan Broz
0ec4d4c9cf
Add directio to reenc test.
2012-06-19 16:04:20 +02:00
Milan Broz
e37016bf64
Fix malloc of 0 size.
2012-06-18 15:03:47 +02:00
Milan Broz
104c7d6c4f
If in progress, just use normal path (check passphrase).
2012-06-18 14:52:35 +02:00
Milan Broz
b773823a1b
Add ability to encrypt plain device.
2012-06-18 14:29:22 +02:00
Milan Broz
cc948df1dd
Sanity check for some options.
2012-06-17 19:30:48 +02:00
Milan Broz
35e3660c61
Add possibility to change key size (optionally by shrinking device).
2012-06-17 15:09:34 +02:00
Milan Broz
28c6901de1
Do not touch new LUKS headers.
2012-06-17 12:44:53 +02:00
Milan Broz
dc067454c1
Rename to crypsetup-reencrypt.
...
Add man page.
Add configure option.
2012-06-17 12:12:17 +02:00