Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1347859pxj; Fri, 4 Jun 2021 12:00:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7IpdQhxrkH1AX5AMnpFfEtmQnigPfdJPW66SQRdxjgMPhi/TbHQXEooJliVfXfof40Yke X-Received: by 2002:aa7:d0d4:: with SMTP id u20mr6352682edo.228.1622833251879; Fri, 04 Jun 2021 12:00:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622833251; cv=none; d=google.com; s=arc-20160816; b=Oum5DEKnQ0tktkOnKEiq2irg+Mvn1DyHZTQYZeK0c4ko8eVc/HCCWq7JpbWnNKSVbt /yh6Lk+CfbIQkh0OFtn+lbn5yVjdwgr/6EkyFhQjt6DbIp85XwVFVDp4VMW1ZpTAqH78 KCwkEVj05b+A8LSWezkIDX+r+rnBUzTxlX36rGALRXuH9I8p484jA96V6DUUyYHUDGMN IPYO+GyXmecXokK/qCvRh2peiOJxeFueFqI6SwCPEV1zusdvPO2K9S0LAfoR9cPOPGdG UZRPRWJJ5jRqmfafmJtspM9L2/IuqcClauSvDEIwTYs52YJncH6zYmmiTZXOAzS6Ni3d ErOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=sjfvetY1TUJxcPuN5wzsikwPuIV4i1xTgbZGrhOCjgQ=; b=uGsSc0MWE1JAOSdCi54fLW5WPyiBmENhwCVCQ17zTjg0PeTvr/s6MFAZvk5ktuYHjj vgS5q9Fln5eECzUxMBOMrKw7U1dXFcNE07SOkDpL31SMV2MlcI6t8CJ9MuNm/o2CITo8 u5TR/lVaMLuZo7+guasV+njOGlZqJWkJk5bEpSkNZL4zt3v0rpzoBAg8BdEFaredJDUV P5MWSo6HOJJ4Pe2Q5UTyn+3PqxNB6jClnFtuJ/GHGZbqXPZB9a3atMvz/MSIdItYnxXG qABt+7qYk+TmMVSVSOMcDud4Dxx03YL9WPNw3823zBfblhgRjhAyrwztEt48uF/xv82Q vgdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck28si5549821edb.315.2021.06.04.12.00.27; Fri, 04 Jun 2021 12:00:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230368AbhFDTAw (ORCPT + 99 others); Fri, 4 Jun 2021 15:00:52 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:48068 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229823AbhFDTAw (ORCPT ); Fri, 4 Jun 2021 15:00:52 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 154Iwj1m006548 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 4 Jun 2021 14:58:46 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id ADDD215C39C3; Fri, 4 Jun 2021 14:58:45 -0400 (EDT) Date: Fri, 4 Jun 2021 14:58:45 -0400 From: "Theodore Ts'o" To: Jaegeuk Kim Cc: Eric Biggers , Daniel Rosenberg , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Gabriel Krisman Bertazi , kernel-team@android.com, stable@vger.kernel.org Subject: Re: [PATCH v2 2/2] f2fs: Advertise encrypted casefolding in sysfs Message-ID: References: <20210603095038.314949-1-drosen@google.com> <20210603095038.314949-3-drosen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 03, 2021 at 10:38:48PM -0700, Jaegeuk Kim wrote: > > Yes, but in the on-disk case, encrypted_casefold is redundant because it simply > > means encrypt && casefold. There is no encrypted_casefold flag on-disk. > > I prefer to keep encrypted_casefold likewise kernel feature, which is more > intuitive to users. At least for ext4, there are kernel vesions which support encryption and casefold *separetely*, but which do not support the file systems that have encryption and casefold enabled simultaneously. This is why I had added /sys/fs/ext4/features/encrypted_casefold. It was originally not to indicate whether the on-disk file system supported those features, but to indicate that the kernel in question supported both features being enabled simultaneously. - Ted