Displaying 3 results from an estimated 3 matches for "73caf34".
2016 Sep 09
5
[PATCH 0/2] v2v: -i ova: Derive the name from the OVA filename.
Don't use "default", choose a better default name if <Name> is not
present in the OVF.
Rich.
2016 Sep 09
0
[PATCH 2/2] v2v: -i ova: Derive the name from the OVA filename.
...| None | Some "" ->
warning (f_"could not parse ovf:Name from OVF document");
- "default"
+ name_from_disk ova
| Some name -> name in
(* Search for memory. *)
diff --git a/v2v/name_from_disk.ml b/v2v/name_from_disk.ml
index 73caf34..878b7c6 100644
--- a/v2v/name_from_disk.ml
+++ b/v2v/name_from_disk.ml
@@ -26,6 +26,7 @@ let name_from_disk disk =
let suffixes = [
".img"; ".qcow2"; ".raw"; ".vmdk";
"-sda";
+ ".ova";
] in
let rec loop = function...
2016 Sep 09
0
[PATCH 1/2] v2v: -i disk: Move code that creates name from disk to separate module.
...error (f_"-i disk: invalid input filename (%s)") disk;
+ let name = name_from_disk disk in
(* Get the absolute path to the disk file. *)
let disk_absolute = absolute_path disk in
diff --git a/v2v/name_from_disk.ml b/v2v/name_from_disk.ml
new file mode 100644
index 0000000..73caf34
--- /dev/null
+++ b/v2v/name_from_disk.ml
@@ -0,0 +1,41 @@
+(* virt-v2v
+ * Copyright (C) 2009-2016 Red Hat Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; ei...