LWN article: 4K disk sectors

Eric Sandeen sandeen at sandeen.net
Thu Mar 12 09:58:25 CDT 2009


Michael Monnerie wrote:
> On Donnerstag 12 März 2009 Eric Sandeen wrote:
>> Take a look at the mkfs.xfs man page:
>>
>>        -s sector_size
>>               This option specifies the fundamental  sector  size  of
>>               the filesystem.  The sector_size is specified either as
>>               a value in bytes with size=value or as a base two loga-
>>               rithm value with log=value.  The default sector_size is
>>               512 bytes. The minimum value for sector  size  is  512;
>>               the  maximum is 32768 (32 KiB). The sector_size must be
>>               a power of 2 size and cannot be made  larger  than  the
>>               filesystem block size.
> 
> Ugh, I felt so good this morning, until you responded ... ;-)
> 
> I thought that it's a limitation of the Linux kernel in more parts than 
> just the filesystem (like block cache), that sector sizes must be 512B. 
> If I had a 4K drive, would that be usable with XFS already?

Other layers need work, yes, but by and large xfs should be ready when
the rest of the kernel & linux infastructure catches up.

-Eric




More information about the xfs mailing list