@SRCDIR@src/storage/storage_backend_vstorage.c
@SRCDIR@src/storage/storage_backend_zfs.c
@SRCDIR@src/storage/storage_driver.c
-@SRCDIR@src/storage/storage_file_fs.c
-@SRCDIR@src/storage/storage_file_gluster.c
@SRCDIR@src/storage/storage_util.c
+@SRCDIR@src/storage_file/storage_file_backend_fs.c
+@SRCDIR@src/storage_file/storage_file_backend_gluster.c
@SRCDIR@src/test/test_driver.c
@SRCDIR@src/util/iohelper.c
@SRCDIR@src/util/viralloc.c
subdir('secret')
subdir('security')
subdir('storage')
+subdir('storage_file')
subdir('bhyve')
subdir('esx')
'storage_backend_fs.c',
]
-stoarge_file_fs_sources = [
- 'storage_file_fs.c',
-]
-
storage_backend_disk_sources = [
'storage_backend_disk.c',
]
'storage_backend_gluster.c',
]
-storage_file_gluster_sources = [
- 'storage_file_gluster.c',
-]
-
storage_backend_iscsi_sources = [
'storage_backend_iscsi.c',
]
]
storage_backend_install_dir = libdir / 'libvirt' / 'storage-backend'
-storage_file_install_dir = libdir / 'libvirt' / 'storage-file'
if conf.has('WITH_STORAGE')
storage_driver_impl_lib = static_library(
'install_dir': storage_backend_install_dir,
}
- virt_modules += {
- 'name': 'virt_storage_file_fs',
- 'sources': [
- files(stoarge_file_fs_sources),
- ],
- 'install_dir': storage_file_install_dir,
- }
-
virt_daemons += {
'name': 'virtstoraged',
'c_args': [
],
'install_dir': storage_backend_install_dir,
}
-
- virt_modules += {
- 'name': 'virt_storage_file_gluster',
- 'sources': [
- files(storage_file_gluster_sources),
- ],
- 'deps': [
- glusterfs_dep,
- ],
- 'install_dir': storage_file_install_dir,
- }
endif
if conf.has('WITH_STORAGE_ISCSI')
'install_dir': storage_backend_install_dir,
}
endif
+
+storage_inc_dir = include_directories('.')
--- /dev/null
+stoarge_file_fs_sources = [
+ 'storage_file_backend_fs.c',
+]
+
+storage_file_gluster_sources = [
+ 'storage_file_backend_gluster.c',
+]
+
+storage_file_install_dir = libdir / 'libvirt' / 'storage-file'
+
+if conf.has('WITH_STORAGE')
+ virt_modules += {
+ 'name': 'virt_storage_file_fs',
+ 'sources': [
+ files(stoarge_file_fs_sources),
+ ],
+ 'include': [
+ storage_inc_dir,
+ ],
+ 'install_dir': storage_file_install_dir,
+ }
+endif
+
+if conf.has('WITH_STORAGE_GLUSTER')
+ virt_modules += {
+ 'name': 'virt_storage_file_gluster',
+ 'sources': [
+ files(storage_file_gluster_sources),
+ ],
+ 'include': [
+ storage_inc_dir,
+ ],
+ 'deps': [
+ glusterfs_dep,
+ ],
+ 'install_dir': storage_file_install_dir,
+ }
+endif
/*
- * storage_file_fs.c: storage file code for FS and directory handling
+ * storage_file_backend_fs.c: storage file code for FS and directory handling
*
* Copyright (C) 2007-2018 Red Hat, Inc.
*
#include <fcntl.h>
#include "virerror.h"
-#include "storage_file_fs.h"
+#include "storage_file_backend_fs.h"
#include "storage_util.h"
#include "virstoragefilebackend.h"
#include "vircommand.h"
/*
- * storage_file_fs.h: storage file code for FS and directory handling
+ * storage_file_backend_fs.h: storage file code for FS and directory handling
*
* Copyright (C) 2018 Red Hat, Inc.
*
/*
- * storage_file_gluster.c: storage file backend for Gluster handling
+ * storage_file_backend_gluster.c: storage file backend for Gluster handling
*
* Copyright (C) 2013-2018 Red Hat, Inc.
*
#include <glusterfs/api/glfs.h>
-#include "storage_file_gluster.h"
+#include "storage_file_backend_gluster.h"
#include "viralloc.h"
#include "virerror.h"
#include "virlog.h"
/*
- * storage_file_gluster.h: storage file backend for Gluster handling
+ * storage_file_backend_gluster.h: storage file backend for Gluster handling
*
* Copyright (C) 2018 Red Hat, Inc.
*