Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1251503ybt; Sun, 14 Jun 2020 16:12:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymRpkJsyjsLhiCrJGfZI/4dBx9lmFyUF2Qpn9En9g+rwu5psYQIE6BR6gpwR/jReW1QUT1 X-Received: by 2002:a17:906:4716:: with SMTP id y22mr10905776ejq.125.1592176334834; Sun, 14 Jun 2020 16:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592176334; cv=none; d=google.com; s=arc-20160816; b=NNbWQ/gvuMYOTASeUoEbKHGAIoK8O8Docv6Gggr8J9BV8ktnDnsELbxz7eD/rsPiW5 BVCH0muUO2NEzHHjJBftVfu/xyGSy6dFmbxJ9x7hbWn6zljQnC2ypR+B5j9u/uM29lKc 4dYJyKXIviI+yQir9SZbxKvPuQy/RQI8D2oEjpJW2xLBczlmzjHcNKQ3yiBpyEd2wDUt Lce0OozFEGjmdVrSBSlnMzvdZxo0UWf23XZa15XYDNdiQfn98ngmlOhu8yDJhYgmMcoP 08CZFr65kl4nS5VTTkRS/dDjoPgiCfc4MnWYTPe0MyMQpHniH0WY8O8pZyiTGgZS4OmM yVJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:from :references:cc:to:subject; bh=yNSpOz+MurxdVDjoSrqdoDln+Bxnk2IhEfr/RBFQX3o=; b=h6I0fbiImDDHjleMfWl4212egMLxFN6UwbJ7rCz36YxskXCf4Ui4s2jwoxjBGXv8b7 tbqqcha5N0/RX8/nH9eS+Fm1L6RJm3scby4oe7P7TOX+SYYO1cPWQ2U934VHR1VZAATK bPDBpV9r/i2eCcgm+lbN+IVPdkdOJ4I1MrnzvK+TA3iEgmILpW1Rfs05fh9djRdxI24q 2uYBBVj205o66Ux03yOlGFqaxi0j3tC/JIFrucRbnMQg9HkADVrnobSJefgkOV3WsD87 4ZT64+YvMBUYZu6YEq2ducp/1dVx2iTiM8vJpRW2GRA4DMgrHqd0JiWed3G9wFHVUfcZ nQ6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 h2si7918753ejp.405.2020.06.14.16.11.39; Sun, 14 Jun 2020 16:12:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727994AbgFNXHT (ORCPT + 99 others); Sun, 14 Jun 2020 19:07:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727928AbgFNXHT (ORCPT ); Sun, 14 Jun 2020 19:07:19 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 354CCC05BD43; Sun, 14 Jun 2020 16:07:19 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id D5FF51B599B; Sun, 14 Jun 2020 23:07:11 +0000 (UTC) Subject: Re: Good idea to rename files in include/uapi/ ? To: Stefano Brivio Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Jakub Kicinski , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-arch@vger.kernel.org References: <9feded75-4b45-2821-287b-af00ec5f910f@al2klimov.de> <20200614223456.13807a00@redhat.com> From: "Alexander A. Klimov" Message-ID: <5033402c-d95c-eecd-db84-75195b159fab@al2klimov.de> Date: Mon, 15 Jun 2020 01:07:10 +0200 MIME-Version: 1.0 In-Reply-To: <20200614223456.13807a00@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++ X-Spam-Level: ** Authentication-Results: smtp.al2klimov.de; auth=pass smtp.auth=aklimov@al2klimov.de smtp.mailfrom=grandmaster@al2klimov.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 14.06.20 um 22:34 schrieb Stefano Brivio: > On Sun, 14 Jun 2020 21:41:17 +0200 > "Alexander A. Klimov" wrote: > >> Hello there! >> >> At the moment one can't checkout a clean working directory w/o any >> changed files on a case-insensitive FS as the following file names have >> lower-case duplicates: > > They are not duplicates: matching extensions are lowercase, target > extensions are uppercase. DSCP is the extension to set DSCP bits, dscp > is the extension to match on those packet bits. > >> ➜ linux git:(96144c58abe7) git ls-files |sort -f |uniq -id >> include/uapi/linux/netfilter/xt_CONNMARK.h >> include/uapi/linux/netfilter/xt_DSCP.h >> include/uapi/linux/netfilter/xt_MARK.h >> include/uapi/linux/netfilter/xt_RATEEST.h >> include/uapi/linux/netfilter/xt_TCPMSS.h >> include/uapi/linux/netfilter_ipv4/ipt_ECN.h >> include/uapi/linux/netfilter_ipv4/ipt_TTL.h >> include/uapi/linux/netfilter_ipv6/ip6t_HL.h >> net/netfilter/xt_DSCP.c >> net/netfilter/xt_HL.c >> net/netfilter/xt_RATEEST.c >> net/netfilter/xt_TCPMSS.c >> tools/memory-model/litmus-tests/Z6.0+pooncelock+poonceLock+pombonce.litmus >> ➜ linux git:(96144c58abe7) >> >> Also even on a case-sensitive one VIm seems to have trouble with editing >> both case-insensitively equal files at the same time. > > ...what trouble exactly? vi -O2 include/uapi/linux/netfilter/xt_CONNMARK.h include/uapi/linux/netfilter/xt_connmark.h ... opens the first file two times. > >> I was going to make a patch renaming the respective duplicates, but I'm >> not sure: >> >> *Is it a good idea to rename files in include/uapi/ ?* > > I'm not sure it's a good idea to even use git on a case-insensitive > filesystem. I'm curious, what is your use case? My MacOS workstation. Now as I discovered the problem I've created a r/w image with a c/s FS, but the need of that for a clean `git checkout .' is IMAO pretty silly. Don't worry, I run Linux, but only on my servers. Also this issue should also apply to M$ Windows workstations. By the way at work I actually use Git on Windows if needed and it also just works. However the software I work on doesn't have this issue. >