search for: module_name_r

Displaying 2 results from an estimated 2 matches for "module_name_r".

Did you mean: module_name_re
2018 Jun 21
0
[PATCH v2] p2v: Allow virt-v2v input and output drivers containing '-' (RHBZ#1590220).
...ist.ml @@ -21,8 +21,15 @@ open Std_utils let input_modules = ref [] and output_modules = ref [] -let register_input_module name = List.push_front name input_modules -and register_output_module name = List.push_front name output_modules +(* Must match the regular expressions in p2v/ssh.c *) +let module_name_re = PCRE.compile ~anchored:true "[-\\w]+" + +let register_input_module name = + assert (PCRE.matches module_name_re name); + List.push_front name input_modules +and register_output_module name = + assert (PCRE.matches module_name_re name); + List.push_front name output_modules let i...
2018 Jun 21
2
p2v: Allow virt-v2v input and output drivers containing '-' (RHBZ#1590220).
v1 was here: https://www.redhat.com/archives/libguestfs/2018-June/msg00047.html v1 -> v2: - Add a regular expression in the virt-v2v modules code too. - - - I was planning a much more ambitious second version of this patch (half written too) which had: virt-v2v --describe-modules that listed a big chunk of XML which virt-p2v would parse. These would include the names of the