Re: FAT32 mount problem

2007-06-14 Thread frantisek holop
hmm, on Wed, Jun 13, 2007 at 01:27:03AM -0400, Nick Guenther said that
 No.
 As far as I know, the OpenBSD FAT driver just does that. It's
 annoying, but the FAT driver doesn't get much love (which shouldn't be
 too surprising).

that is not true anymore, since pedro is on board :)
btw this is not openbsd only.  lots of devices have similar fat
implementations, like my iriver.  long filenames cool, short
always uppercase.


funny thing, if you copy the files to the disk using openbsd,
the lowercase remains.  but rename does no change, i guess it must
be creat(3)-ed using lowercase.

there was some discussion about this some time ago, fat internals
were dragged around in horrible blood :)  but i stopped caring
a long time ago, now that there's a good ext2fs driver for xp...
bye bye fat32

-f
-- 
to my embarrassment, i was born in bed with a lady!



Re: FAT32 mount problem

2007-06-14 Thread Andrey Shuvikov

On 6/12/07, Mark Voortman [EMAIL PROTECTED] wrote:

Hello folks,

After mounting a fat32 partition, the directory listings show
everything in uppercase, except when a filename contains a
combination of uppercase and lowercase characters or the extension is
not 3 characters long, then it shows the names correctly. The uppercases
are very annoying. Does anyone know how to make this work correctly?

Thanks,
Mark




Well, this is actually how FAT works. Original implementation
supported only 8.3 names and stored them in uppercase (which didn't
matter because FAT doesn't care about the case). When MS introduced
long file names it did this using additional attributes, which were
added only to files whose names could not be represented the old way
(combination of uppercase/lowercase characters, extension longer than
3 characters, etc). So technically all names should appear in
uppercase (unless they have long name attributes).

Some software used to show filenames always in lowercase while
directory names always in uppercase (for example, norton commander)
but this is up to this software. Again it was safe because FAT doesn't
care.

So, unless driver converts them, uppercase names are original names
from FAT partition.

A



Re: FAT32 mount problem

2007-06-12 Thread Nick Guenther

On 6/12/07, Mark Voortman [EMAIL PROTECTED] wrote:

Hello folks,

After mounting a fat32 partition, the directory listings show
everything in uppercase, except when a filename contains a
combination of uppercase and lowercase characters or the extension is
not 3 characters long, then it shows the names correctly. The uppercases
are very annoying. Does anyone know how to make this work correctly?


No.
As far as I know, the OpenBSD FAT driver just does that. It's
annoying, but the FAT driver doesn't get much love (which shouldn't be
too surprising).

So, to answer you question in the technical and typical way of this
list: submit a patch.

-Nick