Displaying 20 results from an estimated 72 matches for "input_format".
2017 Dec 08
1
Re: [PATCH v2 1/2] v2v: vddk: Switch to using ‘-it vddk’ to specify VDDK as input transport.
...--vddk-thumbprint xx:xx:xx:... \
> "Windows 2003" \
> -o local -os /var/tmp
>
> where only the two lines marked with ‘|’ have changed.
> ---
> [...]
> @@ -286,6 +289,12 @@ read the man page virt-v2v(1).
> let input_conn = !input_conn in
> let input_format = !input_format in
> let input_mode = !input_mode in
> + let input_transport =
> + match !input_transport with
> + | None -> None
> + | Some "vddk" -> Some `VDDK
> + | Some transport ->
> + error (f_"unknown input transport ‘-it %s’...
2015 Aug 11
0
[PATCH v2 15/17] v2v: add --in-place mode
...+++---------
2 files changed, 42 insertions(+), 10 deletions(-)
diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
index eaf57dc..8383ce8 100644
--- a/v2v/cmdline.ml
+++ b/v2v/cmdline.ml
@@ -32,6 +32,7 @@ let parse_cmdline () =
let do_copy = ref true in
let input_conn = ref "" in
let input_format = ref "" in
+ let in_place = ref false in
let machine_readable = ref false in
let output_conn = ref "" in
let output_format = ref "" in
@@ -147,6 +148,7 @@ let parse_cmdline () =
"-ic", Arg.Set_string input_conn, "uri " ^ s_&quo...
2016 Jul 18
3
[PATCH 1/2] v2v: register also aliases of input/output modules
...disk.ml | 5 ++++-
v2v/output_local.ml | 5 ++++-
v2v/output_rhev.ml | 5 ++++-
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index 17ad61d..508f16a 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -101,4 +101,7 @@ class input_disk input_format disk = object
end
let input_disk = new input_disk
-let () = Modules_list.register_input_module "disk"
+let () =
+ Modules_list.register_input_module "disk";
+ (* Alias *)
+ Modules_list.register_input_module "local"
diff --git a/v2v/output_local.ml b/v2v/output_...
2015 Oct 20
2
[PATCH v3 11/13] v2v: add --in-place mode
...+++++----------------
2 files changed, 70 insertions(+), 24 deletions(-)
diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
index 3e04c48..d4bddce 100644
--- a/v2v/cmdline.ml
+++ b/v2v/cmdline.ml
@@ -36,6 +36,7 @@ let parse_cmdline () =
let dcpath = ref None in
let input_conn = ref None in
let input_format = ref None in
+ let in_place = ref false in
let output_conn = ref None in
let output_format = ref None in
let output_name = ref None in
@@ -159,6 +160,7 @@ let parse_cmdline () =
"uri " ^ s_"Libvirt URI";
"-if"...
2023 Mar 07
1
[V2V PATCH v2 5/5] v2v, in-place: introduce --block-driver command line option
.../in_place.ml b/in-place/in_place.ml
index 2049db16..e8c260c2 100644
--- a/in-place/in_place.ml
+++ b/in-place/in_place.ml
@@ -43,6 +43,7 @@ let rec main () =
let bandwidth = ref None in
let bandwidth_file = ref None in
+ let block_driver = ref None in
let input_conn = ref None in
let input_format = ref None in
let input_password = ref None in
@@ -156,6 +157,8 @@ let rec main () =
let argspec = [
[ S 'b'; L"bridge" ], Getopt.String ("in:out", add_bridge),
s_"Map bridge ?in? to ?out?";
+ [ L"block-dr...
2023 Mar 10
2
[V2V PATCH v3 5/6] v2v, in-place: introduce --block-driver command line option
.../in_place.ml b/in-place/in_place.ml
index 2049db16..e8c260c2 100644
--- a/in-place/in_place.ml
+++ b/in-place/in_place.ml
@@ -43,6 +43,7 @@ let rec main () =
let bandwidth = ref None in
let bandwidth_file = ref None in
+ let block_driver = ref None in
let input_conn = ref None in
let input_format = ref None in
let input_password = ref None in
@@ -156,6 +157,8 @@ let rec main () =
let argspec = [
[ S 'b'; L"bridge" ], Getopt.String ("in:out", add_bridge),
s_"Map bridge ?in? to ?out?";
+ [ L"block-dr...
2015 Jan 26
0
[PATCH] oggenc: do not use stack variable out of its scope of validity
...---
oggenc/oggenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/oggenc/oggenc.c b/oggenc/oggenc.c
index ea105b2..323dedb 100644
--- a/oggenc/oggenc.c
+++ b/oggenc/oggenc.c
@@ -239,7 +239,7 @@ int main(int argc, char **argv)
if(opt.rawmode)
{
- input_format raw_format = {NULL, 0, raw_open, wav_close, "raw",
+ static input_format raw_format = {NULL, 0, raw_open, wav_close, "raw",
N_("RAW file reader")};
enc_opts.rate=opt.raw_samplerate;
--
2.1.0
2016 Aug 08
1
[PATCH] v2v: disk: strip only common extension (RHBZ#1365005)
...it's a very well extension for disk images.
---
v2v/input_disk.ml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index 17ad61d..939a16b 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -42,9 +42,13 @@ class input_disk input_format disk = object
* the filename passed in. Users can override this using the
* `-on name' option.
*)
- let name = Filename.basename disk in
let name =
- try Filename.chop_extension name with Invalid_argument _ -> name in
+ let name = Filename.basename disk i...
2016 Aug 08
1
[PATCH v2] v2v: disk: strip only common extension (RHBZ#1365005)
...very well extension for disk images.
---
v2v/input_disk.ml | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index 17ad61d..d56c476 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -42,9 +42,23 @@ class input_disk input_format disk = object
* the filename passed in. Users can override this using the
* `-on name' option.
*)
- let name = Filename.basename disk in
let name =
- try Filename.chop_extension name with Invalid_argument _ -> name in
+ let name = Filename.basename disk i...
2015 Oct 21
2
[PATCH] v2v: use open_guestfs everywhere
...set_verbose true;
g2#add_drive_opts virtio_win ~readonly:true;
g2#launch ();
let vio_root = "/" in
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index 970f552..4b75262 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -60,7 +60,7 @@ class input_disk input_format disk = object
match input_format with
| Some format -> format
| None ->
- match (new Guestfs.guestfs ())#disk_format disk with
+ match (open_guestfs ())#disk_format disk with
| "unknown" ->
error (f_"cannot detect the in...
2016 Aug 08
1
[PATCH] sparsify, v2v: use Common_utils.absolute_path
...k = absolute_path indisk in
(* Check the output is not a char special (RHBZ#1056290). *)
if is_char_device outdisk then
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index d56c476..3926602 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -63,9 +63,7 @@ class input_disk input_format disk = object
error (f_"-i disk: invalid input filename (%s)") disk;
(* Get the absolute path to the disk file. *)
- let disk_absolute =
- if not (Filename.is_relative disk) then disk
- else Sys.getcwd () // disk in
+ let disk_absolute = absolute_path disk in...
2015 Oct 20
5
[PATCH v4 0/3] v2v: add --in-place mode
This series is an attempt to add a mode of virt-v2v operation where it
leaves the config and disk image conversion, rollback on errors,
registering with the destination hypervisor, etc. to a third-party
toolset, and performs only tuning of the guest OS to run in the
KVM-based hypervisor.
Roman Kagan (3):
v2v: add --in-place mode
v2v: document --in-place
v2v: add test for --in-place
---
2016 Sep 09
0
[PATCH 1/2] v2v: -i disk: Move code that creates name from disk to separate module.
...\
+ name_from_disk.ml \
vCenter.ml \
domainxml.ml \
DOM.ml \
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index 3926602..e07222f 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -23,6 +23,7 @@ open Common_utils
open Types
open Utils
+open Name_from_disk
class input_disk input_format disk = object
inherit input
@@ -42,25 +43,7 @@ class input_disk input_format disk = object
* the filename passed in. Users can override this using the
* `-on name' option.
*)
- let name =
- let name = Filename.basename disk in
- (* Remove the extension (or suf...
2017 Dec 07
1
v2v: vddk: Switch to using ‘-it vddk’ to specify VDDK as input transport.
Proposed small change to the command line of virt-v2v when specifying
that you want VDDK mode.
Rich.
2017 Dec 08
0
[PATCH v2 1/2] v2v: vddk: Switch to using ‘-it vddk’ to specify VDDK as input transport.
....pod | 30 +++++++++++++++------
8 files changed, 126 insertions(+), 81 deletions(-)
diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
index a452458a1..719e6f057 100644
--- a/v2v/cmdline.ml
+++ b/v2v/cmdline.ml
@@ -57,15 +57,16 @@ let parse_cmdline () =
let input_conn = ref None in
let input_format = ref None in
+ let input_transport = ref None in
let in_place = ref false in
let output_conn = ref None in
let output_format = ref None in
let output_name = ref None in
let output_storage = ref None in
let password_file = ref None in
- let vddk = ref None in
let vddk_config...
2015 Oct 21
0
Re: [PATCH] v2v: use open_guestfs everywhere
...rive_opts virtio_win ~readonly:true;
> g2#launch ();
> let vio_root = "/" in
> diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
> index 970f552..4b75262 100644
> --- a/v2v/input_disk.ml
> +++ b/v2v/input_disk.ml
> @@ -60,7 +60,7 @@ class input_disk input_format disk = object
> match input_format with
> | Some format -> format
> | None ->
> - match (new Guestfs.guestfs ())#disk_format disk with
> + match (open_guestfs ())#disk_format disk with
> | "unknown" ->
>...
2016 Jul 19
2
[PATCH v2 1/2] v2v: register also aliases of input/output modules
...st.mli | 8 ++++----
v2v/output_local.ml | 2 +-
v2v/output_rhev.ml | 2 +-
5 files changed, 28 insertions(+), 11 deletions(-)
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index 17ad61d..d21815d 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -101,4 +101,4 @@ class input_disk input_format disk = object
end
let input_disk = new input_disk
-let () = Modules_list.register_input_module "disk"
+let () = Modules_list.register_input_module ~alias:"local" "disk"
diff --git a/v2v/modules_list.ml b/v2v/modules_list.ml
index 36a08c0..5649b02 100644
--- a/v2v/m...
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 Feb 09
0
[PATCH 1/4] v2v: collect source network and video adapter types
...39; vram='65536' vgamem='16384' heads='1'/>
+ </video>
</devices>
</domain>
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index 1cb6713..17ad61d 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -75,6 +75,7 @@ class input_disk input_format disk = object
(* Give the guest a simple generic network interface. *)
let network = {
s_mac = None;
+ s_nic_model = None;
s_vnet = "default"; s_vnet_orig = "default";
s_vnet_type = Network
} in
@@ -89,6 +90,7 @@ class input_disk input_fo...
2016 Mar 18
0
[PATCH v4 1/5] v2v: collect source network and video adapter types
...39; vram='65536' vgamem='16384' heads='1'/>
+ </video>
</devices>
</domain>
diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml
index 1cb6713..17ad61d 100644
--- a/v2v/input_disk.ml
+++ b/v2v/input_disk.ml
@@ -75,6 +75,7 @@ class input_disk input_format disk = object
(* Give the guest a simple generic network interface. *)
let network = {
s_mac = None;
+ s_nic_model = None;
s_vnet = "default"; s_vnet_orig = "default";
s_vnet_type = Network
} in
@@ -89,6 +90,7 @@ class input_disk input_fo...