CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2016/01/26 00:58:35
Modified files:
usr.sbin/vmctl : vmctl.c
Log message:
lseek() + write() can be replaced by a slightly shorter ftruncate()
call. Note that using ftruncate() to extend a file is not portable
(POSIX allows either zero-filling until the given size is reached, or
alternatively erroring out), but that shouldn't be a proble as vmm(4)
isn't cross-platform either. unlink() the image file when extending
it fails for consistency with the other error case (the file can't be
created).
>From Martin Natano
OK mlarkin@