David Allan wrote:
> diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c
...
Hi Dave,
> +static int
> +storageVolumeZeroSparseFile(virStorageVolDefPtr vol,
> +struct stat *st,
> +int fd)
Since the only use of "st" is fo
On Tue, Mar 02, 2010 at 05:13:33PM -0500, David Allan wrote:
> @@ -1518,6 +1521,220 @@ cleanup:
> return ret;
> +
> +static int
> +storageZeroExtent(virStorageVolDefPtr vol,
> + struct stat *st,
> + int fd,
> + size_t extent_start,
> +
On 03/02/2010 06:44 PM, Eric Blake wrote:
According to David Allan on 3/2/2010 3:13 PM:
+ret = ftruncate(fd, st->st_size);
+if (ret == -1) {
+virReportSystemError(ret,
+ _("Failed to truncate volume with "
+ "path '%s' to
According to David Allan on 3/2/2010 3:13 PM:
> +ret = ftruncate(fd, st->st_size);
> +if (ret == -1) {
> +virReportSystemError(ret,
> + _("Failed to truncate volume with "
> + "path '%s' to %llu bytes: '%s'\n"),
> +
---
src/storage/storage_driver.c | 218 ++
1 files changed, 218 insertions(+), 0 deletions(-)
diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c
index 6b1045a..9e63689 100644
--- a/src/storage/storage_driver.c
+++ b/src/storage/storag