Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp997002pxb; Fri, 22 Apr 2022 16:18:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdWf2aBJ6L6tmPrf0/RSh55oL6uOjNRZWzGMZo6E0JmAEC3sUyS1hMlK8dnceOAgO5TE9q X-Received: by 2002:a17:902:74c2:b0:158:2198:38ea with SMTP id f2-20020a17090274c200b00158219838eamr6900075plt.77.1650669496093; Fri, 22 Apr 2022 16:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650669496; cv=none; d=google.com; s=arc-20160816; b=h/x5w8hiBtlV+WVarHudFPl8ORW/FY8CruNJeeKCEUxsfGjjT+BTBjC1Fydapg//J6 /s1oAT/HlnnEo0nnvar4Pj+qRRKdecbmI3OwEP85ujRKQBKfU9eEvoutpAQaA+bAQLcm HE2G+RvePpEh10fVcyu6nwJ51Yvj9kUXotn/K4jtLz5h4gb/0g8t7zUzb5WtKtnGwCk4 UlxifCkc67lqhEX+g8b0jQEwjFbyIQZm6GCCzWkX4cRjE9A7vXzthVM512njtjRyCw8b owDFWMznEfvYx/rvjAvtR2svqsEGykM22rjHlIEOxjjU2WgGzmzSzdJL7xqvWpcvxbTt 6fRw== 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:dkim-signature :dkim-signature; bh=PKAMLv9q1RRV13PDmQSDI3TEsC6eLazeIeSFa1X2lXo=; b=a/9SCOd+hB9WSioXp9AoL9k6kHDP6xbG6k46dsGnz4mybuCP00Xkhf+rmRA1vs02Jy iZvGE5jCIaBG8ADtELUhXtfGec0XvUsJkz2m5Of1vQgfuz35f36f/oLUHrrVCfuI1AF+ jFNb7lwmsyO59YP78OeJyi8WRmf0BMgZSwmcYNoDFel0M1NOssbNy9TpzxLuVGUrZaGy VuYa1BuAPcabRZC6T3ra9oZGT9ejLq1Lgd36E1lZkrC4u4MAtDUBvPpHUjBsreYXZO0j mLREcc1Wd/syHsdypSoH4+zUaQhzf5tWWiU29ufoco6elw8e4mhBgWjfTaGKCmMuQ+Uz vsZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=b9G31bDy; dkim=pass header.i=@codewreck.org header.s=2 header.b=EmIljHzZ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id ei16-20020a17090ae55000b001cbc357005asi11241207pjb.174.2022.04.22.16.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 16:18:16 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=b9G31bDy; dkim=pass header.i=@codewreck.org header.s=2 header.b=EmIljHzZ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 61EE32FE70C; Fri, 22 Apr 2022 15:26:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233004AbiDVW3U (ORCPT + 99 others); Fri, 22 Apr 2022 18:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233404AbiDVW1o (ORCPT ); Fri, 22 Apr 2022 18:27:44 -0400 Received: from nautica.notk.org (nautica.notk.org [91.121.71.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2849E1D83AD; Fri, 22 Apr 2022 14:21:16 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id 07143C009; Fri, 22 Apr 2022 21:58:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1650657484; bh=PKAMLv9q1RRV13PDmQSDI3TEsC6eLazeIeSFa1X2lXo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b9G31bDypti/BkGkKthJZve+QwS+wxhwiqyLEyXvPNjgLbLmMy65cO+zO1ju66vXL OeNkTK3cMcAYQQO/V6bJtQR4VXVZZ5Zg6nAMhKOioiqx4LFeWgSBWLl3KzMfN8oElM hdmfG6a2hJ+cheqXTshPdiN3WB3rBgFTpr/G378b+2TNr44Z6TOpGQm3tTTq9GxzOX AvLAzmYpsvpsQ1a3qYe/j2FP6kg79MErly94WBmLLRlseNtl9ES2eihxuCU7V2KY8E +QVecC83MGTUTRIfUtQdPEX0Iz9TBtcdHfrXSnWlPUobSpwnjBwBImliKmtZ1klt05 zVmP8ztbacsEA== X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 Received: from odin.codewreck.org (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id 7145EC009; Fri, 22 Apr 2022 21:57:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1650657482; bh=PKAMLv9q1RRV13PDmQSDI3TEsC6eLazeIeSFa1X2lXo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EmIljHzZB/Fy6wLeXbjGGhQUEOxVKB35xGzgxlhIvqov4COAORqh9XKZKPJ53iI0f Ob8eH9MitR9Od1DSg0L220wxB92rXrMY2qKIJjP67iiQx6AH3bF0k5UHG5aETK/+Vr ALR7rd+Ryv7g19MHdlkUNpT7F4OcR9X50dvjcijYKVP+QW9lM4yzQDBRjKa0b8VWub 3e17yI7JXlkaHKBi6mHrcNQb5F1tAMVC/uAxYh9UqGSqWmZwb6KBr4BNyxlKJvj1su qsVEt7hagteN/I7ogsa5sKNZhQNefwOweX5+VTaD22xGCVI9nYTWco6xMWEGouXr+H A7H0/pqqN6WCg== Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id d51252ee; Fri, 22 Apr 2022 19:57:55 +0000 (UTC) Date: Sat, 23 Apr 2022 04:57:40 +0900 From: Dominique Martinet To: Christian Schoenebeck Cc: qemu-devel@nongnu.org, Will Cohen , Greg Kurz , Michael Roitzsch , Keno Fischer , Eric Van Hensbergen , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, v9fs-developer@lists.sourceforge.net, Latchesar Ionkov Subject: Re: [RFC PATCH] 9p: case-insensitive host filesystems Message-ID: References: <1757498.AyhHxzoH2B@silver> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1757498.AyhHxzoH2B@silver> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christian Schoenebeck wrote on Fri, Apr 22, 2022 at 08:02:46PM +0200: > So maybe it's better to handle case-insensitivity entirely on client side? > I've read that some generic "case fold" code has landed in the Linux kernel > recently that might do the trick? I haven't tried, but settings S_CASEFOLD on every inodes i_flags might do what you want client-side. That's easy enough to test and could be a mount option Even with that it's possible to do a direct open without readdir first if one knows the path and I that would only be case-insensitive if the backing server is case insensitive though, so just setting the option and expecting it to work all the time might be a little bit optimistic... I believe guess that should be an optimization at best. Ideally the server should tell the client they are casefolded somehow, but 9p doesn't have any capability/mount time negotiation besides msize so that's difficult with the current protocol. -- Dominique | Asmadeus