search for: find0

Displaying 20 results from an estimated 87 matches for "find0".

Did you mean: find
2012 Mar 02
0
[virt-tools-list] find0 in (perl) Sys::Guestfs
On Tue, Jan 31, 2012 at 01:29:58PM -0800, dan farmer wrote: > Is there anyway to convince find0 to put the results in memory rather than > writing to a file? I really don't want to have to write it to a file and > then read it again just to process the results. I see guestfish has an > option to write to stdout (but the lib doesn't have a documented way) for > some reaso...
2015 Nov 05
1
[PATCH 1/2] test-data: phony-guests: Don't use *.tmp.* temporary files.
--- test-data/phony-guests/Makefile.am | 3 +-- test-data/phony-guests/make-archlinux-img.sh | 4 ++-- test-data/phony-guests/make-coreos-img.sh | 10 ++++---- test-data/phony-guests/make-debian-img.sh | 10 ++++---- test-data/phony-guests/make-fedora-img.pl | 34 ++++++++++++++-------------- test-data/phony-guests/make-ubuntu-img.sh | 14 ++++++------
2016 Jun 13
1
[PATCH] customize: Give an error if --truncate-recursive path does not exist (RHBZ#1345809).
You will now see an error such as: $ virt-customize -a centos-6.img --truncate-recursive /home/foo [ 0.0] Examining the guest ... [ 16.5] Setting a random seed [ 16.5] Recursively truncating: /home/foo virt-customize: error: libguestfs error: find0: /home/foo: No such file or directory Thanks: Xianghua Chen --- mllib/common_utils.ml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml index dfffae3..9765a79 100644 --- a/mllib/common_utils.ml +++ b/mllib/common_utils.ml...
2009 Oct 19
4
[PATCH 1/3] Add guestfs_find0 API call which doesn't have limits
...find API call contains an undocumented limit: It needs to marshall the whole list of filenames into a single protocol message. Unfortunately just about any Linux guest breaks this limit if you try 'guestfs_find ("/")' so this isn't much use. These patches add a new API call (find0) which breaks this limit by using a FileOut parameter. It's slightly harder to use than guestfs_find, but better suited to program cases (guestfs_find remains, of course). We also update virt-ls to use this in the 'virt-ls -R' case. Rich. -- Richard Jones, Virtualization Group, Red...
2016 Feb 11
1
[PATCH] fish, sysprep: run FUSE-related tests only when FUSE is available
...ort is built in. --- fish/Makefile.am | 6 +++++- sysprep/Makefile.am | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/fish/Makefile.am b/fish/Makefile.am index fc7c729..5ffa0f1 100644 --- a/fish/Makefile.am +++ b/fish/Makefile.am @@ -297,7 +297,6 @@ TESTS += \ test-find0.sh \ test-inspect.sh \ test-glob.sh \ - test-mount-local.sh \ test-prep.sh \ test-read-file.sh \ test-remote.sh \ @@ -306,6 +305,11 @@ TESTS += \ test-run.sh \ test-stringlist.sh \ test-upload-to-dir.sh + +if HAVE_FUSE +TESTS += \ + test-mount-local.sh +endif endif check-valgrin...
2017 Jun 26
5
Re: a question about multithreading with libguestfs
...Kozover wrote: > I'd like to ask you, please, about multithreading with libguestfs. > I'm using libguestfs 1.36.4 with Perl front-end. > > Should it be possible to have the same libguestfs appliance provide both > fuse interface and periodically perform some longer APIs like find0? > > I mean make one Perl thread do mount_local_run and another thread > periodically run find0 that executes simultaneously with fuse (hopefully > not blocking fuse functionality internally until find0 exits)? Unfortunately not, and as you discovered it will (currently) crash. > W...
2012 Jan 16
1
[PATCH] generator: Add an explicit Cancellable flag
...ory"; FileOut "tarball"], []), 72, + [Cancellable], [], "pack directory into compressed tarball", "\ @@ -4688,7 +4694,8 @@ You can use this command to test the connection through to the daemon. See also C<guestfs_ping_daemon>."); - ("find0", (RErr, [Pathname "directory"; FileOut "files"], []), 196, [], + ("find0", (RErr, [Pathname "directory"; FileOut "files"], []), 196, + [Cancellable], [], (* There is a regression test for this. *) "find all files and directorie...
2009 Oct 20
2
[PATCH 0/2] virt-tar and virt-ls
These are general updates to: https://www.redhat.com/archives/libguestfs/2009-October/msg00037.html [Libguestfs] [PATCH 4/5] New tool: virt-tar and: https://www.redhat.com/archives/libguestfs/2009-October/msg00038.html [Libguestfs] [PATCH 5/5] New tool: virt-ls The code uses die "prog: ...\n". The parameters to virt-tar are swapped so they always go in source -> destination
2013 Aug 02
0
Windows Image File Manipulation
On Thu, Aug 01, 2013 at 11:31:04PM -0400, Adam Schneider wrote: > Does guestfs for Python support accessing an image file in this manner? Yes. See: http://libguestfs.org/guestfs-python.3.html#example-2:-inspect-a-virtual-machine-disk-image + the g.find (or g.find0) API. > Will the mounting capabilities work in Windows? Windows guest or host? Please send all questions to the mailing list. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many power...
2009 Nov 10
0
ANNOUNCE: libguestfs 1.0.78 released
...ests/ http://rwmj.wordpress.com/2009/10/28/libhivex-windows-registry-hive-extractor-library/ - OCaml bindings for virt-inspector - RELAX NG schema for virt-inspector - New APIs: utimens, vfs_type, truncate, truncate_size, lchown, lstatlist, lxattrlist, readlinklist, case_sensitive_path, find0, mkfs_b, mke2journal, and more ... - New program: OCaml viewer http://rwmj.wordpress.com/2009/09/29/graphical-virt-df/ - Allow stdout to be redirected when running guestfish remotely (Matt Booth). - Remove requirement for vmchannel support in qemu (horray!) and the tricky main loop c...
2012 May 02
4
[PATCH 0/4] fish: Allow the glob command to expand device patterns (RHBZ#635971).
This patch set fixes a two year old bug in guestfish, namely that the 'glob' command does not expand /dev/* patterns. https://bugzilla.redhat.com/show_bug.cgi?id=635971 Rich.
2014 Sep 23
0
[PATCH 03/13] syntax-check: fix makefile_at_at_check
...efile.am b/fish/Makefile.am index d28a94b..12909d1 100644 --- a/fish/Makefile.am +++ b/fish/Makefile.am @@ -297,7 +297,7 @@ TESTS += \ endif check-valgrind: - $(MAKE) TESTS="test-a.sh test-add-domain.sh test-add-uri.sh test-copy.sh test-d.sh test-edit.sh test-escapes.sh test-events.sh test-find0.sh test-glob.sh test-inspect.sh test-prep.sh test-read-file.sh test-remote.sh test-remote-events.sh test-reopen.sh test-run.sh test-stringlist.sh test-tilde.sh test-upload-to-dir.sh" VG="$(top_builddir)/run @VG@" check + $(MAKE) TESTS="test-a.sh test-add-domain.sh test-add-uri.s...
2012 Jan 20
8
Various fixes from building libguestfs for Debian
Here are some of the patches that I have maintained in the patch queue of my packages that I maintain within the Debian distribution (http://packages.qa.debian.org/libg/libguestfs.html). All of them address FTBFS (fail to build from source) errors that happened with the particular configuration that is used for building the Debian package. Cheers, -Hilko
2014 Jan 13
0
[PATCH] New API: copy-attributes.
...t) +{ + abort (); +} + #endif /* no HAVE_LINUX_XATTRS */ diff --git a/fish/Makefile.am b/fish/Makefile.am index bd0485f..fb0e99e 100644 --- a/fish/Makefile.am +++ b/fish/Makefile.am @@ -279,6 +279,7 @@ if ENABLE_APPLIANCE TESTS += \ test-copy.sh \ test-edit.sh \ + test-file-attrs.sh \ test-find0.sh \ test-inspect.sh \ test-glob.sh \ diff --git a/fish/test-file-attrs.sh b/fish/test-file-attrs.sh new file mode 100755 index 0000000..78bd817 --- /dev/null +++ b/fish/test-file-attrs.sh @@ -0,0 +1,157 @@ +#!/bin/bash - +# libguestfs +# Copyright (C) 2014 Red Hat Inc. +# +# This program is fr...
2014 Jan 07
0
Re: RFC: copy-attributes command
...ttr.h */ > diff --git a/fish/Makefile.am b/fish/Makefile.am > index bd0485f..fb0e99e 100644 > --- a/fish/Makefile.am > +++ b/fish/Makefile.am > @@ -279,6 +279,7 @@ if ENABLE_APPLIANCE > TESTS += \ > test-copy.sh \ > test-edit.sh \ > + test-file-attrs.sh \ > test-find0.sh \ > test-inspect.sh \ > test-glob.sh \ > diff --git a/fish/test-file-attrs.sh b/fish/test-file-attrs.sh > new file mode 100755 > index 0000000..85c6d29 > --- /dev/null > +++ b/fish/test-file-attrs.sh > @@ -0,0 +1,118 @@ > +#!/bin/bash - > +# libguestfs > +# C...
2012 Feb 10
3
[PATCH 0/3] Fix guestfish edit command.
This is a further, more comprehensive fix for https://bugzilla.redhat.com/show_bug.cgi?id=788641 The guestfish 'edit' command (aka 'emacs', 'vi') suffered from the same problems as virt-edit and more. It could have failed and left a partially overwritten file, and it didn't preserve permissions etc from the original file. These three patches fix all this. The first
2018 Nov 13
8
[PATCH v4 0/3] Install QEMU-GA from oVirt guest tools ISO on Linux
changes in v4: - fix call to install_local changes in v2: - moved copy_drivers above copy_files - renamed copy_files to copy_from_virtio_win - renamed install to install_local - use rpm instead of yum This installs packages with QEMU Guest Agent when converting Linux machine. The packages should be available on guest tools ISO. The patches work "as-is" but probably deserve some more
2014 Jan 07
8
RFC: copy-attributes command
Hi, attached there is a prototype of patch for adding a new copy-attributes command. Such command would allow copy the attributes of a "file" to another, so for example in guestfish: copy-attributes foo bar permissions:true xattributes:false would only copy the permissions of foo to bar, not copying its extended attributes too. Just few notes: - my first daemon command, so
2013 Dec 16
3
Re: [PATCH] drives: add CD-ROM disk images as read-only drives (RHBZ#563450).
...n.img" exit 77 > fi It seems there are few more tests that don't check for the existence of test guests and isos: align/test-virt-alignment-scan.sh cat/test-virt-cat.sh cat/test-virt-filesystems.sh cat/test-virt-ls.sh df/test-virt-df.sh edit/test-virt-edit.sh fish/test-find0.sh fish/test-inspect.sh fish/test-read-file.sh fish/test-run.sh fish/test-upload-to-dir.sh fuse/test-fuse-umount-race.sh inspector/test-virt-inspector.sh sysprep/test-virt-sysprep-passwords.sh sysprep/test-virt-sysprep-script.sh sysprep/test-virt-sysprep.sh tests/md/test-inspect...
2017 Feb 20
3
[PATCH 0/3] tests: Define common test functions.
Previously I posted a work-in-progress preview of this patch series: https://www.redhat.com/archives/libguestfs/2017-February/msg00224.html This is the finished version that updates all of the shell-script based tests. It passes 'make check', 'make check-direct' and 'make check-slow'. Rich.