Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1502623rdb; Wed, 24 Jan 2024 18:51:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFt/JFDDByBsQ48wr+H9tDkddRbCaLGFIvHbPn4TC0siGV6to9Fh38CxrXZ7xOU8+R1OxQQ X-Received: by 2002:ac8:59c9:0:b0:42a:50ce:7f2a with SMTP id f9-20020ac859c9000000b0042a50ce7f2amr353989qtf.42.1706151087212; Wed, 24 Jan 2024 18:51:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706151087; cv=pass; d=google.com; s=arc-20160816; b=l5JHahAH+1fKqZKFaFZTA+WFqY635o1wnZBx08tUUO2ZLGqdRzHj+O20K07ZNwrwfV WSkd9DetD7KzPV5B00oktU+1IqF22RvsuXPZ1LMq+FgMnoy72ir0mQyG9ylqSps8KgOG E3fCBgtTHGsPHZh6ArEFijq9CWhzpI1gTQVWTgaYkM41xnSq5wZR53BAwviS7oMbjoWv 2KnpzFsBdhMTiyEnKaIVqzJT9tzQssxlS2P5mps/4FXP8bG8S4lzDJ5bX8alPxczAKay yQ0cxnXNpUkaO+TrsBdRF9T4zpBYF4A0uHzd3jZW5ytQw3ZZF+iObLA18V5i6N38enrz t4/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XepvQzd1na/NY4ybNpIWj2JdpctK98PX4+WlnrGVWdc=; fh=iyy13j/hzfuQ7wUjKw2aoGVnHVkfJeRlTmijr91AKLc=; b=q6M6CeMpxcWKXda4/kTuSw+uMViteuj5gYfftLTP/tINCeneRf45BuPEnPvLqTErlk 1BuZa0irYHXH0JrVR7I3jkKoU+gTvZSBXrlh9RpYhSI6dJc+pGqAdLFxLGXSpuI2zkQg cqPvFrXg7PJ3j63HBXHyYYhK6KMhixU2cU7nVRVilYvLPnklc/nubp+PCWt5qfEWgT+z WwHFxBHZtC77X1ul32mRLMfHofJzv6GnmWRJtO1RDR/fsuTJB2kI22UjPZmCox9hBmZt qA/+sJZKG9+DWtF/4VpvpV/nfddBUP9rCmP7exjoFPzP4m4NDCAANAJ8tVLiG2jmeiJH tr1g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tt+MgVUA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v4-20020a05622a188400b0042a6408e54fsi1880142qtc.758.2024.01.24.18.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 18:51:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tt+MgVUA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EFEA51C22543 for ; Thu, 25 Jan 2024 02:51:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB8CA5C9A; Thu, 25 Jan 2024 02:51:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tt+MgVUA" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38DC91842; Thu, 25 Jan 2024 02:51:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706151078; cv=none; b=Xgy5WqHbEDNOUJZYHzAHcywcnXrbtDTXlTgS+/jNqwXgSIq1J0PIqNbsjzzVjHivRquE3cbgva/orhwre2JrcUh6i/Guf4k03RNeTXmcQq0qS5HdioPNHK8ooVsV2zDuSv837SxJYwqAYb4rgaer25JCMABWTWSEgpkZRp1PB70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706151078; c=relaxed/simple; bh=XAInFk0WFWd1bmvs0vQTX2Dqg3VbW5EExkT+v4E4z9g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IKmNLb6DWnSSiQsRGRoQ2xI9Sm6h4mFMpkhNl0Kc3n1Alj5mWUiSuW+TImrvK993L0684jSdQNsC5Zf2U/D+0rz8zVJ7SS3yDJnZXikb4/rXjtNjiH6omWllwsIaAiLKX4OYtjbNCsM7JiUpkr8Y+AyIvX0zL2bnCGXS6RmnaZM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tt+MgVUA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D8D0C433F1; Thu, 25 Jan 2024 02:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706151077; bh=XAInFk0WFWd1bmvs0vQTX2Dqg3VbW5EExkT+v4E4z9g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tt+MgVUAAyNuQS03IytFSOwZ5RkSi3MCS9nRWO3cEk6RmdmofFv3pYeoilItLyrvS 59QQ2SRHM3ZFUNX7mkJEWAlmGVueFeeOd3NzDnHP0Eapsv8JcFpX0AG9mQ4nlpY2xj ISIX82+Sp6lyKD4B9fFQoaNKxP096R77hgT8NfCYSVS7ePr7KSr+XqBlB7AOA/9/ux dD0KkmV/FysMqLd4FfAFPLe2XwfIxbR/JwWGaDn4XT7lmREQDtJ11Wpp7J6UkfXsQQ C3tOiMZU/S/R05IRjqOH70gMQ/lNrJ6Mc+p8HU4xkvva7mS70R6kMQsHR7PesMUyL/ VrIN105+v9Abw== Date: Wed, 24 Jan 2024 18:51:15 -0800 From: Eric Biggers To: Gabriel Krisman Bertazi Cc: viro@zeniv.linux.org.uk, jaegeuk@kernel.org, tytso@mit.edu, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, amir73il@gmail.com Subject: Re: [PATCH v3 01/10] ovl: Reject mounting case-insensitive filesystems Message-ID: <20240125025115.GA52073@sol.localdomain> References: <20240119184742.31088-1-krisman@suse.de> <20240119184742.31088-2-krisman@suse.de> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240119184742.31088-2-krisman@suse.de> On Fri, Jan 19, 2024 at 03:47:33PM -0300, Gabriel Krisman Bertazi wrote: > ovl: Reject mounting case-insensitive filesystems Overlayfs doesn't mount filesystems. I think you might mean something like reject case-insensitive lowerdirs? > + /* > + * Root dentries of case-insensitive filesystems might not have > + * the dentry operations set, but still be incompatible with > + * overlayfs. Check explicitly to prevent post-mount failures. > + */ > + if (sb_has_encoding(path->mnt->mnt_sb)) > + return invalfc(fc, "case-insensitive filesystem on %s not supported", name); sb_has_encoding() doesn't mean that the filesystem is case-insensitive. It means that the filesystem supports individual case-insensitive directories. With that in mind, is this code still working as intended? If so, can you update the comment and error message accordingly? - Eric