Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1782199rdb; Tue, 20 Feb 2024 07:00:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWXi4HETcBL1v7RxQj/4jJXc/InmvMCA9cY+3nGmaK5Kds4A4bMNRSKmK0mXvroxXsbj2s9HTcLnL/YbAKXFvFLqBeU2yjfOzpwX/Uwvw== X-Google-Smtp-Source: AGHT+IH6Q/TdcwVCxFyJBzB4NwJCNUWw7vfgwDykJDH64s+E8w5metCm7HVKH+6ukg6Dnb8RvYLJ X-Received: by 2002:a19:7614:0:b0:512:bdec:c615 with SMTP id c20-20020a197614000000b00512bdecc615mr3186532lff.62.1708441200225; Tue, 20 Feb 2024 07:00:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708441200; cv=pass; d=google.com; s=arc-20160816; b=FKDm97sM7pgaRjjZ4waWwq41hE/eZEWSC9cD7rVgm426j4WqbWjvFpbzG9n/dE6ZtH gyegQPdCwDmUx8g0Q3T1CeB7LtMgHtamGPh3/P4xhvPDRN0WbChMtQvb2uT19bTs8EG5 lSeSQn/xxYkM/361mwybOJrlijBnCVsMK/zB5E6nhDSiMNlbFQ7U2glJxPZ+637NPLiF exTVecF5zVJk5uGuX5o4npS7q1E1ztCbNKp/6D2iLKrdWR0eMI/VU/D5v9gN8K58z4+x NAhgRuBdNunyayaghm+J8vLOXpFbPd1Q3zHFhrzITq2+AUtaVFUbL9ya3Ex4DTAk0Sb7 +ZFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:organization:in-reply-to :subject:cc:to:from:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=Mvro3zekXoZ0IqphOQMb6DozUfJPZwilwfAcT3oRVog=; fh=jnsjUAmjZWbeZE/H1AAeh+vTEwvsR9nMcBiAwgkpPss=; b=ezDon6Wu2BCm+LSBl646/2UrBp3AS4xHuX2Fz4U0TYqOzMfcbwSqbdb4yYhNNIxzj5 wG+lUjEjj3ir4JkUZh0hJTnEkdAYRS3ZiyqzZcQsVR6OAu5lRuyBi89ETuw01PB2BZU1 JCkBX3o0VLrsX/JVfidpdk+j+gVfop35kAVD7W/iHR0CFjPYhjStZoSZjr87U0Y7VLc2 N39XkFArQSpCM73jyoMTCAQ9ICTiSg4OWXUaWmcJg9VaJXDL0YdgCoO1UPaQbvGRfkj8 OMRdbw4UTzWbpFrex/roZR/ZKCtEAbXkP8uTib/uETH63+T9RyTcJcIPdYD/Um9h6qtl g0Uw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1MHaQJL8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1MHaQJL8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-ext4+bounces-1300-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m20-20020a50d7d4000000b00563ce99a18dsi3566873edj.350.2024.02.20.07.00.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 07:00:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1300-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1MHaQJL8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1MHaQJL8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-ext4+bounces-1300-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id C4B051F231B6 for ; Tue, 20 Feb 2024 14:59:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBCDD73195; Tue, 20 Feb 2024 14:59:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="1MHaQJL8"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="KvYwjIm3"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="1MHaQJL8"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="KvYwjIm3" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B962B67E91; Tue, 20 Feb 2024 14:59:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708441189; cv=none; b=QDT2xJgRECCIp3P0Cf1eOVDMGwKV98+ZczTw9sush0Ne5/oGy8ngDEwANy42OADlNnhaz2XvjrQxiTLAc4Y7Ag/C9k5s0gaFecVeDvFSnAAdZaNjg/08rl6ja7v88AocgjvERQYklh6KUSz7ZZav6qm9DAN0TBLkXgKy0V6wp8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708441189; c=relaxed/simple; bh=+6dpGBqTRme9HOoPA5CvCblwTs/y4BuSqvP6fWdqjs8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Mpx13h8f2j9sH0PUjpnPY38TQTTDuvilrMK83fEc6epMJMgTNQ22fQJ8c1bmsV5xwWzERTlcgs3KHmZlRDP/9fX4lrngXaDRo+DgvsCxfaaBg5oqNh9SSjLNCA/Q4e/GE++eFgS0u4hnPiBMNLOFAGizGEPG2LZ7SrwxZ146Hl0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=1MHaQJL8; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=KvYwjIm3; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=1MHaQJL8; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=KvYwjIm3; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C43111F898; Tue, 20 Feb 2024 14:59:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708441185; 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=Mvro3zekXoZ0IqphOQMb6DozUfJPZwilwfAcT3oRVog=; b=1MHaQJL8i7D8jEJnULlFdqwVhl0mVJmTxyTAfnOT33B3Ex2QuFyhxl/cqxfxLO5aYih85i 7nflvsvX6whA4y8pu7ig/SCRzXkTON+G+OEOHDN11Za0LtUBpvU0LQ742MdGbVvgtkqrnr 3eOSj79u8cjfnuTj/hh5AQSc4GhghBo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708441185; 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=Mvro3zekXoZ0IqphOQMb6DozUfJPZwilwfAcT3oRVog=; b=KvYwjIm34gjCXKk+/Khnf2ICGcGzqO8Mmy5RtPzBxH3pdVakyzgegMS4uu4Gjt7GLDZfY3 7/2yo2ZijfeAGtBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708441185; 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=Mvro3zekXoZ0IqphOQMb6DozUfJPZwilwfAcT3oRVog=; b=1MHaQJL8i7D8jEJnULlFdqwVhl0mVJmTxyTAfnOT33B3Ex2QuFyhxl/cqxfxLO5aYih85i 7nflvsvX6whA4y8pu7ig/SCRzXkTON+G+OEOHDN11Za0LtUBpvU0LQ742MdGbVvgtkqrnr 3eOSj79u8cjfnuTj/hh5AQSc4GhghBo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708441185; 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=Mvro3zekXoZ0IqphOQMb6DozUfJPZwilwfAcT3oRVog=; b=KvYwjIm34gjCXKk+/Khnf2ICGcGzqO8Mmy5RtPzBxH3pdVakyzgegMS4uu4Gjt7GLDZfY3 7/2yo2ZijfeAGtBg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 7FD76139D0; Tue, 20 Feb 2024 14:59:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id pBv1GGG+1GU4PwAAD6G6ig (envelope-from ); Tue, 20 Feb 2024 14:59:45 +0000 From: Gabriel Krisman Bertazi To: Eugen Hristev Cc: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, jaegeuk@kernel.org, chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, Gabriel Krisman Bertazi Subject: Re: [PATCH v10 3/8] libfs: Introduce case-insensitive string comparison helper In-Reply-To: (Eugen Hristev's message of "Tue, 20 Feb 2024 09:36:40 +0200") Organization: SUSE References: <20240215042654.359210-1-eugen.hristev@collabora.com> <20240215042654.359210-4-eugen.hristev@collabora.com> <87zfw0bd6y.fsf@mailhost.krisman.be> <50d2afaa-fd7e-4772-ac84-24e8994bfba8@collabora.com> <87msrwbj18.fsf@mailhost.krisman.be> Date: Tue, 20 Feb 2024 09:59:44 -0500 Message-ID: <871q97b2qn.fsf@mailhost.krisman.be> 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-out2.suse.de; none X-Spamd-Result: default: False [-0.90 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; BAYES_HAM(-0.80)[84.80%]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_TWELVE(0.00)[14]; DBL_BLOCKED_OPENRESOLVER(0.00)[collabora.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[] X-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -0.90 Eugen Hristev writes: > Okay, I am changing it. > > By the way, is this supposed to work like this on case-insensitive directories ? > > user@debian-rockchip-rock5b-rk3588:~$ ls -la /media/CI_dir/*cuc > ls: cannot access '/media/CI_dir/*cuc': No such file or directory > user@debian-rockchip-rock5b-rk3588:~$ ls -la /media/CI_dir/*CUC > -rw-r--r-- 1 root root 0 Feb 12 17:47 /media/CI_dir/CUC > user@debian-rockchip-rock5b-rk3588:~$ ls -la /media/CI_dir/cuc > -rw-r--r-- 1 root root 0 Feb 12 17:47 /media/CI_dir/cuc > user@debian-rockchip-rock5b-rk3588:~$ > > > basically wildcards don't work. Yes, at least from a kernel point of view. Your shell does wildcards in userspace, probably by doing getdents and then comparing with possible matches. Since the shell itself is not case-insensitive aware, its comparison is case-sensitive, and you get these apparent weird semantics. Not ideal from a user point of view. But not a kernel bug. If it pushes people away from using case-insensitive directories in their day-to-day work and leave it to only be used by Windows compatibility layers, maybe that's a win? :) -- Gabriel Krisman Bertazi