should luksClose command wait for sync ?
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 · 3 lines
MfG/Sincerely Toralf Förster pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
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#6925154I'm wondering whether a command sequence like the follwoing needs a sync or not :
$> mkfs.ext2/dev/mapper/foo&& sync && cryptsetup luksClose fooSignature · 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