#!/bin/sh usage() { echo "Usage: llxcfg-mkfs-ocfs2 device [NUM_NODES]" exit 0 } [ $1 ] || usage NODES=8 [ $2 ] && NODES=$2 mkfs.ocfs2 -N $NODES --fs-feature-level=max-features --fs-features=xattr $1