mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
storage: Do not override the exact error of createRawFile
virStorageBackendCreateRaw: createRawFile already reported the exact error. Before the fix: error: Failed to create vol vol-create.img error: cannot create path '/var/lib/libvirt/images/vol-create.img': Unknown error 18446744073709551597 After the fix: error: Failed to create vol vol-create.img error: cannot fill file '/var/lib/libvirt/images/vol-create.img': No space left on device
This commit is contained in:
parent
7976d96dd7
commit
49826eda7a
@ -399,12 +399,9 @@ virStorageBackendCreateRaw(virConnectPtr conn ATTRIBUTE_UNUSED,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = createRawFile(fd, vol, inputvol)) < 0) {
|
if ((ret = createRawFile(fd, vol, inputvol)) < 0)
|
||||||
virReportSystemError(-fd,
|
/* createRawFile already reported the exact error. */
|
||||||
_("cannot create path '%s'"),
|
|
||||||
vol->target.path);
|
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
VIR_FORCE_CLOSE(fd);
|
VIR_FORCE_CLOSE(fd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user