mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
storage: don't probe non-files
Backing chains can end on a network protocol, such as nbd:xxx; we should not attempt to probe the file system in this case. * src/storage/storage_backend_fs.c (virStorageBackendProbeTarget): Only probe files.
This commit is contained in:
parent
1246640b3d
commit
eac74c1f47
@ -108,7 +108,8 @@ virStorageBackendProbeTarget(virStorageVolTargetPtr target,
|
||||
if (meta->backingStore) {
|
||||
*backingStore = meta->backingStore;
|
||||
meta->backingStore = NULL;
|
||||
if (meta->backingStoreFormat == VIR_STORAGE_FILE_AUTO) {
|
||||
if (meta->backingStoreFormat == VIR_STORAGE_FILE_AUTO &&
|
||||
meta->backingStoreIsFile) {
|
||||
if ((ret = virStorageFileProbeFormat(*backingStore)) < 0) {
|
||||
/* If the backing file is currently unavailable, only log an error,
|
||||
* but continue. Returning -1 here would disable the whole storage
|
||||
|
Loading…
Reference in New Issue
Block a user