X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Fgenerator.ml;h=9393bdec725f143883c6a7e9d07f4069d164617c;hb=dd922bedb7c3e85fbbe1eed10e371aec47138a1d;hp=08c28fc7c70785c0c204ae74faba38b45e91f6ae;hpb=9c5f05ec14655195fc94dc7c72d132087abe634b;p=libguestfs.git diff --git a/src/generator.ml b/src/generator.ml index 08c28fc..9393bde 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -3560,6 +3560,15 @@ an external journal on the journal with UUID C. See also C."); + ("modprobe", (RErr, [String "module"]), 194, [], + [InitNone, Always, TestRun [["modprobe"; "ext2"]]], + "load a kernel module", + "\ +This loads a kernel module in the appliance. + +The kernel module must have been whitelisted when libguestfs +was built (see C in the source)."); + ] let all_functions = non_daemon_functions @ daemon_functions @@ -3822,6 +3831,10 @@ let pod2text_memo : ((int * string * string), string list) Hashtbl.t = v with _ -> Hashtbl.create 13 +let pod2text_memo_updated () = + let chan = open_out pod2text_memo_filename in + output_value chan pod2text_memo; + close_out chan (* Useful functions. * Note we don't want to use any external OCaml libraries which @@ -4528,7 +4541,7 @@ and generate_client_actions () = static int check_reply_header (guestfs_h *g, const struct guestfs_message_header *hdr, - int proc_nr, int serial) + unsigned int proc_nr, unsigned int serial) { if (hdr->prog != GUESTFS_PROGRAM) { error (g, \"wrong program (%%d/%%d)\", hdr->prog, GUESTFS_PROGRAM); @@ -7972,9 +7985,7 @@ and pod2text ~width name longdesc = failwithf "pod2text: process signalled or stopped by signal %d" i ); Hashtbl.add pod2text_memo key lines; - let chan = open_out pod2text_memo_filename in - output_value chan pod2text_memo; - close_out chan; + pod2text_memo_updated (); lines (* Generate ruby bindings. *)