Re: Case Insensitive File Systems -- Torvalds Hates Them

Liste des GroupesRevenir à col advocacy 
Sujet : Re: Case Insensitive File Systems -- Torvalds Hates Them
De : sc (at) *nospam* fiat-linux.fr (Stéphane CARPENTIER)
Groupes : comp.os.linux.misc comp.os.linux.advocacy
Date : 10. May 2025, 12:20:03
Autres entêtes
Organisation : Mulots' Killer
Message-ID : <681f3663$0$5184$426a74cc@news.free.fr>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : slrn/pre1.0.4-9 (Linux)
Le 10-05-2025, Richard Kettlewell <invalid@invalid.invalid> a écrit :
The Natural Philosopher <tnp@invalid.invalid> writes:
>
On 10/05/2025 09:38, Richard Kettlewell wrote:
The Natural Philosopher <tnp@invalid.invalid> writes:
On 03/05/2025 13:09, Chris Ahlstrom wrote:
Lawrence D'Oliveiro wrote this post while blinking in Morse code:
      ldo@theon:caseinsens-try> touch try.dat
      ldo@theon:caseinsens-try> ls -l
      total 0
      -rw-r--r-- 1 ldo users 0 May  3 11:57 try.dat
      ldo@theon:caseinsens-try> mv try.dat TRY.DAT
      mv: 'try.dat' and 'TRY.DAT' are the same file
>
I guess Linux isn’t any better ...
It works on my Linux box (Debian Sid).
Heh heh:
>
And mine (Mint 22)
I would guess that you’re doing the test on a case-dependent
filesystem?  With vfat and 9p (to NTFS, in WSL) the behavior is as
Lawrence describes.
 
Lawrence said it was a feature of Linux, not of the file system in use
>
The context was case-insensitive filesystems,

Yep.

but the logic being
applied is indeed independent of filesystem; it just leads to different
results in different types of filesystem.

Not exactly. In extfs4 you can choose if you want to have case
sensitivity or not.

(Strictly, it’s a feature of GNU coreutils,

For some file systems, not for others.

but apart from that I think his point stands.)

I disagree with that because he changes the point.

First, the Linux rename() syscall has no trouble with renames to the
‘same’ name (with or without a case change and in both case-insensitive
and case-sensitive filesystems). So in that sense Linux copes with the
situation just fine.

OK, so he's wrong.

In fact so does Windows, both via explorer and ren; I don’t know what
behavior the poster before Lawrence was experiencing but there doesn’t
seem to be a problem today.

I am the poster before Lawrence, so I know what my point was.

When I have a file in lowercase in Windows and I want to put an
uppercase, I can't. It's a long time I checked it, maybe things have
changed since then. With Linux, I have no issue.

Then, Lawrence changed the behavior of Linux file system to switch to
insensitive case and says: Linux is no better. But the fact that, by
default, Linux have only insensitive case when Windows has only
sensitive case tells a lot.

However, we’re not using (just) rename() here. coreutils’s mv does quite
a lot of work for a superficially simple rename but the relevant part
here is that it explicitly checks whether source and destination are the
same file and refuses to rename in that situation. The situation also
arises if you use hard links:
>
    $ touch a
    $ ln a b
    $ mv a b
    mv: 'a' and 'b' are the same file

It's something else.

So that’s the sense in which it’s a feature of Linux (strictly: of
coreutils). The behavior in case-insensitive filesystems follows, since
in a case-insensitive filesystem, try.dat and TRY.DAT are two names for
the same file.

Yep.

IMO that’s a bug in mv: you should be able to change letter case in
case-insensitive filesystems using just mv.

Almost agreed. I'd say that it's an unimplemented feature. As by default
Linux file systems where all case insensitive, there was no need for
that. If use mv to change the name of a file with the same name, it will
change some metadata on the file system. There is already touch for
that. I'm not saying it shouldn't be done, I'm saying there are side
effects to consider. So, using mv to change the case of a filename would
be normal, but would need to be done correctly. That's why, for me it's
not a bug but an unimplemented feature.

--
Si vous avez du temps à perdre :
https://scarpet42.gitlab.io

Date Sujet#  Auteur
27 Apr 25 * Case Insensitive File Systems -- Torvalds Hates Them36Farley Flud
28 Apr 25 +* Re: Case Insensitive File Systems -- Torvalds Hates Them9John Ames
28 Apr 25 i+- Re: Case Insensitive File Systems -- Torvalds Hates Them1Farley Flud
28 Apr 25 i+* Re: Case Insensitive File Systems -- Torvalds Hates Them4rbowman
29 Apr 25 ii`* Re: Case Insensitive File Systems -- Torvalds Hates Them3rbowman
30 Apr 25 ii `* Re: Case Insensitive File Systems -- Torvalds Hates Them2Borax Man
30 Apr 25 ii  `- Re: Case Insensitive File Systems -- Torvalds Hates Them1rbowman
28 Apr 25 i`* Re: Case Insensitive File Systems -- Torvalds Hates Them3RonB
29 Apr 25 i +- Re: Case Insensitive File Systems -- Torvalds Hates Them1rbowman
29 Apr 25 i `- Re: Case Insensitive File Systems -- Torvalds Hates Them1rbowman
28 Apr 25 +* Re: Case Insensitive File Systems -- Torvalds Hates Them24John Ames
28 Apr 25 i+* Re: Case Insensitive File Systems -- Torvalds Hates Them5John Ames
28 Apr 25 ii`* Re: Case Insensitive File Systems -- Torvalds Hates Them4Farley Flud
29 Apr 25 ii +* Re: Case Insensitive File Systems -- Torvalds Hates Them2Ant
29 Apr 25 ii i`- Re: Case Insensitive File Systems -- Torvalds Hates Them1rbowman
5 May 25 ii `- Re: Case Insensitive File Systems -- Torvalds Hates Them1John Ames
29 Apr 25 i+* Re: Case Insensitive File Systems -- Torvalds Hates Them2Lawrence D'Oliveiro
29 Apr 25 ii`- Re: Case Insensitive File Systems -- Torvalds Hates Them1candycanearter07
29 Apr 25 i+- Re: Case Insensitive File Systems -- Torvalds Hates Them1Andreas Eder
29 Apr 25 i+- Re: Case Insensitive File Systems -- Torvalds Hates Them1Borax Man
29 Apr 25 i`* Re: Case Insensitive File Systems -- Torvalds Hates Them14Andreas Dehmel
29 Apr 25 i `* Re: Case Insensitive File Systems -- Torvalds Hates Them13Farley Flud
30 Apr 25 i  `* Re: Case Insensitive File Systems -- Torvalds Hates Them12Andreas Dehmel
2 May 25 i   `* Re: Case Insensitive File Systems -- Torvalds Hates Them11Stéphane CARPENTIER
3 May 25 i    `* Re: Case Insensitive File Systems -- Torvalds Hates Them10Lawrence D'Oliveiro
3 May 25 i     `* Re: Case Insensitive File Systems -- Torvalds Hates Them9Chris Ahlstrom
3 May 25 i      +* Re: Case Insensitive File Systems -- Torvalds Hates Them7The Natural Philosopher
3 May 25 i      i+- Re: Case Insensitive File Systems -- Torvalds Hates Them1Lawrence D'Oliveiro
9 May 25 i      i+- Re: Case Insensitive File Systems -- Torvalds Hates Them1Stéphane CARPENTIER
10 May 25 i      i`* Re: Case Insensitive File Systems -- Torvalds Hates Them4Richard Kettlewell
10 May 25 i      i `* Re: Case Insensitive File Systems -- Torvalds Hates Them3The Natural Philosopher
10 May 25 i      i  `* Re: Case Insensitive File Systems -- Torvalds Hates Them2Richard Kettlewell
10 May 25 i      i   `- Re: Case Insensitive File Systems -- Torvalds Hates Them1Stéphane CARPENTIER
3 May 25 i      `- Re: Case Insensitive File Systems -- Torvalds Hates Them1Andreas Eder
29 Apr 25 `* Re: Case Insensitive File Systems -- Gates Loves Them (was: Case Insensitive File Systems -- Torvalds Hates Them)2Tyrone
30 Apr 25  `- Re: Case Insensitive File Systems -- Gates Loves Them (was: Case Insensitive File Systems -- Torvalds Hates Them)1Farley Flud

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal