search for: guestfs_htrunc

Displaying 1 result from an estimated 1 matches for "guestfs_htrunc".

2010 Aug 19
1
Proposed new libguestfs file APIS
...tfs_hread(g, handle, buf, size); ssize_t guestfs_hpwrite(g, handle, buf, size, offset); ssize_t guestfs_hwrite(g, handle, buf, size); Wrappers round pread(), read(), pwrite() and write() which operate on a handle. ssize_t guestfs_hseek(g, handle, offset, whence); Wrapper round lseek(). int guestfs_htruncate(g, handle, length); Wrapper round ftruncate(). In terms of the API, the handle would be an opaque int. In practise it would be a file descriptor owned by guestfsd. I believe these APIs could result in a performance improvement over opening a file repeated. However, I have no data to back...