search for: 937ef818b

Displaying 3 results from an estimated 3 matches for "937ef818b".

2017 Apr 12
0
[PATCH v6 07/10] dib: move do_cp to mllib.Commun_utils
...caml_handle) + +let do_cp src destdir = + let cmd = [ "cp"; "-t"; destdir; "-a"; src ] in + if run_command cmd <> 0 then + error (f_"copy of %s to %s failed") src destdir diff --git a/mllib/common_utils.mli b/mllib/common_utils.mli index ec41a8ff8..937ef818b 100644 --- a/mllib/common_utils.mli +++ b/mllib/common_utils.mli @@ -496,3 +496,6 @@ val inspect_decrypt : Guestfs.guestfs -> unit (** Simple implementation of decryption: look for any [crypto_LUKS] partitions and decrypt them, then rescan for VGs. This only works for Fedora whole-di...
2017 Apr 12
0
[PATCH v6 08/10] mllib: add do_mv helper function to Common_utils
...ailed") src destdir + +let do_mv src dest = + let cmd = [ "mv"; src; dest ] in + let r = run_command cmd in + if r <> 0 then + error (f_"moving file '%s' to '%s' failed") src dest diff --git a/mllib/common_utils.mli b/mllib/common_utils.mli index 937ef818b..64a0e8b9a 100644 --- a/mllib/common_utils.mli +++ b/mllib/common_utils.mli @@ -499,3 +499,6 @@ val inspect_decrypt : Guestfs.guestfs -> unit val do_cp : string -> string -> unit (** Run the cp command, and exit with an error if it failed *) + +val do_mv : string -> string -> uni...
2017 Apr 12
12
[PATCH v6 00/10] Add a virt-builder-repository tool
Hi all, Here is an updated version of that patch series. Diff to v5: * Apply Pino's comments * Fix indentation issues * Add a default value for arch in builder/index_parser.ml if template is set * Improved new images filtering: don't process image that didn't change. This has been uncovered by introduction of --no-compression Cédric Bosdonnat (10): lib/osinfo.c: