util: move virStorageFileBackend code into storage_file

It's used only by storage file code so it doesn't make sense to have
it in util directory.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Pavel Hrdina 2021-01-22 10:37:33 +01:00
parent 01f7ade912
commit 65abeb058f
9 changed files with 12 additions and 12 deletions

View File

@ -223,6 +223,7 @@
@SRCDIR@src/storage/storage_backend_zfs.c
@SRCDIR@src/storage/storage_driver.c
@SRCDIR@src/storage/storage_util.c
@SRCDIR@src/storage_file/storage_file_backend.c
@SRCDIR@src/storage_file/storage_file_backend_fs.c
@SRCDIR@src/storage_file/storage_file_backend_gluster.c
@SRCDIR@src/storage_file/storage_source.c
@ -306,7 +307,6 @@
@SRCDIR@src/util/virsocketaddr.c
@SRCDIR@src/util/virstorageencryption.c
@SRCDIR@src/util/virstoragefile.c
@SRCDIR@src/util/virstoragefilebackend.c
@SRCDIR@src/util/virstoragefileprobe.c
@SRCDIR@src/util/virstring.c
@SRCDIR@src/util/virsysinfo.c

View File

@ -1618,6 +1618,10 @@ virSecurityManagerVerify;
virSecurityXATTRNamespaceDefined;
# storage_file/storage_file_backend.h
virStorageFileBackendRegister;
# storage_file/storage_source.h
virStorageFileAccess;
virStorageFileChainLookup;
@ -3210,10 +3214,6 @@ virStorageTypeFromString;
virStorageTypeToString;
# util/virstoragefilebackend.h
virStorageFileBackendRegister;
# util/virstoragefileprobe.h
virStorageFileProbeFormat;
virStorageFileProbeGetMetadata;

View File

@ -1,5 +1,6 @@
storage_file_sources = [
'storage_source.c',
'storage_file_backend.c',
]
stoarge_file_fs_sources = [

View File

@ -1,5 +1,5 @@
/*
* virstoragefilebackend.c: internal storage source backend contract
* storage_file_backend.c: internal storage source backend contract
*
* Copyright (C) 2007-2018 Red Hat, Inc.
* Copyright (C) 2007-2008 Daniel P. Berrange
@ -27,7 +27,7 @@
#include "virerror.h"
#include "viralloc.h"
#include "internal.h"
#include "virstoragefilebackend.h"
#include "storage_file_backend.h"
#include "virlog.h"
#include "virmodule.h"
#include "virfile.h"

View File

@ -1,5 +1,5 @@
/*
* virstoragefilebackend.h: internal storage source backend contract
* storage_file_backend.h: internal storage source backend contract
*
* Copyright (C) 2007-2018 Red Hat, Inc.
*

View File

@ -25,9 +25,9 @@
#include <fcntl.h>
#include "virerror.h"
#include "storage_file_backend.h"
#include "storage_file_backend_fs.h"
#include "storage_util.h"
#include "virstoragefilebackend.h"
#include "vircommand.h"
#include "viralloc.h"
#include "virfile.h"

View File

@ -23,12 +23,12 @@
#include <glusterfs/api/glfs.h>
#include "storage_file_backend.h"
#include "storage_file_backend_gluster.h"
#include "viralloc.h"
#include "virerror.h"
#include "virlog.h"
#include "virstoragefile.h"
#include "virstoragefilebackend.h"
#include "virstring.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE

View File

@ -25,6 +25,7 @@
#include <unistd.h>
#include "internal.h"
#include "storage_file_backend.h"
#include "storage_source.h"
#include "viralloc.h"
#include "virerror.h"
@ -34,7 +35,6 @@
#include "virlog.h"
#include "virobject.h"
#include "virstoragefile.h"
#include "virstoragefilebackend.h"
#include "virstoragefileprobe.h"
#include "virstring.h"
#include "viruri.h"

View File

@ -90,7 +90,6 @@ util_sources = [
'virsocketaddr.c',
'virstorageencryption.c',
'virstoragefile.c',
'virstoragefilebackend.c',
'virstoragefileprobe.c',
'virstring.c',
'virsysinfo.c',