Re: FAT : FAT16 support maximum 4GB file/vol size like WinXP or 7.

From: NamJae Jeon
Date: Mon Jul 25 2011 - 18:33:35 EST


Hi.

And after modifing 0xffffffff, I confirm that it is working well such
as copying file of over 2GB size, etc..

Thanks

2011/7/26 NamJae Jeon <linkinjeon@xxxxxxxxx>:
> Hi.
>
> 2011/7/26 OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>:
>> NamJae Jeon <linkinjeon@xxxxxxxxx> writes:
>>
>>> Hello Hirofumi
>>>
>>> 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->s_maxbytes(0x7fffffff) when
>>> partition is formatted by FAT16.
>>
>> Yes. Now, only FAT32 allows it.
>>
>>> I think that sb->s_maxbytes in fill_super should be set to 0xffffffff
>>> like Fat32.
>>>
>>> I want to know your opinion.
>>
>> In my knowledge, Windows was limiting it as 2GB intentionally for
>> compatibility reason.
>>
>> If Windows changed mind, I think it's good that we allow it too for 64KB
>> cluster. BTW, you can select FAT16 with 64KB on Windows?
>>
> Yes, I can select FAT16 with 64KB cluster size on Windows when
> formatting usb storage of 4GB size.
>
> Thanks
>> Thanks.
>> --
>> OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
>>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/