]> xenbits.xensource.com Git - libvirt.git/commit
Ignore missing files on pool refresh
authorJán Tomko <jtomko@redhat.com>
Thu, 20 Mar 2014 15:35:00 +0000 (16:35 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 20 Mar 2014 17:13:58 +0000 (18:13 +0100)
commitee640f444bbdc976bdaed305f0d64d241d275376
tree5a47465a01b8378bfd2005188a66b0387723889b
parent0edfc9ef63b338bbcb8eb4b98653589c3889726e
Ignore missing files on pool refresh

If we cannot stat/open a file on pool refresh, returning -1 aborts
the refresh and the pool is undefined.

Only treat missing files as fatal unless VolOpenCheckMode is called
with the VIR_STORAGE_VOL_OPEN_ERROR flag. If this flag is missing
(when it's called from virStorageBackendProbeTarget in
virStorageBackendFileSystemRefresh), only emit a warning and return
-2 to let the caller skip over the file.

https://bugzilla.redhat.com/show_bug.cgi?id=977706
src/storage/storage_backend.c