]> xenbits.xensource.com Git - libvirt.git/commit
storage: report VIR_ERR_NO_STORAGE_VOL when the file doesn't exist
authorGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 13 Jun 2014 14:48:15 +0000 (16:48 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 13 Jun 2014 16:05:33 +0000 (10:05 -0600)
commitd6e92bfa38d2d2dffa2ec38373e2922268d32b51
treef9cb1885cbb47c573a760d7606be52db9a21655b
parentaad479dc4eec415517859c684e649999d83a227e
storage: report VIR_ERR_NO_STORAGE_VOL when the file doesn't exist

Report VIR_ERR_NO_STORAGE_VOL instead of a system error when lstat
fails because the file doesn't exist.

Fixes this problem in virt-install:

  https://bugzilla.redhat.com/show_bug.cgi?id=1108922

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/storage/storage_backend.c