xfs: fix check of whether the mkfs fail