Path: utzoo!utgpu!watserv1!watmath!att!rutgers!usc!zaphod.mps.ohio-state.edu!rpi!bu.edu!xylogics!transfer!crackers!m2c!umvlsi!dime!dime.cs.umass.edu!moss From: moss@cs.umass.edu (Eliot Moss) Newsgroups: comp.unix.wizards Subject: Re: Reserving Space on Disk Message-ID: Date: 15 Jul 90 23:05:02 GMT References: <563@hhb.UUCP> <1990Jul15.211608.26025@virtech.uucp> Sender: news@dime.cs.umass.edu Reply-To: moss@cs.umass.edu Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst) Lines: 21 In-reply-to: cpcahil@virtech.uucp's message of 15 Jul 90 21:16:08 GMT I don't think tromping through 4 megabytes of newly allocated address space will be much of a winner myself. I'd do something more along these lines (error checking omitted): char buf[ONE_K]; int i; for (i = 0; i < FOUR_K; ++i) write (fd, buf, ONE_K); You might want to tune the size of buf up larger than what I have, but still somewhat "reasonable". Something between the size of a track and a cylinder on the disk might work reasonably well, say 64K or 128K. Enjoy! Eliot -- J. Eliot B. Moss, Assistant Professor Department of Computer and Information Science Lederle Graduate Research Center University of Massachusetts Amherst, MA 01003 (413) 545-4206; Moss@cs.umass.edu