9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: dexen deVries <dexen.devries@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] FAT32 question
Date: Wed, 27 Mar 2013 13:39:10 +0100	[thread overview]
Message-ID: <23134507.xFGMZYEeyB@coil> (raw)
In-Reply-To: <CAE9W7-gYJmOavr2RGGam=QVA8U6d3xELRNvLG_jqMtSG70nRQQ@mail.gmail.com>

On Wednesday 27 of March 2013 08:24:57 Comeau At9Fans wrote:
> I'm mounting a FAT32 flashdrive on a RPi.  However, it seems that some
> sort of legacy 8.3 filename situation is existing.  For instance, if I
> have a directory containing x.c and a23456789.c that the former is
> taken as X.C and the latter is taken as shown.  Therefore, to compile
> x.c is not possible.  So for instance, echo *.c produces a different
> result than echo *.C.  I tried mv'ing the problem files and then back
> but same results.
> 
> I do believe that historically there was some sort of interpretations
> such as this in the evolution from FAT to FAT32, but not sure it
> should be so in current version, or, at least, other operating systems
> don't take this interpretation.  Is there an option or something I'm
> missing?  How do I get to process x.c as x.c and not X.C.


there's no difference between FAT12/16 and FAT32 in treatment of file names, it 
is entirely up to FS driver to create or skip creation of LFN (Long File Name) 
entry, and to use or skip reading an LFN.

every file on FAT has 8.3 name, and may, but does not have to have, an LFN. the 
8.3 name is of limited charset (one of DOS or WINDOWS codepages) and upcase 
only, at least in canonical format. to store lowercase characters, you need 
LFN.

IIRC, some version(s?) of fat drivers on linux did not create LFN for a file 
when the long filename was matching case INsensitive the 8.3 file name, 
essentially leading to loss of character case information.

perhaps something alike is at play here.

-- 
dexen deVries

[[[↓][→]]]


``we, the humanity'' is the greatest experiment we, the humanity, ever 
undertook. 




  parent reply	other threads:[~2013-03-27 12:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-27 12:24 Comeau At9Fans
2013-03-27 12:33 ` erik quanstrom
2013-03-27 14:18   ` Comeau At9Fans
2013-03-27 16:02     ` Nicolas Bercher
2013-03-27 16:16       ` Comeau At9Fans
2013-03-27 12:36 ` tlaronde
2013-03-27 12:39 ` dexen deVries [this message]
2013-03-27 13:07 ` Stuart Morrow
2013-03-27 15:44 ` Bakul Shah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23134507.xFGMZYEeyB@coil \
    --to=dexen.devries@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).