Date: Sat, 23 Aug 1997 01:28:25 +1000 From: Bruce Evans <bde@zeta.org.au> To: freebsd-scsi@FreeBSD.ORG, j@uriah.heep.sax.de Cc: andrew@zeta.org.au Subject: Re: newfs on Fujitsu R640 (2k sector media) Message-ID: <199708221528.BAA30318@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> Won't this be foiled when newfs attempts to write the last sector, to >> verify that it can, and uses a 512-byte write? It should write in multiples of the fs block size or maybe the fragment size. If not, (ab)using the buffered device might work. >Newfs doesn't write to a last sector to verify something. That's not >a PC BIOS... Newfs just creates the required filesystem structures >only. Nope, UTSL, newfs/mkfs.c has full support for PC BIOSes ;-): /* * Validate the given file system size. * Verify that its last block can actually be accessed. */ if (fssize <= 0) printf("preposterous size %d\n", fssize), exit(13); wtfs(fssize - (realsectorsize / DEV_BSIZE), realsectorsize, (char *)&sblock); Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708221528.BAA30318>