Closed GoogleCodeExporter closed 9 years ago
How it works:
- luksSuspend is basically device-mapper block device suspend (intended to
allow online remapping of device) with additional wipe key from memory in
dmcrypt. So by the definition:
- no read/write operation can happen through suspended dmcrypt device - there is no valid key, we cannot encrypt/decrypt data. So sync after suspend is impossible.
- waiting on IO for resume is just device-mapper functionality, all IO operation basically stall here.
(BTW I think sync is done by default inside suspend operation but not sure now.)
So yes, drop cache + sync should be run before luksSuspend (in theory).
I think drop_caches just issues some IO operation (flush dirty buffers), so it
is unfortunately (in general) not possible to finish this for suspended dmcrypt
device.
Anyway, this is not cryptsetup issue but kernel device-mapper subsystem one -
so it should be discussed on dm-devel (dm-devel@redhat.com) list.
I'll make some note to ask later but cryptsetup cannot do anything here, it is
really kernel issue.
Original comment by gmazyl...@gmail.com
on 10 Mar 2014 at 7:58
Original issue reported on code.google.com by
raphael....@gmail.com
on 10 Mar 2014 at 1:14