Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4035190pxb; Tue, 17 Nov 2020 09:35:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHA2a3SknGMgQ3K8Z882RFG2p4HRkThSC8VSrb4gllJF3rqAt1UVR0P2qhgQuT0p0u3Eyw X-Received: by 2002:a50:bb66:: with SMTP id y93mr21800751ede.244.1605634526343; Tue, 17 Nov 2020 09:35:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605634526; cv=none; d=google.com; s=arc-20160816; b=Kmr0MmszQNZOahzeTbXScH9dgntYIDfISGxfkflTvtM54G4IErU7hz+zdeH2oKAaxp yXMMu4MWXScEaxkuoKjdzykwgqInlGYQ5YhlOeNtCivKGKI59aE+yvkzrbra4soEbz9w //i7vLV7qQEbBnzaZ2Ez3Oc7pjmTEgMyY2kBzmcDfVU3KyRUIq2cp3UN7Yl11hWqPNbc K3JBxnavqaht1rVUXMzEE4wEphJ1ykiGAaGgd4kEczS4Ax77BvZuOdOw7ToNhyDjtdfz zSMn3HtC44x+UQqzmDejrgOgWECLQ23WRycKxUQ80bYXmvSgdfmDmfhD+E3pQx6FQ8tP lmSw== 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=+z0hHykfMnIPDUROAnAXl6rNA391niQ2wSPF//DPRRY=; b=bM4cjLFWag6N6UQXxLG3Q0LeX0KxcE69dJZVMaXo5TNOg1SxD9v+C5xRtCtcXbE67c oSR//fMQ3KjhjmFIcxVIK7U+XcP36Pols70APOueZHWHKuj8Rs5CTqkSvjPq2wa7XNWA Wr+2+siS0jABaJscCRGIbg6tCyxiUN7JnYQI/DcYE9FsY1bgHNw2TeWZseeJETYMXOh9 hKcEgdM0KDN7sOIQSTPCirKgPxDNgnjHgOOKF8t0LG2+CWKmjcFe8B55/VcBVizZr7i4 YUG3ciTVgJKyU/EbY1CnP3ZyhhH8cxYLk3+n/HJaYSJmI6HK/zs3wY48SS4p+ulgaggF VVzQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l63si16329899ede.607.2020.11.17.09.34.56; Tue, 17 Nov 2020 09:35:26 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728045AbgKQReQ (ORCPT + 99 others); Tue, 17 Nov 2020 12:34:16 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:56625 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726397AbgKQReQ (ORCPT ); Tue, 17 Nov 2020 12:34:16 -0500 Received: from callcc.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 0AHHXWfn000355 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Nov 2020 12:33:32 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id DC283420107; Tue, 17 Nov 2020 12:33:31 -0500 (EST) Date: Tue, 17 Nov 2020 12:33:31 -0500 From: "Theodore Y. Ts'o" To: Daniel Rosenberg Cc: 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, Gabriel Krisman Bertazi , kernel-team@android.com Subject: Re: [PATCH v2 1/3] libfs: Add generic function for setting dentry_ops Message-ID: <20201117173331.GE445084@mit.edu> References: <20201117040315.28548-1-drosen@google.com> <20201117040315.28548-2-drosen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117040315.28548-2-drosen@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Nov 17, 2020 at 04:03:13AM +0000, Daniel Rosenberg wrote: > 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. Since we don't know what set of functions we'll > eventually need, and cannot change them later, we add just add them. > > Signed-off-by: Daniel Rosenberg Reviewed-by: Theodore Ts'o - Ted