virStorageBackendWipeLocal(virStorageVolDefPtr vol,
int fd,
unsigned long long wipe_len,
- size_t writebuf_length,
- size_t *bytes_wiped)
+ size_t writebuf_length)
{
int ret = -1, written = 0;
unsigned long long remaining = 0;
goto cleanup;
}
- *bytes_wiped += written;
remaining -= written;
}
goto cleanup;
}
- VIR_DEBUG("Wrote %zu bytes to volume with path '%s'",
- *bytes_wiped, vol->target.path);
+ VIR_DEBUG("Wrote %llu bytes to volume with path '%s'",
+ wipe_len, vol->target.path);
ret = 0;
{
int ret = -1, fd = -1;
struct stat st;
- size_t bytes_wiped = 0;
virCommandPtr cmd = NULL;
virCheckFlags(0, -1);
ret = virStorageBackendWipeLocal(vol,
fd,
vol->target.allocation,
- st.st_blksize,
- &bytes_wiped);
+ st.st_blksize);
}
}