Additional validity checking in newfs(8).
(cherry picked from commit 62dc21b10731bdba26dafeb51640c2048a3344a0)