If you try to create a xfs filesystem with 512 bytes block size, you would get an error shown below:
# mkfs.xfs -b size=512 [device] Minimum block size for CRC enabled file systems is 1024 bytes
By default mkfs.xfs will enable CRC which forces a 1024 byte block. Turn off CRC to get 512 byte block.
CRC enables enhanced error detection due to hardware issues, whilst the format changes also improve crash recovery algorithms and the ability of various tools to validate and repair metadata corruptions when they are found. Disabling CRC is a trade-off with file-system consistency.
Format the file-system using ‘-m’ option to disable CRC check:
# mkfs.xfs -m crc=0 -b size=512 [device]
If you now try creating the xfs filesystem with 512 bytes block size, you should not get any error.