Subject: Re: newfs_msdos file system size limit in 1.6.2?
To: Brad du Plessis <bradd@cat.co.za>
From: Tero Kivinen <kivinen@iki.fi>
List: netbsd-users
Date: 08/05/2004 07:31:55
"Brad du Plessis" <bradd@cat.co.za> writes:
> Can someone perhaps confirm for me if creating a filesystem on a
> disk using newfs_msdos limits any single partition size to 132GB?
>
> Doing a newfs_msdos on a 200GB disk with only a single partition
> seems to work fine, but I am unable to mount this partition. Doing a
> mount_msdos returns "Invalid argument".
The newfs_msdos works fine. There is a kernel limit of mounting
msdos filesystems larger than 128 GB.
> Is this a limit imposed by FAT32, or does this indicate a problem
> with newfs_msdos or mount_msdos?
This is because of the 32 bit inode-number inside the kernel see PR
kern/23773. It also includes a patch to fix the problem, but the
correct fix to the problem would be to raise the inode number to 64
bits.
--
kivinen@safenet-inc.com