Displaying 20 results from an estimated 60 matches for "guestfs_sh_lines".
2020 Aug 27
1
Re: Weird results from g.sh()
...> >
> > However, "g.command([self.mkconfig, '-o', self.config])" shouldn't
> > have the appliances /sys available (I looked briefly in command.c and
> > I don't see the same bind-mount code), or maybe I'm missing something.
>
> guestfs_sh, guestfs_sh_lines, guestfs_command, guestfs_command_lines
> all attempt to bind-mount /sys and other directories into the chroot
> while running the command. (See daemon/sh.c)
>
> Anyway I misunderstood before - I thought you were trying to run grub
> to install the bootloader. Running grub2-mkconfi...
2020 Aug 27
2
Re: Weird results from g.sh()
On Thu, Aug 27, 2020 at 11:08 AM Richard W.M. Jones <rjones@redhat.com> wrote:
>
> On Thu, Aug 27, 2020 at 10:50:12AM +0300, Sam Eiderman wrote:
> > Hi,
> >
> > I'm using libguestfs 1.42,
> >
> > When I run the following python3 commands on a rhel7.8:
> >
> > print(g.ls('/sys'))
> > []
>
> This lists the files in /sys in
2020 Aug 27
0
Re: Weird results from g.sh()
...s
> for g.sh() commands.
>
> However, "g.command([self.mkconfig, '-o', self.config])" shouldn't
> have the appliances /sys available (I looked briefly in command.c and
> I don't see the same bind-mount code), or maybe I'm missing something.
guestfs_sh, guestfs_sh_lines, guestfs_command, guestfs_command_lines
all attempt to bind-mount /sys and other directories into the chroot
while running the command. (See daemon/sh.c)
Anyway I misunderstood before - I thought you were trying to run grub
to install the bootloader. Running grub2-mkconfig as done in virt-v2v
sh...
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of
local disk.
Rich.
2017 Oct 03
0
[PATCH v2 1/2] daemon: Reimplement statvfs API in OCaml.
.../stat.c
-daemon/statvfs.c
daemon/strings.c
daemon/structs-cleanups.c
daemon/structs-cleanups.h
diff --git a/generator/actions_core.ml b/generator/actions_core.ml
index 81cb99ea8..604620673 100644
--- a/generator/actions_core.ml
+++ b/generator/actions_core.ml
@@ -2319,6 +2319,7 @@ See also: C<guestfs_sh_lines>" };
{ defaults with
name = "statvfs"; added = (1, 9, 2);
style = RStruct ("statbuf", "statvfs"), [String (Pathname, "path")], [];
+ impl = OCaml "Statvfs.statvfs";
tests = [
InitISOFS, Always, TestResult (...
2017 Oct 04
2
[PATCH v3 0/2] builder: Choose better weights in the planner.
v2 -> v3:
- Drop gnulib fallback.
2017 Oct 02
3
[PATCH 0/2] builder: Choose better weights in the planner.
It started out as "this'll be just a simple fix ..."
and turned into something a bit over-engineered in the end.
Here it is anyway.
Rich.
2017 Oct 03
4
[PATCH v2 0/2] builder: Choose better weights in the planner.
v1 -> v2:
- Removed the f_type field from StatVFS.statvfs structure.
- New function StatVFS.filesystem_is_remote, written in C.
[Thinking about it, this should probably be called
?is_network_filesystem?, but I can change that before
pushing].
- Use statvfs instead of fstatvfs, and statfs instead of fstatfs.
- Rejigged the comments in builder/builder.ml to make them simpler
2014 Sep 22
2
[PATCH] New APIs: Implement stat calls that return nanosecond timestamps (RHBZ#1144891).
...at if C<path>
+is a symbolic link, then the link is stat-ed, not the file it
+refers to.
+
+This is the same as the C<lstat(2)> system call." };
+
]
(* daemon_functions are any functions which cause some action
@@ -4347,38 +4399,6 @@ result into a list of lines.
See also: C<guestfs_sh_lines>" };
{ defaults with
- name = "stat";
- style = RStruct ("statbuf", "stat"), [Pathname "path"], [];
- proc_nr = Some 52;
- tests = [
- InitISOFS, Always, TestResult (
- [["stat"; "/empty"]], "ret-&...
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in:
https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html
Rich.
2009 Aug 12
23
[PATCH 0/23] factor and const-correctness
This started as a simple warning-elimination change.
I'll get back to that series shortly ;-)
It turned into a factorization and constification exercise
during which I got a taste of ocaml. Thanks to Rich Jones
for help with a few snippets in generator.ml.
The overall result is that many previously-manually-maintained
bits from daemon/*.c functions are now hoisted into the automatically-
2017 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
...uot;lines", [StringList "arguments"], [];
+ style = RStringList "lines", [StringList (PlainString, "arguments")], [];
protocol_limit_warning = true;
tests = [
InitScratchFS, IfNotCrossAppliance, TestResult (
@@ -2536,7 +2536,7 @@ See also: C<guestfs_sh_lines>" };
{ defaults with
name = "statvfs"; added = (1, 9, 2);
- style = RStruct ("statbuf", "statvfs"), [Pathname "path"], [];
+ style = RStruct ("statbuf", "statvfs"), [String (Pathname, "path")], [];
te...
2017 Apr 21
4
[PATCH 0/2] generator: Simplify the handling of string parameters.
Very large but mechanical change to the generator.
Rich.
2010 Dec 07
0
builder-debian libguestfs FAILED tests 4c5038ab54fb6fdff75ca8d5fdda9e73f48a5050
...ts
warning: "guestfs_sfdisk_l" has no tests
warning: "guestfs_sfdisk_kernel_geometry" has no tests
warning: "guestfs_sfdisk_disk_geometry" has no tests
warning: "guestfs_vg_activate_all" has no tests
warning: "guestfs_sh" has no tests
warning: "guestfs_sh_lines" has no tests
warning: "guestfs_scrub_freespace" has no tests
warning: "guestfs_df" has no tests
warning: "guestfs_df_h" has no tests
warning: "guestfs_mount_loop" has no tests
warning: "guestfs_readdir" has no tests
warning: "guestfs_sfdi...
2010 Dec 24
0
builder-debian libguestfs success 3f4dc56a32074a02b1b829bd7a91878f73022d1d
...ts
warning: "guestfs_sfdisk_l" has no tests
warning: "guestfs_sfdisk_kernel_geometry" has no tests
warning: "guestfs_sfdisk_disk_geometry" has no tests
warning: "guestfs_vg_activate_all" has no tests
warning: "guestfs_sh" has no tests
warning: "guestfs_sh_lines" has no tests
warning: "guestfs_scrub_freespace" has no tests
warning: "guestfs_df" has no tests
warning: "guestfs_df_h" has no tests
warning: "guestfs_mount_loop" has no tests
warning: "guestfs_readdir" has no tests
warning: "guestfs_sfdi...
2011 Jan 07
0
builder-debian libguestfs success 7e1114445e713c4a15f3f2cede5842044de1735a
...ts
warning: "guestfs_sfdisk_l" has no tests
warning: "guestfs_sfdisk_kernel_geometry" has no tests
warning: "guestfs_sfdisk_disk_geometry" has no tests
warning: "guestfs_vg_activate_all" has no tests
warning: "guestfs_sh" has no tests
warning: "guestfs_sh_lines" has no tests
warning: "guestfs_scrub_freespace" has no tests
warning: "guestfs_df" has no tests
warning: "guestfs_df_h" has no tests
warning: "guestfs_mount_loop" has no tests
warning: "guestfs_readdir" has no tests
warning: "guestfs_sfdi...
2010 Dec 24
1
builder-ubuntu libguestfs success 3f4dc56a32074a02b1b829bd7a91878f73022d1d
...ts
warning: "guestfs_sfdisk_l" has no tests
warning: "guestfs_sfdisk_kernel_geometry" has no tests
warning: "guestfs_sfdisk_disk_geometry" has no tests
warning: "guestfs_vg_activate_all" has no tests
warning: "guestfs_sh" has no tests
warning: "guestfs_sh_lines" has no tests
warning: "guestfs_scrub_freespace" has no tests
warning: "guestfs_df" has no tests
warning: "guestfs_df_h" has no tests
warning: "guestfs_mount_loop" has no tests
warning: "guestfs_readdir" has no tests
warning: "guestfs_sfdi...
2010 Dec 07
0
builder-debian libguestfs success 4b8f70d46dcfed1489c97f822e263b8615f21ea0
...ts
warning: "guestfs_sfdisk_l" has no tests
warning: "guestfs_sfdisk_kernel_geometry" has no tests
warning: "guestfs_sfdisk_disk_geometry" has no tests
warning: "guestfs_vg_activate_all" has no tests
warning: "guestfs_sh" has no tests
warning: "guestfs_sh_lines" has no tests
warning: "guestfs_scrub_freespace" has no tests
warning: "guestfs_df" has no tests
warning: "guestfs_df_h" has no tests
warning: "guestfs_mount_loop" has no tests
warning: "guestfs_readdir" has no tests
warning: "guestfs_sfdi...
2010 Dec 08
0
builder-ubuntu libguestfs success 4e8ad174cadf9e75401b7fa0d380d4c84c29c9ec
...ts
warning: "guestfs_sfdisk_l" has no tests
warning: "guestfs_sfdisk_kernel_geometry" has no tests
warning: "guestfs_sfdisk_disk_geometry" has no tests
warning: "guestfs_vg_activate_all" has no tests
warning: "guestfs_sh" has no tests
warning: "guestfs_sh_lines" has no tests
warning: "guestfs_scrub_freespace" has no tests
warning: "guestfs_df" has no tests
warning: "guestfs_df_h" has no tests
warning: "guestfs_mount_loop" has no tests
warning: "guestfs_readdir" has no tests
warning: "guestfs_sfdi...
2011 Jan 04
0
builder-debian libguestfs success 7ce627fce02eae8c7db36b4090fa0ce1bf69bf44
...ts
warning: "guestfs_sfdisk_l" has no tests
warning: "guestfs_sfdisk_kernel_geometry" has no tests
warning: "guestfs_sfdisk_disk_geometry" has no tests
warning: "guestfs_vg_activate_all" has no tests
warning: "guestfs_sh" has no tests
warning: "guestfs_sh_lines" has no tests
warning: "guestfs_scrub_freespace" has no tests
warning: "guestfs_df" has no tests
warning: "guestfs_df_h" has no tests
warning: "guestfs_mount_loop" has no tests
warning: "guestfs_readdir" has no tests
warning: "guestfs_sfdi...