Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp833971rdf; Tue, 21 Nov 2023 19:31:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEdY8D9TpMVkkja+wEgmz9+42K790dzuhrJWZZ5OXeHnLkqjdHP6D9OdFLT/Y1aFNge17T X-Received: by 2002:a05:6359:5c1c:b0:16d:bc0b:836 with SMTP id pu28-20020a0563595c1c00b0016dbc0b0836mr888900rwb.19.1700623879058; Tue, 21 Nov 2023 19:31:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700623879; cv=none; d=google.com; s=arc-20160816; b=VJzUGve0HZYJhBcDEPoaIgI+gLIWzat2ndaHxKGrQsCOBeSw5Kk1/THrqo4DQKISoW py6nRiaptVTdaf0bVjICudZKNxTm/yHyY4doJXBppzL+Fo5l3tcdp/c3rqqRCA5XibDE Eea+ONkp1IJ7CAIJqomkY/3PxHssTWExmXJu+83515FvVZzT2nLWOCt1fNwzN4qjzErA zSPeZYvtMRNVqf7cjecOMoAt8UuvnTfS+AA3rzzN8SNDX24qU1j9+5Iz/Q0S6y5rW/2C RVFVbqBik9QfW8m3An4uWONlkjz5USja0DWQz7DaxJEjZMl0GqOvKpHRqeSrA5Sdeeu/ L7Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature:dkim-signature:message-id; bh=BhZP3qEN5hsXOI+Bp57hPO+d5fX5NnExSd4UjG1PjK0=; fh=uLaPAQ+dD8LKGn3c6FLhXs83Qf6p4lkEFgPBr8KLgvs=; b=cObLyGzAXa9nc4T007hiNPiUST3PyHwG0m67ZWvShYMUrsltJK5YPE5/WpD8YflBVz fVzHlWjRvbErbdcu7cE4SIhCoPhkfselc0YFtDJ6x0jq4R54V9ZbpwWcvE1Y10/lCLLw BVJWowz5rxdtZNCSF1kfJ7ADPZcBNcUcuKTXau+A4sVTuYrQZXG/GvB2z2UK1rE6/3ik Z+Y0n660wmA55mGIZQDG3W0bpiswArszR3y58l8ZLssqU8dWozRA1aDuOYZzYMHXmc6P m+uwTHURYTqw8H4gH29nnsNKsF50WnorlB/pl/j0BPxs3iIBZxZwYwSu6QtUOaznpQQJ /dqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tE5iZcyv; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=vQmPx+3O; spf=pass (google.com: domain of linux-ext4+bounces-75-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-75-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y10-20020a634b0a000000b005be3c09abf1si11242798pga.397.2023.11.21.19.31.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 19:31:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-75-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tE5iZcyv; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=vQmPx+3O; spf=pass (google.com: domain of linux-ext4+bounces-75-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-75-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Message-ID: <655d7607.630a0220.cc5b.c063SMTPIN_ADDED_BROKEN@mx.google.com> X-Google-Original-Message-ID: <87zfz6jwgn.fsf@> 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 14350282382 for ; Wed, 22 Nov 2023 03:31:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB41A8BF6; Wed, 22 Nov 2023 03:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="tE5iZcyv"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="vQmPx+3O" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02531170E; Tue, 21 Nov 2023 19:30:52 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 3E38921902; Wed, 22 Nov 2023 03:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1700623850; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BhZP3qEN5hsXOI+Bp57hPO+d5fX5NnExSd4UjG1PjK0=; b=tE5iZcyvpDJXrk4EMR1l7tshsDoLgLOp1XYwmeG5BE5CHJqY5yWUfEyBLV9oGP+aHAf2Zx U7KWtg5ssahJzKrdzmYArZYW8W4B/DemWzXIEG9b/Jlvl0JHJW7MSgfCW8QzFzbFEadyPM vxcoXvlbYMz8PVtu3+5EjvbFRwpqYe4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1700623850; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BhZP3qEN5hsXOI+Bp57hPO+d5fX5NnExSd4UjG1PjK0=; b=vQmPx+3OBCzUQ+5Vejd5XURbHHQ8aXbFJ+2/4uLefxMe5Gjc/p3FikKIZ00Bj+szqEynRk +H55dv1rJeDxwyBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F185C13461; Wed, 22 Nov 2023 03:30:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sgt+Nel1XWXyWwAAMHmgww (envelope-from ); Wed, 22 Nov 2023 03:30:49 +0000 From: Gabriel Krisman Bertazi To: Linus Torvalds Cc: Christian Brauner , viro@zeniv.linux.org.uk, tytso@mit.edu, linux-f2fs-devel@lists.sourceforge.net, ebiggers@kernel.org, linux-fsdevel@vger.kernel.org, jaegeuk@kernel.org, linux-ext4@vger.kernel.org Subject: Re: [f2fs-dev] [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs In-Reply-To: (Linus Torvalds's message of "Mon, 20 Nov 2023 10:07:51 -0800") Organization: SUSE References: <20230816050803.15660-1-krisman@suse.de> <20231025-selektiert-leibarzt-5d0070d85d93@brauner> <655a9634.630a0220.d50d7.5063SMTPIN_ADDED_BROKEN@mx.google.com> <20231120-nihilismus-verehren-f2b932b799e0@brauner> Date: Tue, 21 Nov 2023 22:30:48 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: 0.99 X-Spamd-Result: default: False [0.99 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_SHORT(2.89)[0.964]; HAS_ORG_HEADER(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_SEVEN(0.00)[9]; INVALID_MSGID(1.70)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] Linus Torvalds writes: > I dislike case folding with a passion - it's about the worst design > decision a filesystem can ever do - but the other side of that is that > if you have to have case folding, the last thing you want to do is to > have each filesystem deal with that sh*t-for-brains decision itself. Thanks for pitching in. We all agree it is a horrible feature that we support for very specific use cases. I'm the one who added the code, yes, but I was never under the illusion it's a good feature. It solely exists to let Linux handle the bad decisions made elsewhere. > So moving more support for case folding into the VFS so that the > horrid thing at least gets better support is something I'm perfectly > fine with despite my dislike of it. Yes. The entire implementation was meant to stay as far away as possible from the fast lookup path (didn't want to displease Viro). The negative dentry is the only exception that required more changes to vfs to address the issue he found of dangling negative dentries when turning a directory case-insensitive. But, fyi, there is work in progress to add support to more filesystems. This is why I really want to get all of this done first. There is a use case to enable it in shmem because of containerized environments running wine; I was recently cc'ed on a bcachefs implementation; and there are people working on adding it to btrfs (to support wine in specific products). > Of course, "do it in shared generic code" doesn't tend to really fix > the braindamage, but at least it's now shared braindamage and not > spread out all over. I'm looking at things like > generic_ci_d_compare(), and it hurts to see the mindless "let's do > lookups and compares one utf8 character at a time". What a disgrace. > Somebody either *really* didn't care, or was a Unicode person who > didn't understand the point of UTF-8. Yes. I saw the rest of the thread and you are obviously correct here. It needs to be fixed. I will follow up with patches. > The patches look fine to me. Al - do you even care about them? I saw that Al Viro answered. Thank you, Al. So I'll wait for either his review or the merge window. Thanks, -- Gabriel Krisman Bertazi