HomeFreeBSD

Force 4K blocksize when testing ext2 on zvol.

Description

Force 4K blocksize when testing ext2 on zvol.

Currently, mkfs.ext2 on zconfig.sh zvols tries to use a 8K blocksize,
probably because by default zvol exposes an optimal I/O size of 8K.

Unfortunately, a ext2 blocksize of 8K is not supported by the kernel,
so the resulting filesystem is unmountable.

This patch fixes the issue by making sure the blocksize is 4K. We have
to use -F to force it else mkfs.ext2 won't allow us to use a blocksize
smaller than the optimal I/O size.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #979

Details

Provenance
Etienne Dechamps <etienne.dechamps@ovh.net>Authored on Sep 20 2012, 10:00 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 3 2012, 5:52 PM
Parents
rG393b44c71128: Implement .commit_metadata hook for NFS export
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2f342404c157: Force 4K blocksize when testing ext2 on zvol. (authored by Etienne Dechamps <etienne.dechamps@ovh.net>).Oct 3 2012, 5:52 PM