1 2 3 4 5
[[ $# -ne 1 ]] && \ die "usage: $0 <directory to create>" [[ -a $1 ]] && \ die "$1 already exists" btrfs subvolume create $1 || die "btrfs subvolume create failed"