]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
storage: Handle readflags errors
authorJohn Ferlan <jferlan@redhat.com>
Tue, 24 Nov 2015 16:15:53 +0000 (11:15 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 9 Dec 2015 21:31:14 +0000 (16:31 -0500)
commit1bc84b0a0851ea4ab88ae00a1f3ad13606d86587
tree14a94395fbd572f02743ba91d6642cd979725328
parent1edfce9b180f0d4ec23ecd26a173eb1e0351ab3c
storage: Handle readflags errors

Similar to the openflags VIR_STORAGE_VOL_OPEN_NOERROR processing, if some
read processing operation fails, check the readflags for the corresponding
error flag being set. If so, rather then causing an error - use VIR_WARN
to flag the error, but return -2 which some callers can use to perform
specific actions. Use a new VIR_STORAGE_VOL_READ_NOERROR flag in a new
VolReadErrorMode enum.
src/storage/storage_backend.c
src/storage/storage_backend.h