search for: guestfs_open_device

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

2010 Aug 19
1
Proposed new libguestfs file APIS
...ry block device in the appliance. I need to be able to write arbitrary chunks of data to specific places on the device. This will need a new API, as guestfs_pread can't open a block device. While I'm at it, I'd like to create a new family of APIs which operate on a file handle: int guestfs_open_device(g, path); Open a block device. Return a handle. int guestfs_open_file(g, path); Open a file from the guest's filesystem. Return a handle. int guestfs_close_handle(g, handle); Close a file handle. ssize_t guestfs_hpread(g, handle, buf, size, offset); ssize_t guestfs_hread(g, handle,...