Displaying 4 results from an estimated 4 matches for "errno_eno".
2015 Aug 24
3
[PATCH 1/3] ocaml: dynamically generate the content of Guestfs.Errno
...Generate the OCaml bindings interface. *)
let rec generate_ocaml_mli () =
generate_header OCamlStyle LGPLv2plus;
@@ -132,10 +140,12 @@ val last_errno : t -> int
which you can use to test the return value of {!Guestfs.last_errno}. *)
module Errno : sig
- val errno_EINVAL : int
- val errno_ENOTSUP : int
- val errno_EPERM : int
- val errno_ESRCH : int
+";
+ List.iter (
+ fun e ->
+ pr " val errno_%s : int\n" e
+ ) ocaml_errnos;
+ pr "\
end
";
@@ -287,14 +297,15 @@ external event_to_string : event list -> string
external last_errno : t ->...
2015 Aug 24
0
[PATCH 3/3] v2v: ignore missing kernels from grub (RHBZ#1230412)
...) installed_kernels in
Some kernel
- with Not_found -> None
+ with
+ | Not_found -> None
+ | G.Error msg as exn ->
+ (* If it isn't "no such file or directory", then re-raise it. *)
+ if g#last_errno () <> G.Errno.errno_ENOENT then raise exn;
+ warning (f_"ignoring kernel %s in grub, as it does not exist.")
+ vmlinuz;
+ None
) vmlinuzes in
if verbose () then (
--
2.1.0
2016 Sep 09
0
[PATCH] v2v: linux: Move kernel detection to a separate module.
...G.st_ino = s.G.st_ino
- ) installed_kernels in
- Some kernel
- with
- | Not_found -> None
- | G.Error msg as exn ->
- (* If it isn't "no such file or directory", then re-raise it. *)
- if g#last_errno () <> G.Errno.errno_ENOENT then raise exn;
- warning (f_"ignoring kernel %s in grub, as it does not exist.")
- vmlinuz;
- None
- ) vmlinuzes in
+ (* Detect which kernels are installed and offered by the bootloader. *)
+ let bootloader_kernels =
+ Linux_kernels.detect_kernels...
2016 Sep 09
2
[PATCH] v2v: linux: Move kernel detection to a separate module.
This is a sort of follow-up to the Linux_bootloaders patch.
It turns out all the kernel detection code is nicely self-
contained and can therefore be moved to its own module.
Rich.