]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
vfat: bug fix for vfat cannot handle filename with 255
authorKeith Mok <ek9852@gmail.com>
Mon, 28 Apr 2008 09:16:29 +0000 (02:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:47 +0000 (08:58 -0700)
commitf22032ba8de2960a64a3dd9719fb5c99b1f1ae6e
treec515ff4c94c041325cede8061a9fe3301ec08e53
parent061e97469f46f924cf14bbf1dd4805b46986691a
vfat: bug fix for vfat cannot handle filename with 255

This patch fix the problem that the buffer allocated for convert of unicode to
utf8 in fat/dir.c is too small.

And cannot handle filename with 255 asian characters when mounted with utf8
options.

Also it fix the filename length limitation checking in vfat/namei.c that the
filename length should be checked against the number of converted unicode
characters.

Not the length before NLS/UTF8 converted.

Signed-off-by: Keith Mok <ek9852@gmail.com>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/dir.c
fs/vfat/namei.c