tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: msdosfs and small sectors



On Wed, Jul 16, 2014 at 06:26:00PM +0000, David Holland wrote:
> On Wed, Jul 16, 2014 at 03:10:01PM +0200, Maxime Villard wrote:
>  > I thought about that. I haven't found a clear spec on this, but it is
>  > implicitly suggested that 512 is the minimal size (from what I've seen
>  > here and there). And the smallest BytesPerSec allowed for fat devices
>  > is 512. But still, nothing really clear.
> 
> If you're afraid some real device might turn up with 128-byte sectors
> or something, complain if it's less than 64. Or 32. It doesn't really
> matter.

Real floppies certainly had 128 byte sectors.
Some even had 128 byte ones on track 0 but 256 byte ones on the rest
of the disk!

Is there a check that the sector size is a power of two?
That might depend on where it comes from.

Real devices with 'unusual' sector sizes do exist (like audio CD),
but they won't have a FAT fs on them.
(and ICL system25 whcih wanted 100 byte sectors).

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index