Displaying 2 results from an estimated 2 matches for "create_chroot".
2017 Jul 19
2
Re: [PATCH 03/27] daemon: Reimplement ‘file’ API in OCaml.
...GUESTFSD_EXT_CMD.
> + if not is_dev then (
> + let sysroot = Sysroot.sysroot () in
> + let chroot = Chroot.create sysroot ~name:(sprintf "file: %s" path) in
I notice this pattern done every time, and IMHO it could be simplified:
in utils.ml(i), add something like:
let create_chroot ?name () =
Chroot.create (Sysroot.sysroot ()) ?name
this way it can be used like:
let chroot = create_chroot ~name:(sprintf "file: %s" path) in
> +
> + let statbuf = Chroot.f chroot lstat path in
Hm is chroot needed for this? The current C implementation does not
use C...
2017 Jul 14
45
[PATCH 00/27] Reimplement many daemon APIs in OCaml.
Previously posted as part of the mega utilities/inspection
series here:
https://www.redhat.com/archives/libguestfs/2017-June/msg00232.html
What I've done is to extract just the parts related to rewriting
daemon APIs in OCaml, rebase them on top of the current master, fix a
few things, and recompile and test everything.
Rich.