#!/bin/ksh
#
# This function creates an empty VTOC structure on a disk
# Use with caution!

function clear_vtoc {
        fmthard -s - $1 <<-EOF > /dev/null 2>&1
                0 0 0 0 0
                1 0 0 0 0
                3 0 0 0 0
                4 0 0 0 0
                5 0 0 0 0
                6 0 0 0 0
                7 0 0 0 0
EOF
        return $?
}
