Quick file allocation

Marc Wiz marc at wiz.com
Thu Jul 24 14:20:07 PDT 2003


On Thu, Jul 24, 2003 at 05:07:12PM -0400, Ugen wrote:
> 
> fd = open(name, O_WRONLY);
> lseek(fd, size_in_bytes, SEEK_SET)
> close(fd)
> --Ugen

It might help if after the lseek a write() call is done :-)

Marc

-- 
Marc Wiz
marc at wiz.com
Yes, that really is my last name.


More information about the freebsd-questions mailing list