Subject: Re: msdosfs size limitations
To: Darrin B. Jewell <>
From: Jaromir Dolecek <>
List: tech-kern
Date: 04/22/2003 19:55:20
Darrin B. Jewell wrote:
> I have a 250gb maxtor usb/firewire hard drive.  It came
> preformatted with a msdos FAT32 filesystem.  Attempting to mount
> it returns EINVAL.  Is anyone working on removing this limitation?
> Is there a good reason why this is hard?

Noone has access to such hardware yet it seems :)
> A quick search for EINVAL in msdosfs_mountfs reveals a comment
> which may (or may not) be related:
>   if (pmp->pm_HugeSectors > 0xffffffff / dirsperblk + 1) {
>      /*
>       * We cannot deal currently with this size of disk
>       * due to fileid limitations (see msdosfs_getattr and
>       * msdosfs_readdir)
>       */
>      error = EINVAL;
>      goto error_exit;
>   }

Yes, this might be the culprit. Might be easy to fix even.
Please file a PR about this, so that it has some chance
of being fixed eventually.
Jaromir Dolecek <>  
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-