upload_offset
Description:
[ Version ( since = "1.5.17" ) ]
public bool upload_offset (string filename, string remotefilename, int64 offset, Cancellable? cancellable = null) throws Error
public bool upload_offset (string filename, string remotefilename, int64 offset, Cancellable? cancellable = null) throws Error
upload a file from the local machine with offset
Upload local file filename to remotefilename on the filesystem.
remotefilename is overwritten starting at the byte offset
specified. The intention is to overwrite parts of existing files or
devices, although if a non-existent file is specified then it is created with a "hole" before offset
. The size of the data written
is implicit in the size of the source filename.
Note that there is no limit on the amount of data that can be uploaded with this call, unlike with pwrite, and this call always writes the full amount unless an error occurs.
Parameters:
this |
A GuestfsSession object |
cancellable |
A GCancellable object |
Returns:
true on success, false on error |