]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage: fs: Compile file backends even if filesystem support is disabled
authorPeter Krempa <pkrempa@redhat.com>
Fri, 13 Jan 2017 15:59:30 +0000 (16:59 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 19 Jan 2017 08:25:51 +0000 (09:25 +0100)
The file backend code was mistakenly put into #if WITH_STORAGE_FS. This
is not necessary since all the backends just access files on disk, and
thus the code for WITH_STORAGE_DIR is sufficient to compile everything.

src/storage/storage_backend_fs.c

index 53710db11cea8d5b11980aeb44765ef9f254121f..15b35995df774ec8e327aaa3515ab2e8029635ad 100644 (file)
@@ -1390,6 +1390,7 @@ virStorageBackend virStorageBackendNetFileSystem = {
     .downloadVol = virStorageBackendVolDownloadLocal,
     .wipeVol = virStorageBackendVolWipeLocal,
 };
+#endif /* WITH_STORAGE_FS */
 
 
 typedef struct _virStorageFileBackendFsPriv virStorageFileBackendFsPriv;
@@ -1574,5 +1575,3 @@ virStorageFileBackend virStorageFileBackendDir = {
 
     .storageFileGetUniqueIdentifier = virStorageFileBackendFileGetUniqueIdentifier,
 };
-
-#endif /* WITH_STORAGE_FS */