Re: should luksClose command wait for sync ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


On Tue, Jan 10, 2012 at 01:51:21PM +0100, Toralf F??rster wrote:
> 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
> 
> -- 
> MfG/Sincerely
> Toralf F??rster
> pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@xxxxxxxx
> http://www.saout.de/mailman/listinfo/dm-crypt

-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@xxxxxxxxxxx 
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 
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux