]> git.baikalelectronics.ru Git - kernel.git/commit
fat: fat16 support maximum 4GB file/vol size as WinXP or 7.
authorNamjae Jeon <linkinjeon@gmail.com>
Wed, 17 Aug 2011 10:10:09 +0000 (19:10 +0900)
committerOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Wed, 17 Aug 2011 10:35:00 +0000 (19:35 +0900)
commitb81d6678e35a9cb3f9a33284de540d1f574f9ea4
tree5cbbfedf3357c057f8d0043964e45b2e7597f0f6
parenta8c5417ab3a9c1384c69660b664a6b56a777435a
fat: fat16 support maximum 4GB file/vol size as WinXP or 7.

FAT16 support maximum 4GB vol/file size with 64KB cluster size.

Win NT/XP/7 increased the maximum cluster size to 64KB, and file/vol
size increased 4GB also.  Although increasing, the file size of linux
FAT is still limited at 2GB.

I found that it is limited by sb->maxbytes(0x7fffffff) when partition
is formatted by FAT16.  sb->s_maxbytes in fill_super should be set to
0xffffffff like fat32.

Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
fs/fat/inode.c