From mboxrd@z Thu Jan 1 00:00:00 1970 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 g0-s3OnMSH6b for ; Tue, 24 Apr 2012 09:47:48 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 24 Apr 2012 09:47:47 +0200 (CEST) Message-ID: <4F965A9E.7090804@redhat.com> Date: Tue, 24 Apr 2012 09:47:42 +0200 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Does dm-crypt support journaling filesystem transactional guarantees? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yang Zhang Cc: dm-crypt@saout.de On 04/24/2012 08:45 AM, Yang Zhang wrote: > I'm considering using ext4 on encrypted LVM (which uses LUKS and > dm-crypt). Will the transactional guarantees in ext4's journaling be > preserved? yes. dm-crypt operates in block layer, so it is filesystem responsibility to properly set needed bits for IO (flush cache, FUA - force unit access) and dmcrypt (device-mapper in general and block layer) must process them. (read http://lwn.net/Articles/400541/ for more info). In short, ext4, xfs, btrfs and similar filesystems supports all features over dmcrypt. (Except very old kernels, but most of stable distros backports patches.) > Bonus: where may I find authoritative information on this (besides the source)? The source is your best friend :-) basically this is the first commit introducing real barrier (later replaced with FUA) support http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=647c7db14ef9cacc4ccb3683e206b61f0de6dc2b You can also use blktrace to see how are fs requests propagated to physical media. Milan