Thread View: muc.lists.freebsd.hackers
1 messages
1 total messages
Started by Jasmin Dave
Mon, 26 Oct 2026 11:55
Re: FreeBSD /bin/getconf test whether filesystem is case-insensitive or case-sensitive?
Author: Jasmin Dave
Date: Mon, 26 Oct 2026 11:55
Date: Mon, 26 Oct 2026 11:55
83 lines
8546 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads