Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8070951pxu; Sat, 26 Dec 2020 15:10:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6YlnNlu4pLFx5COyq9ZTlo9uCOzZ5F2A7D7rWnlZv2SCNm5albt0rIKYUofTS0qUhB/HD X-Received: by 2002:a17:906:7118:: with SMTP id x24mr36570118ejj.333.1609024202290; Sat, 26 Dec 2020 15:10:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609024202; cv=none; d=google.com; s=arc-20160816; b=mcOUTfrI3V5mKp2VJFRekqnM4EX4pFv/ZQO0Gn7pUov9tQYtDMd3Lm779QmAp13UHT g+BhwhB5QHh7kbHnNI8bKfDw5DEAf8wDV1bcs6qLr12C1l72BdwWT9BFEIuA8+J6ZlUW CZnnhhvt/G4UXAF/dhMIVMdWe5UyLC7ttVO9hLWfkQlUL4S31OTkDLiCg8Nzr91zt5Uv W8XU9iqX2ZRQRYPcul+7UnygBOlE8TaU0sutK4V4zTsdF+7QQPriXClaLqloFAdNAYvH PzWp/9YnB4d5mzX0utAwh2RDvyN3tbIAwn0EnVWqKoJR+JMvgO+1apiXAiLO/x0UksD5 AwZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WnakfMl4hdk7jcqaEDaxktzOjeRn2AAxVzDmZyAPIu0=; b=uPMQ9v+kjOzAfiyxqlQNsCyqA+9m0AN0VM8rtUslnEbKWXkCA2MwIbaBKUITK02gvM f1oM/EGCxY7dMKF+32Ci00/gwDzpvpV5E4/sRTAgShemstgWTmYTevexe9tY/B0sF5pP TorKtUTZq1AI6cZpYgfcbVAeeP5njKxjTT/b6nQqpWrziEORfAg61VJviTuEi1Q1R+iR ix3HXdb/16Ao+INJ2K/YKXgT4wrEhREi12+EeXAtsIQXKc/K8XNVYGNORgWAk4ghyql3 ScrjKASiPLGGHtCecJ4OSPPVPhfh22kSvi82QKWiydhZ5ZCoPVQooozzvEjSbTA7tKCK Oe4A== 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 hr19si16411935ejc.744.2020.12.26.15.09.40; Sat, 26 Dec 2020 15:10:02 -0800 (PST) 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 S1726101AbgLZXIr (ORCPT + 99 others); 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?