]> xenbits.xensource.com Git - libvirt.git/commit
storage: Do not override the exact error of createRawFile
authorOsier Yang <jyang@redhat.com>
Mon, 4 Jul 2011 08:13:23 +0000 (16:13 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 4 Jul 2011 08:13:23 +0000 (16:13 +0800)
commit49826eda7a1da3fb35fc62f340ecdb1d948b0347
treecfecc6e77c0e31d209b194ebc41d0a06f5a4a757
parent7976d96dd737867dd99c8de8d6ee00e23f2a4e7d
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
src/storage/storage_backend.c