HomeFreeBSD

Fix zconfig.sh non-optimal alignment

Description

Fix zconfig.sh non-optimal alignment

The recent zvol improvements have changed default suggested alignment
for zvols from 512b (default) to 8k (zvol blocksize). Because of this
the zconfig.sh tests which create paritions are now generating a
warning about non-optimal alignments.

This change updates the need zconfig.sh tests such that a partition
will be properly aligned. In the process, it shifts from using the
sfdisk utility to the parted utility to create partitions. It also
moves the creation of labels, partitions, and filesystems in to
generic functions in common.sh.in.

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Feb 9 2012, 6:38 PM
Parents
rGdde9380a1bf9: Use 32 as the default number of zvol threads.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG93648f314c25: Fix zconfig.sh non-optimal alignment (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Feb 9 2012, 9:23 PM