Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YZogAlhVmo-B for ; Wed, 11 Jan 2012 18:37:53 +0100 (CET) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Wed, 11 Jan 2012 18:37:52 +0100 (CET) Received: from gatewagner.dyndns.org (84-74-163-71.dclient.hispeed.ch [84.74.163.71]) by v4.tansi.org (Postfix) with ESMTPA id 78F812046F3 for ; Wed, 11 Jan 2012 18:37:51 +0100 (CET) Date: Wed, 11 Jan 2012 18:37:50 +0100 From: Arno Wagner Message-ID: <20120111173750.GA23563@tansi.org> References: <201201101351.22364.toralf.foerster@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201201101351.22364.toralf.foerster@gmx.de> Subject: Re: [dm-crypt] should luksClose command wait for sync ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de 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@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt -- Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@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