Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp17006pxu; Sat, 21 Nov 2020 20:56:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwagGCt4z5H31w6kVIhPekyNfEg7M1135wSQjFwPwoFKVF73wHJjawkWOkQTt2uXXE0V1+3 X-Received: by 2002:a17:906:7690:: with SMTP id o16mr20375245ejm.159.1606021017453; Sat, 21 Nov 2020 20:56:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606021017; cv=none; d=google.com; s=arc-20160816; b=s6xi6oES08/VIyUQOuMTljXvQogWuIxkK5l3Pqt/GBUNAO4kVCrzehzgWwpmuAZvij bNIpQ3wZzTbmDrrJwVC6vjjbaQf+EsM+em9tP451iIbiPxZAf0Y9/Orfuor0jcjY9usq 8Rx71+bdBSyiepnic/hZk0LocenOugKMImo7oswWlwg2OpRaIQM/nCE39tQfVF0s3MRc tqcC4scbpz9cWE4ZSTe8f6rf/pe/Sg+AkYM9r+sRthSuvN2P7PfYL0BHW70ysOPwtVMi WaKrUrZQFjgrSKcirmWpIPwKB+D1+GNXehsYLk18JkyXVj2kLjhiBDoYdPkHj0mU1kQT LdPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:organization:subject:cc:to:from; bh=wFsi3ix9hTLUgdW/yNyQEjY9QMbtg6sdmsm/0sRxjqk=; b=EUvvxQLRVy+I6tW62MSVIzb0xaOC6lYgOEOlTWxxenlFIig4gyZCtsF0Tv9kUg/nHj Z9ce8rj+xyXA7SMFAwGf3Se2waN1PKm3/qrOWgHZsVxUbWaW3dCbeya9KDSwspQxveuG DaCgE7y1CAfbMR5yYeF2vvqb0VnXhO424unlErhKHNLo036rO4qUqbwhSNz8EnbRaPlK ZQb9QLEu7HXXg1T15/ORyUQr6Opb9ehQr4OFmM/dUuqMH9CTQw5W2dq7ySvmObBlR/PO JZtVxaoq9wQMFoqAYSTcd8ztlsTq6/j8QmsZaxb5vBZDQ6+zILTgM6LU40j5Iz3/oTG4 Bg4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si4002404ejb.688.2020.11.21.20.56.33; Sat, 21 Nov 2020 20:56:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727267AbgKVEzn (ORCPT + 99 others); Sat, 21 Nov 2020 23:55:43 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:50974 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbgKVEzn (ORCPT ); Sat, 21 Nov 2020 23:55:43 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 8363F1F45BFE From: Gabriel Krisman Bertazi To: Daniel Rosenberg Cc: "Theodore Y . Ts'o" , Jaegeuk Kim , Eric Biggers , Andreas Dilger , Chao Yu , Alexander Viro , Richard Weinberger , linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org, kernel-team@android.com, Eric Biggers Subject: Re: [PATCH v4 1/3] libfs: Add generic function for setting dentry_ops Organization: Collabora References: <20201119060904.463807-1-drosen@google.com> <20201119060904.463807-2-drosen@google.com> Date: Sat, 21 Nov 2020 23:55:37 -0500 In-Reply-To: <20201119060904.463807-2-drosen@google.com> (Daniel Rosenberg's message of "Thu, 19 Nov 2020 06:09:02 +0000") Message-ID: <87tutij8hi.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Daniel Rosenberg writes: > This adds a function to set dentry operations at lookup time that will > work for both encrypted filenames and casefolded filenames. > > A filesystem that supports both features simultaneously can use this > function during lookup preparations to set up its dentry operations once > fscrypt no longer does that itself. > > Currently the casefolding dentry operation are always set if the > filesystem defines an encoding because the features is toggleable on > empty directories. Unlike in the encryption case, the dentry operations > used come from the parent. Since we don't know what set of functions > we'll eventually need, and cannot change them later, we enable the > casefolding operations if the filesystem supports them at all. > > By splitting out the various cases, we support as few dentry operations > as we can get away with, maximizing compatibility with overlayfs, which > will not function if a filesystem supports certain dentry_operations. > > Signed-off-by: Daniel Rosenberg > Reviewed-by: Eric Biggers Reviewed-by: Gabriel Krisman Bertazi -- Gabriel Krisman Bertazi