search for: errno_enoent

Displaying 4 results from an estimated 4 matches for "errno_enoent".

2015 Aug 24
3
[PATCH 1/3] ocaml: dynamically generate the content of Guestfs.Errno
Put in a list the errnos to expose, filling the content of the Guestfs.Errno submodule from that. Also, generate a separate guestfs-c-errnos.c with the implementations of the functions returning the errno codes. Only code motion and refactoring, no actual changes on the content of the ocaml Guestfs module. --- .gitignore | 1 + generator/main.ml | 1 + generator/ocaml.ml | 77
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 g i...
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.