🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.hackers
Article #59

Re: FreeBSD /bin/getconf test whether filesystem is case-insensitive or case-sensitive?

#59
From: Jasmin Dave
Date: Mon, 26 Oct 2026 11:55
83 lines
8546 bytes
On Mon, 7 Sept 2026 at 06:22, Mark Millard <marklmi@yahoo.com> wrote:
>
> On 9/6/26 20:10, Rick Macklem wrote:
> > On Sun, Sep 6, 2026 at 7:35 PM Mark Millard <marklmi@yahoo.com> wrote:
> >>
> >> On 9/6/26 17:03, Jasmin Dave wrote:
> >>> On Mon, 7 Sept 2026 at 01:50, Mark Millard <marklmi@yahoo.com> wrote:
> >>>>
> >>>> On 9/6/26 15:00, Jasmin Dave wrote:
> >>>>> Hello,
> >>>>>
> >>>>> I recall that filesystem properties can be queried with POSIX
> >>>>> /bin/getconf if you provide the "key" to the query and a path.
> >>>>>
> >>>>> Does FreeBSD /bin/getconf have a test whether the filesystem for a
> >>>>> provided path is case-insensitive or case-sensitive?
> >>>>
> >>>> Paths that cross mount points might be a mix of case-sensitive and
> >>>> case-insensitive?
> >>>>
> >>>> Given the prior reference to _PC_CASE_INSENSITIVE in a reply, my guess
> >>>> would be that:
> >>>>
> >>>>      _PC_CASE_INSENSITIVE
> >>>>              Return 1 if the file system performs case insensitive lookups,
> >>>>              otherwise 0.
> >>>
> >>> QNX defines this:
> >>> _PC_CASE_PRESERVING
> >>> _PC_CASE_SENSITIVE
> >>>
> >>> So I should implement:
> >>> _PC_CASE_PRESERVING
> > I don't think you can find a file system used these days that is not case
> > preserving? Yes, long ago, there was FAT12 on floppies that used an 8+3
> > filename that only supported upper case ASCII, but floppies are no more.
>
> Backwards compatibility can be hard to completely eradicate and may include:
>
> ISO 9660 Level 1
> (Legacy Compliance: factory-stamped AV equipment, some medical imaging
> CDs, automotive firmware update disks --so that readers limited to
> non-preserving 8.3 will still work)
>
> IBM z/OS Data Sets use via Data Set File System for use via UNIX tools
>
> IBM i (OS/400) QSYS.LIB Integrated File System area /QSYS.LIB
>
> DOSBox Virtual Filesystem Layer
> (retro games, legacy industrial software)
>
> (Still: Worth the trouble? I do not know.)
>
> >
> >>> _PC_CASE_SENSITIVE
> >>
> >> _PC_CASE_SENESITIVE would seem to be testing for 0 being returned for
> >> _PC_CASE_INSENSITIVE --since it is just lookup case-handling behavior at
> >> issue and I'm not aware of a 3rd alternative as stands.
> > _PC_CASE_SENSITIVE would just be the inverse of _PC_CASE_INSENSITIVE,
> > so why implement both?
>
> Yep.

So software will compile without having to fiddle without?

What should I do now to get /bin/getconf working?

Thanks, Jasmin
-- 
Jasmin Dave - Math (Quaternions!), Coding, Simulations


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <CAHvsQGOU0f4vMLD_G0ufcp5S8f+WqbQr+-=OTigWoMFvt0__8w@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <4e2ccebb-9d2d-41e3-8d00-53d10362b8b3@yahoo.com> <>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Jasmin Dave <jasmin.dave.math@gmail.com>
Newsgroups: muc.lists.freebsd.hackers
Subject: Re: FreeBSD /bin/getconf test whether filesystem is case-insensitive
 or case-sensitive?
Date: Mon, 26 Oct 2026 12:55:00 +0100
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-hackers@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <CAHvsQGOU0f4vMLD_G0ufcp5S8f+WqbQr+-=OTigWoMFvt0__8w@mail.gmail.com>
References: <4e2ccebb-9d2d-41e3-8d00-53d10362b8b3@yahoo.com> <>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="63385"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1793015804; h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-owner:list-unsubscribe:list-subscribe:list-post;
	bh=40sENTZzKhTvovaRm1KAUMIieEm/NrJQQAwfdT4HWso=;
	b=xnmezUyfgl1V9Nu2NTIrWMfTP/Y/PHFQ+FLd2kVD437G5Ij9N74aSrAjjoZpTWGH0G7ZfI
	Q9y1VzK2r6pXr5puvCLQeycEaYBM9xajKeS50j+CUy93y7udcuuprf9waNSA54IBsviwNJ
	2McQV/Otc3wQR9mwsrcQsYK2pvJxyCRN2gyf1e+qwykCr8QbBw/Xwpm4yuW7pOmUtYh428
	dNd/fYYyPZTJHLVNemrUbnKBoQNU9k33CP1oUaw8Yk1+CsgOJh6A/VtI267f3LvUg1Bpt/
	vYLuHjyVgEcHmc7z+K5mmd5uq6tP1DhsRkR5OM2ne/KfTTOFZGtZK35bfFx/1w==
X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=gmail.com header.s=20251104 header.b=Xmzg8i9u;
	arc=pass ("google.com:s=arc-20260327:i=1");
	spf=pass (mx1.freebsd.org: domain of jasmin.dave.math@gmail.com designates 2607:f8b0:4864:20::c33 as permitted sender) smtp.mailfrom=jasmin.dave.math@gmail.com;
	dmarc=pass (policy=none) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1793015799; x=1793620599; darn=freebsd.org;
        h=content-transfer-encoding:content-type:to:subject:message-id:date
         :from:in-reply-to:references:mime-version:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=40sENTZzKhTvovaRm1KAUMIieEm/NrJQQAwfdT4HWso=;
        b=Xmzg8i9upM0+fpZH6rlAISU64L79uFEv80UWEvnlQekw48mVTIEqotKo5ad3tuDA8L
         N5jB4xTPrxyLDjsF7L5Teaul40b0Bs9Tpn8pCtYr8GQRyAy8LeywHURzMZEtzSRXeLid
         4B2AA6NM9zDIuoMCf93NTHMtVi86uEmCUuMQjUUuFkJZ+sA7Jwoz6brNsu3G8T0Rob0d
         tFS4fPMKYk+DyikJgf51LLYOEb9H1RjSaOQSOesNGWU8DBa7C71k8dDRG+WRc9dxGXAY
         yzUykN+lXRPdpuEdD2w3ci+HyoAX8tZhqGqCH+YbDKwBDG1DZ/UdtqtF+2qTtfs+nNyI
         J9pA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793015799; x=1793620599;
        h=content-transfer-encoding:content-type:to:subject:message-id:date
         :from:in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state
         :from:to:cc:subject:date:message-id:reply-to:content-type;
        bh=40sENTZzKhTvovaRm1KAUMIieEm/NrJQQAwfdT4HWso=;
        b=J2q9Hs5w0yBu6HmhFs4YhrGI/T5DVGWJdq6gMay69+P2qhsLSHhaEIWTow7WMUg0oL
         rxmpvH9PqnWgYAZ0LVdbvDQOCGXZj08V+wq4TtLHih+RX0TocfBBtU2c66wVo7h/BF/Q
         //D90VJbPe5XNUwqcnqYQfs86n0wPp/a6DnxDgObpHHlpblSDyO10xdNI3C5/c+r6ISG
         aOskfmtB+YFENQGgEO6pqTm6FE1+ITg78hKnP/79SqK0QywBkqqLrMBDIOJI2xSWDXuE
         KGlKGbC2N1TuKWtCEAmLpdrRYWBiajCfNIBPZYA0hNWWNVvw11eHLDbq6xJz+teZ1bkZ
         E2sA==
X-Gm-Message-State: AFq9FYKDEKRSRqJ7DLVmkkJj8jOVqgAvBAGJmwCokh1F2hcFm6pkWiLN
	xxNrovqXZ1Fq5kH04gIbeimP7KQBUeOdtUEkOcsp9ln+I6n3s8NIjSqVVRQyInQCopeSNN4I6DA
	/QdPdoW9eyAqHeygIkcTSOa6qfqcFxPX9iQ==
X-Gm-Gg: AYBFou1DqGUQq2Inze9SgZ+vatUMh//3RDoy0QWR5+rKenRhKq4GDBBm6Bu4QF1fejA
	W/J54KfPyfGJv5vFo/23zU4kJwmoxapoY3eGYI9m9b35TeXKx0igSwOuc9lKXUmQdr1xXDIXjXv
	rQVTP2kT2z6LRSakBXTPw+M5bZbE+ED3ntDzfd/+ycJVjbrQRwylzhc08kYPqZneQM+cgLYk3GN
	EkW2ZGLCZnum6eBxP3PHf37NyA0zS70F0p0VhyieJerAcuI2cGhJYpcGyOdEEKiVbPbu3BrseZe
	RI88QtrsI6Q83ATSW7ig4GddQnqCNX7RSm5oh23IsqXMuOv1ZPacjrTKjk0+zbOZyOFxSZ2P15q
	vBfMJNmA13CctED8iwWNfnPgvils3oxLCMSF5vQ==
Precedence: list
In-Reply-To: <4e2ccebb-9d2d-41e3-8d00-53d10362b8b3@yahoo.com>
X-Gm-Features: AclHuK9VKhuWETlgLHT6iiZgBQO93bBxPubFjLgVkEmQ7ym7PIgCTqvWACpcGTI
X-Spamd-Bar: /
X-Spamd-Result: default: False [-1.00 / 15.00];
	SUBJECT_ENDS_QUESTION(1.00)[];
	ARC_ALLOW(-1.00)[google.com:s=arc-20260327:i=1];
	DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
	R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4864::/56];
	R_DKIM_ALLOW(-0.20)[gmail.com:s=20251104];
	MIME_GOOD(-0.10)[text/plain];
	PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org];
	RCVD_COUNT_ONE(0.00)[1];
	ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US];
	FROM_HAS_DN(0.00)[];
	MIME_TRACE(0.00)[0:+];
	FREEMAIL_FROM(0.00)[gmail.com];
	MISSING_XM_UA(0.00)[];
	DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
	TO_DN_NONE(0.00)[];
	FREEMAIL_ENVFROM(0.00)[gmail.com];
	MID_RHS_MATCH_FROMTLD(0.00)[];
	RCPT_COUNT_ONE(0.00)[1];
	RCVD_TLS_LAST(0.00)[];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org];
	ALIAS_RESOLVED(0.00)[];
	RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::c33:from];
	DKIM_TRACE(0.00)[gmail.com:+]
X-Rspamd-Queue-Id: 4jCsY52HsGz4L7b
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes