newfs_msdos extracted from NetBSD