Blame SOURCES/0010-lib-Remove-Utils.metaversion.patch

7bddab
From 67ebe6585e7db9cfc1f01de9777f780db42868f2 Mon Sep 17 00:00:00 2001
7bddab
From: "Richard W.M. Jones" <rjones@redhat.com>
7bddab
Date: Tue, 22 Mar 2022 13:39:57 +0000
7bddab
Subject: [PATCH] lib: Remove Utils.metaversion
7bddab
7bddab
This was used before we turned the helpers into OCaml modules but is
7bddab
now dead code, remove it.
7bddab
7bddab
Fixes: commit 4de22686fe74e1711efd9bfed3f663b67e7ad69e
7bddab
Fixes: commit 724ecb5e887e5b71db836143ec0c0d8a20b05903
7bddab
Fixes: commit 5609c73c615a8f12c5c6d50908bb4761bdc16173
7bddab
(cherry picked from commit c208bc97d863aa43857c72608a1fc57ab50047ed)
7bddab
---
7bddab
 lib/utils.ml  |  2 --
7bddab
 lib/utils.mli | 11 -----------
7bddab
 2 files changed, 13 deletions(-)
7bddab
7bddab
diff --git a/lib/utils.ml b/lib/utils.ml
7bddab
index 7b16dd8b..4f0ff67a 100644
7bddab
--- a/lib/utils.ml
7bddab
+++ b/lib/utils.ml
7bddab
@@ -164,8 +164,6 @@ let rec wait_for_file filename timeout =
7bddab
     wait_for_file filename (timeout-1)
7bddab
   )
7bddab
 
7bddab
-let metaversion = Digest.to_hex (Digest.string Config.package_version_full)
7bddab
-
7bddab
 let with_nbd_connect_unix ?(meta_contexts = []) ~socket f =
7bddab
   let nbd = NBD.create () in
7bddab
   protect
7bddab
diff --git a/lib/utils.mli b/lib/utils.mli
7bddab
index 76a2ec8c..3f8e4b3c 100644
7bddab
--- a/lib/utils.mli
7bddab
+++ b/lib/utils.mli
7bddab
@@ -67,17 +67,6 @@ val wait_for_file : string -> int -> bool
7bddab
 (** [wait_for_file filename timeout] waits up to [timeout] seconds for
7bddab
     [filename] to appear.  It returns [true] if the file appeared. *)
7bddab
 
7bddab
-val metaversion : string
7bddab
-(** When writing the metadata files between versions we serialize this
7bddab
-    string first to ensure the binary metadata blob is compatible.
7bddab
-
7bddab
-    This prevents mixing and matching helpers between incompatible
7bddab
-    versions of virt-v2v (which could cause a crash) and discourages
7bddab
-    people from trying to write their own metadata.
7bddab
-
7bddab
-    Eventually we may switch to using an "open metadata" format instead
7bddab
-    (eg. XML). *)
7bddab
-
7bddab
 val with_nbd_connect_unix : ?meta_contexts:string list ->
7bddab
                             socket:string ->
7bddab
                             (NBD.t -> 'a) ->
7bddab
-- 
7bddab
2.31.1
7bddab