Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934188AbcJMD3J (ORCPT ); Wed, 12 Oct 2016 23:29:09 -0400 Received: from imap.thunk.org ([74.207.234.97]:56284 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933767AbcJMD3E (ORCPT ); Wed, 12 Oct 2016 23:29:04 -0400 Date: Wed, 12 Oct 2016 23:26:30 -0400 From: "Theodore Ts'o" To: Eric Biggers Cc: adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, richard@nod.at Subject: Re: [PATCH] ext4: do not advertise encryption support when disabled Message-ID: <20161013032630.wff6nj52xaf6gear@thunk.org> Mail-Followup-To: Theodore Ts'o , Eric Biggers , adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, richard@nod.at References: <1476126331-82810-1-git-send-email-ebiggers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476126331-82810-1-git-send-email-ebiggers@google.com> User-Agent: NeoMutt/20160916 (1.7.0) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 658 Lines: 15 On Mon, Oct 10, 2016 at 12:05:31PM -0700, Eric Biggers wrote: > The sysfs file /sys/fs/ext4/features/encryption was present on kernels > compiled with CONFIG_EXT4_FS_ENCRYPTION=n. This was misleading because > such kernels do not actually support ext4 encryption. Therefore, only > provide this file on kernels compiled with CONFIG_EXT4_FS_ENCRYPTION=y. > > Note: since the ext4 feature files are all hardcoded to have a contents > of "supported", it really is the presence or absence of the file that is > significant, not the contents (and this change reflects that). > > Signed-off-by: Eric Biggers Thanks, applied. - Ted