Fix zconfig.sh non-optimal alignment
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Feb 2012 18:38:03 +0000 (10:38 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Feb 2012 21:23:28 +0000 (13:23 -0800)
commit93648f314c258897a0fa72b0d0b164e1937a5b63
treed734eebd42ba4bb3092b6adb84796b111d3ca2ab
parentdde9380a1bf9084d0c8a3e073cdd65bb81db1a23
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>
scripts/common.sh.in
scripts/zconfig.sh