diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 1b0a55b27fa9b0c907491989a0ae899db71e3e70..01553b52942de7fb971e8217df13a3affda7c178 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -25342,10 +25342,8 @@ virDomainDiskDefForeachPath(virDomainDiskDefPtr disk, } for (tmp = disk->src; tmp; tmp = tmp->backingStore) { - int actualType = virStorageSourceGetActualType(tmp); /* execute the callback only for local storage */ - if (actualType != VIR_STORAGE_TYPE_NETWORK && - actualType != VIR_STORAGE_TYPE_VOLUME && + if (virStorageSourceIsLocalStorage(tmp) && tmp->path) { if (iter(disk, tmp->path, depth, opaque) < 0) goto cleanup;