From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 650D3C433DB for ; Sat, 26 Dec 2020 23:08:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3289F207B5 for ; Sat, 26 Dec 2020 23:08:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726137AbgLZXIr (ORCPT ); Sat, 26 Dec 2020 18:08:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbgLZXIr (ORCPT ); Sat, 26 Dec 2020 18:08:47 -0500 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD27FC0613C1 for ; Sat, 26 Dec 2020 15:08:06 -0800 (PST) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1ktIfL-004N0p-3H; Sat, 26 Dec 2020 23:08:03 +0000 Date: Sat, 26 Dec 2020 23:08:03 +0000 From: Al Viro To: Theodore Dubois Cc: linux-kernel@vger.kernel.org Subject: Re: linux.git is broken on a case-insensitive filesystem Message-ID: <20201226230803.GC3579531@ZenIV.linux.org.uk> References: <080A3B31-608F-4A36-A5DE-B75670D2452E@icloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <080A3B31-608F-4A36-A5DE-B75670D2452E@icloud.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 26, 2020 at 02:30:13PM -0800, Theodore Dubois wrote: > I'm currently hacking on Linux trying to run a sort of UML-style thing on macOS (please don't question my sanity :), and I've run into various issues stemming from macOS having a case-insensitive filesystem. > > The one you run into immediately is: there are a number of files (mostly in netfilter) that have different uppercase and lowercase versions. net/netfilter/xt_DSCP.c and net/netfilter/xt_dscp.c are quite different. Last I checked, git would pseudo-randomly pick one of these to check out, and then show the other one as having unstaged changes making it look like the first one. This causes problems when switching branches. I've worked around this with a sparse checkout that excludes these files, but it's not great. > > The gitignore also contains the pattern *.s, which excludes *.S as well when git is ignoring case. > > Is there any interest in fixing these? Just how could we fix a long-standing design flaw in macOS?