]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storagefile: Make GetMetadataInternal static
authorCole Robinson <crobinso@redhat.com>
Sat, 5 Oct 2019 19:17:48 +0000 (15:17 -0400)
committerCole Robinson <crobinso@redhat.com>
Fri, 11 Oct 2019 17:41:21 +0000 (13:41 -0400)
It is only used in virstoragefile.c

Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/libvirt_private.syms
src/util/virstoragefile.c
src/util/virstoragefile.h

index 5949cba08d6b2e55ddef7fac63c6953a18c55e7f..ecfbfc8d7f624295fbf5aa9685122b07d4e4b285 100644 (file)
@@ -2988,7 +2988,6 @@ virStorageFileGetLVMKey;
 virStorageFileGetMetadata;
 virStorageFileGetMetadataFromBuf;
 virStorageFileGetMetadataFromFD;
-virStorageFileGetMetadataInternal;
 virStorageFileGetNPIVKey;
 virStorageFileGetRelativeBackingPath;
 virStorageFileGetSCSIKey;
index 3201f57e62af5526249253e4896f4b56e5b3d029..51726006e7fd07e6177f1f987fef77cb2bfcc0f3 100644 (file)
@@ -970,7 +970,7 @@ virStorageFileGetEncryptionPayloadOffset(const struct FileEncryptionInfo *info,
  * Note that this function may be called repeatedly on @meta, so it must
  * clean up any existing allocated memory which would be overwritten.
  */
-int
+static int
 virStorageFileGetMetadataInternal(virStorageSourcePtr meta,
                                   char *buf,
                                   size_t len,
index 81b83a53ef624c5be8f9a0c097766ea7fa9ff2e3..2472d89c8588fc42f53298c4f9c3f9a4df2ba4bf 100644 (file)
@@ -346,12 +346,6 @@ struct _virStorageSource {
 
 int virStorageFileProbeFormat(const char *path, uid_t uid, gid_t gid);
 
-int virStorageFileGetMetadataInternal(virStorageSourcePtr meta,
-                                      char *buf,
-                                      size_t len,
-                                      int *backingFormat)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
-
 virStorageSourcePtr virStorageFileGetMetadataFromFD(const char *path,
                                                     int fd,
                                                     int format,