[dm-crypt] should luksClose command wait for sync ?
arno at wagner.name
Wed Jan 11 18:37:50 CET 2012
I think the issue here is that mkfs.ext2 calls fsync(), but
for some reason fsync() does not flush to disk or only flushes
one layer. I would expect that is a current bug/"feature" of
the device-mapper, although I dimly remember there were issues
with fsync() itself.
Better leave the sync in there for the time being.
On Tue, Jan 10, 2012 at 01:51:21PM +0100, Toralf F??rster wrote:
> WRT to this discussion:
> I'm wondering whether a command sequence like the follwoing needs a sync or
> not :
> $> mkfs.ext2 /dev/mapper/foo && sync && cryptsetup luksClose foo
> Toralf F??rster
> pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
> dm-crypt mailing list
> dm-crypt at saout.de
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno at wagner.name
GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F
One of the painful things about our time is that those who feel certainty
are stupid, and those with any imagination and understanding are filled
with doubt and indecision. -- Bertrand Russell
More information about the dm-crypt