mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nerijus Baliunas <nerijus@users.sourceforge.net>
To: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] vfat write wrong value into lcase flag
Date: Wed, 8 Aug 2001 22:14:37 +0200 (EET)	[thread overview]
Message-ID: <200108082020.WAA1347968@mail.takas.lt> (raw)
In-Reply-To: <87wv4er2kt.fsf@devron.myhome.or.jp>
In-Reply-To: <87wv4er2kt.fsf@devron.myhome.or.jp>

On 09 Aug 2001 00:30:58 +0900 OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> wrote:

OH> The current vfat is writeing wrong value into lcase flag.  It is
OH> writing the lowercase flag, although filename is uppercase.

Hello,

In December 1999 I sent my investigation about short filenames in vfat:
_________________________________________
Hello,

there were some complaints about linux not handling upper/lowercase
filenames in vfat correctly (they are below). So I did some investigation.
I created following directories (or files, it does not matter):

in Linux: LINUP, linlow
in win98: 98UP, 98low
in NT4: NTUP, ntlow
in W2k: W2KUP, w2klow

Now what ls/dir shows:

in Linux: LINUP, linlow, 98up, 98low, ntup, ntlow, w2kup, w2klow
in win98: LINUP, LINLOW, 98UP, 98low, NTUP, NTLOW, W2KUP, W2KLOW
in NT4: LINUP, linlow, 98UP, 98low, NTUP, ntlow, W2KUP, w2klow
in W2K: LINUP, linlow, 98UP, 98low, NTUP, ntlow, W2KUP, w2klow

So I would suggest NT/W2K shows everything correctly (if we can call so,
because microsoft mixed everything up), and win98/Linux shows differently
in opposite directions. I think Linux should follow one of win95/98 or NT/W2K,
and since NT/W2K seams more reasonable, Linux could display filenames
like NT (Linux creates filenames similar to NT already).

There is no such problem with mixed up/low or with filenames
containing more than 8 characters.
_________________________________________

I like this table format better, with errors marked:

in Linux:  LINUP  linlow <98up> 98low <ntup> ntlow
in win98:  LINUP <LINLOW> 98UP  98low  NTUP <NTLOW>
in NT4:    LINUP  linlow  98UP  98low  NTUP  ntlow

Clearly NT displays everything right.
Lowercase must be written the Win98 way.
Uppercase must be written the Linux way.
_________________________________________
Then I sent a diskette image to Al Viro:

> I am sending diskette image, made with
> dd if=/dev/fd0 of=fdd_vfat bs=512 count=2847

Aha... In other words, for NT in short records bit 3 at offset 0xc
means 'lowercase it'. 9x ignores the thing. Everybody handle the long
entries the same way. Umhm... Thanks.
_________________________________________

I think Linux should create files like win98
(because NT shows them correctly) and show like NT.


Regards,
Nerijus



  reply	other threads:[~2001-08-08 20:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-08 15:30 OGAWA Hirofumi
2001-08-08 20:14 ` Nerijus Baliunas [this message]
2001-08-09 18:16   ` OGAWA Hirofumi
2001-08-10 14:09     ` Re[2]: " Nerijus Baliunas
2001-08-10 16:56       ` OGAWA Hirofumi

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=200108082020.WAA1347968@mail.takas.lt \
    --to=nerijus@users.sourceforge.net \
    --cc=hirofumi@mail.parknet.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®