Skip to contentSkip to conversation

should luksClose command wait for sync ?

dm-crypt Toralf Förster 2 participants 2 messages Jan 10, 2012 – Jan 11, 2012

lore
Share & tools
lore
#1 lore raw

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.

Arno

Quoted 15 lines · Toralf F??rster

WRT to this discussion:
https://forums.gentoo.org/viewtopic-p-6925154.html#6925154

I'm wondering whether a command sequence like the follwoing needs a sync or not :
$> mkfs.ext2 /dev/mapper/foo && sync && cryptsetup luksClose foo

Signature · 7 lines
MfG/Sincerely
Toralf F??rster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
_______________________________________________
dm-crypt mailing list
[email protected]
http://www.saout.de/mailman/listinfo/dm-crypt
Signature · 6 lines
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: [email protected] 
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