Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 3 Mar 2003 19:28:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 3 Mar 2003 19:28:30 -0500 Received: from tone.orchestra.cse.unsw.EDU.AU ([129.94.242.28]:30140 "HELO tone.orchestra.cse.unsw.EDU.AU") by vger.kernel.org with SMTP id ; Mon, 3 Mar 2003 19:28:28 -0500 From: Neil Brown To: Vlad Harchev Date: Tue, 4 Mar 2003 08:50:46 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15971.52790.676134.722437@notabene.cse.unsw.edu.au> Cc: linux-kernel@vger.kernel.org Subject: Re: 2.4 and cryptofs on raid1 - what will be cached and how many times In-Reply-To: message from Vlad Harchev on Monday March 3 References: <20030302105634.GA4258@h> <20030303093832.GA4601@h> X-Mailer: VM 7.08 under Emacs 20.7.2 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D On Sun, Mar 02, 2003 at 02:56:34PM +0400, Vlad Harchev wrote: > > Hello, > > > > Could you please answer the following question: > > > > Suppose we have a crypto filesystem on a raid1 array of 2 devices. What will > > the kernel cache of fileystem data contain - encrypted data or not? Will is > > be 2 copies of the same data in the cache or not? > > Sorry for confusion - of course I meant linux software raid here.. With raid1 has no effect on caching. Exactly the same data is cached with raid1 as with as plain SCSI or IDE drive. Raid5 is different. It has an extra cache of some of the data that has been written-to or read-from the devices. > > > Is there any way to force kernel to cache the same file data only once, and > > keep it unencrypted (in cache)? > > I suspect that depends of the details of the implementation of you "crypto filesystem". NeilBrown - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/