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

From: OGAWA Hirofumi (hirofumi@mail.parknet.co.jp)
Date: Fri Aug 10 2001 - 11:56:26 EST


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>


- 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/



This archive was generated by hypermail 2b29 : Wed Aug 15 2001 - 21:00:34 EST