Re: [PATCH] vfat write wrong value into lcase flag

OGAWA Hirofumi (hirofumi@mail.parknet.co.jp)
11 Aug 2001 01:56:26 +0900


--=-=-=

Nerijus Baliunas <nerijus@users.sourceforge.net> writes:

> I don't know. Sorry, I didn't look at the code, but current (2.4.7) kernel still shows
> filenames as I wrote in 1999. I am talking about filenames _without_ long entries.
> Didn't test what current kernel writes, though.
> I'm attaching floppy image, ungzip and loop mount it.

Thanks for sending floppy image.

This floppy image contains following directory entry:
(this floppy image forgot testing extension name)

name attribute used direntry
-----------------------------------------------------------------------------
LINUP LONG_FILENAME, CASE_LOWER_BASE | CASE_LOWER_EXT 2
LINLOW , CASE_LOWER_BASE | CASE_LOWER_EXT 1
DOSUP , 1
DOSLOW , 1
98UP , 1
98low LONG_FILENAME, 2
W2KUP , 1
W2KLOW , CASE_LOWER_BASE 1
NTUP , 1
NTLOW , CASE_LOWER_BASE 1

linux-2.4.8-pre8:
-----------------------------------------------------------------------------
LINUP , CASE_LOWER_BASE | CASE_LOWER_EXT 1
linlow LONG_FILENAME, CASE_LOWER_BASE | CASE_LOWER_EXT 2

default, convert the shortname to lowercase:
$ mount -t vfat fdd_vfat /mnt -o loop
$ ls /mnt
98low 98up LINUP doslow dosup linlow ntlow ntup w2klow w2kup

nocase option, use the win9x rule for display (doesn't support CASE_* flags):
$ mount -t vfat fdd_vfat /mnt -o loop,nocase
$ ls /mnt
98UP 98low DOSLOW DOSUP LINLOW LINUP NTLOW NTUP W2KLOW W2KUP

2.4.8-pre8 is useing the win9x rule for create. But attribute must
change to 0.

Now, I writing the lower/win95/winnt/mixed rule on -ac tree.
Please help to test the following patch, if you interests.

-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

--=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=vfat_shortname-2.4.7-ac10.diff.gz Content-Transfer-Encoding: base64

H4sICPYKdDsAA3ZmYXRfc2hvcnRuYW1lLTIuNC43LWFjMTAuZGlmZgDEPGt327aSn+Vfgfju2pJI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qw3uLmEkY2TZUCS/rER/z IDvhoORR3+FNGV+JihekTtZ0dkomKLyg3aMp+NB1kzzHZlz5w0CGS7jbZ6ziasakbY45A0eYwT5q 2VKVDcawgknVdJqJhgDEC2Oh/Qziu1Z2xspEm2qaNmpQzP8GCh95MMOURXN4oUqRgQ/pU5jReK0C /GQyTn2a10o9k+/mQbiOIlo6VxkTTLcJRd886qN18qv6+A/97zV44lsAAA== --=-=-=--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/