From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030556Ab2CPNef (ORCPT ); Fri, 16 Mar 2012 09:34:35 -0400 Received: from static.78-46-68-141.clients.your-server.de ([78.46.68.141]:37691 "HELO eristoteles.iwoars.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with SMTP id S1756765Ab2CPNee (ORCPT ); Fri, 16 Mar 2012 09:34:34 -0400 Date: Fri, 16 Mar 2012 14:34:31 +0100 (CET) From: Joel Reardon X-X-Sender: joel@eristoteles.iwoars.net To: Artem Bityutskiy cc: linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [patch] Remove notion of key schemes In-Reply-To: <1331902271.3730.76.camel@sauron.fi.intel.com> Message-ID: References: <1329152067.22240.214.camel@sauron.fi.intel.com> <1331902271.3730.76.camel@sauron.fi.intel.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Mar 2012, Artem Bityutskiy wrote: > On Thu, 2012-03-15 at 15:48 +0100, Joel Reardon wrote: > > + __u8 padding0[8]; /* Watch 'zero_dent_node_unused()' if changing! */ > > Also please, be consistent with overall UBIFS coding style and comment > fields at the structure header comment, not near the field itself. > I actually just copied this comment from the comment following padding1 and padding2; should they all just be omitted? As for the ubifs being mounted with the old, it may be best to increase the version format number. The old version won't be able to 'read' (i.e., decrypt) the data, while the new version has a switch to enable both modes. If new data is written by the old version then the new version will also have trouble to read it (unless we set crypto_lookup==0 to mean no key). But its probably for the best to just let older version mount the security enhanced one as read-only using the version format as the data will be anyhow unreadable. Non-security-enhanced ubifs (but aware) partitions can set the version format to the older value as they will be compatible. cheers, Joel Reardon