summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* RHEL 5: Also add le{16,64}toh functionsRichard Jones2009-10-291-0/+12
|
* RHEL 5: Detect endianness functions and supply them.Richard Jones2009-10-294-2/+35
|
* Add virt-win-reg to toplevel Makefile.am, fix POTFILES.in1.0.75Richard Jones2009-10-292-1/+4
|
* Prepare for version 1.0.75.Richard Jones2009-10-294-701/+721
|
* Support for Windows Registry.Richard Jones2009-10-2919-3/+3604
| | | | | | | | | | | | | In hivex/: This mini-library allows us to extract Windows Registry binary files ("hives"). There are also two tools: hivexml converts a hive to a self-describing XML format. hivexget can be used to extract single subkeys from a hive. New tool: virt-win-reg. This is a wrapper around the library functionality allowing you to pull out data from the registries of Windows guests.
* New API: vfs_type - get the Linux VFS driver for a mounted device.Richard Jones2009-10-265-1/+68
|
* Modify Sys::Guestfs::Lib::resolve_windows_path to use case_sensitive_path.Richard Jones2009-10-261-29/+3
|
* guestfish: Add win: prefix to use Windows paths.Richard Jones2009-10-264-4/+78
| | | | | | | Add a win: prefix for path arguments in guestfish: ><fs> file win:c:\windows\system32\config\system.log MS Windows registry file, NT/2000 or above
* daemon: Change chdir to use openat/fdopendir.Richard Jones2009-10-264-9/+100
| | | | Uses Gnulib implementation of openat which should be portable.
* New API: case-sensitive-path to return case sensitive path on NTFS 3g fsRichard Jones2009-10-263-1/+181
| | | | | | | | | | | | | | | | | | | | This function handles an annoyance/peculiarity of the Linux NTFS 3g driver, which is that it exports NTFS filesystems with names case sensitive, even though under Windows they would be case insensitive. This causes problems because the location of (eg.) c:\windows might appear as /windows or /WINDOWS (etc) depending on the inconsequential details of how it was originally created. Example of this problem on a real Windows guest: ><fs> file /windows/system32/config/system.log libguestfs: error: file: access: /windows/system32/config/system.log: No such file or directory ><fs> case-sensitive-path /windows/system32/config/system.log /WINDOWS/system32/config/system.LOG ><fs> file /WINDOWS/system32/config/system.LOG MS Windows registry file, NT/2000 or above
* inspector: Remove inaccurate paragraph from documentation.Richard Jones2009-10-261-4/+0
|
* Include HFS (Mac OS X) driver.Richard Jones2009-10-251-1/+2
|
* Set LC_ALL=C before running qemu.Richard Jones2009-10-211-2/+4
|
* init: Check that start_udev succeededMatthew Booth2009-10-211-2/+2
| | | | | | | If start_udev fails for any reason, notice and fall through to manual /dev creation. Patch from Charles Duffy <charles@dyfis.net>
* Version 1.0.74.1.0.74Richard Jones2009-10-204-650/+661
|
* Tab to space fixes, now passes 'make syntax-check'Richard Jones2009-10-208-442/+441
|
* guestfs_find: Fix memory leak of sysrootdir.Richard Jones2009-10-201-0/+1
|
* virt-ls: Modify to use find0 instead of find.Richard Jones2009-10-201-4/+12
| | | | | find0 is more scalable than find. virt-ls will no longer crash if asked to recursively list / on a Linux guest.
* New API: find0 (unlimited version of find)Richard Jones2009-10-205-2/+176
| | | | | | | | | | | | | This adds a new API call guestfs_find0, which is like guestfs_find but mainly doesn't suffer from the protocol limit of the earlier command. The earlier command is not deprecated because it is still very useful. guestfs_find0 uses a FileOut parameter and writes the results to an external file. The filenames in the output are separated by ASCII NUL characters (so a bit like "find -print0"). There is also the addition of a regression test for this command.
* guestfs_find: Document protocol limits for this API call.Richard Jones2009-10-201-1/+1
| | | | | | | | | | guestfs_find has to send the complete list of files in a single protocol message (hence, limited to 2-4 MB). Unfortunately on a typical Linux guest, guestfs_find ("/") will exceed this limit resulting in an error. Therefore we should add an unlimited version of this call in a future commit. This commit just documents the current limit.
* New tool: virt-lsRichard Jones2009-10-206-1/+239
| | | | | | | | | This tool makes available the functionality of "ls", "ll", and "find" in a slightly simpler to use form. Examples: virt-ls -l myguest /tmp
* New tool: virt-tarRichard Jones2009-10-206-3/+295
| | | | | | | | | | | | This adds a new tool call virt-tar which is a general purpose archive and uploading tool. It doesn't add any functionality which wasn't previously possible using guestfish, but makes it simpler to access for some users. Examples: virt-tar -zx myguest /home home.tar.gz virt-tar -zu myguest uploadstuff.tar.gz /tmp
* tools: Make warnings about running on live guests more prominent.Richard Jones2009-10-192-9/+16
| | | | | Add prominent warnings to the man pages about how it is dangerous to run these tools against live guests.
* Move virt tools (virt-cat, virt-edit etc) into tools/ subdirectory.Richard Jones2009-10-1917-360/+46
| | | | | | | | | | | | | | | | | | This moves the tool programs into a single directory: cat/* -> tools/virt-cat df/* -> tools/virt-df edit/* -> tools/virt-edit rescue/* -> tools/virt-rescue This in itself simplifies the build process because we only need one Makefile and one copy of 'run-locally'. 'run-*-locally' has become just 'run-locally' and takes an extra parameter which is the name of the tool, eg: run-locally cat [virt-cat params...] virt-inspector stays in its own directory, because this contains more than just a single Perl script.
* Comment: Describe the build order requirements for toplevel directories.Richard Jones2009-10-191-0/+3
|
* Prepare for 1.0.73.1.0.73Richard Jones2009-10-143-8/+8
|
* Add some missing EXTRA_DIST files.Richard Jones2009-10-142-2/+7
|
* inspector: Generate language bindings for OCaml.Richard Jones2009-10-1310-21/+738
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a generic mechanism for deriving language bindings for virt-inspector, and implements one concrete binding, for OCaml. The bindings are generated from the RELAX NG schema (virt-inspector.rng) which is supposed to be a correct and always up to date description of the XML that the virt-inspector program can generate. From the RNG we generate a set of types to describe the output of virt-inspector for the language, plus an XML parser, plus some glue code to actually run an external instance of virt-inspector and parse the resulting XML. At runtime, an external 'virt-inspector --xml <name>' command runs and the XML is parsed into language-specific structures. This has been tested on the four example files (inspector/example?.xml) The only particular difficulty about the OCaml binding is the use of Obj.magic, which is naughty but works because of the isomorphism between the representation of tuples and records in OCaml. This seems to cause no problems in my test program. Apart from this, the OCaml binding is straightforward and could be adapted easily for any other languages that want type-safe virt-inspector bindings. It's important to keep virt-inspector.rng up to date with changes to virt-inspector's XML output format.
* build: avoid parallel ocaml/... build failureJim Meyering2009-10-052-3/+1
| | | | | | | | A parallel build could fail due to the use in ocaml/examples of ocaml/guestfs.cmi before it was built. * Makefile.am (SUBDIRS): Add both ocaml and ocaml/examples, to ensure they're built in this order, and not in parallel. * ocaml/Makefile.am (SUBDIRS): Don't define.
* Updated Polish translationPiotr Drąg2009-10-051-552/+309
|
* inspector: Fix inspector/Makefile.amRichard Jones2009-10-021-4/+3
| | | | | | | | Accidentally pushed the older version of the patch in commit 9d25e82491ddcf495e1d30694327e4bfd3a23445. This includes Jim Meyering's suggested changes from https://www.redhat.com/archives/libguestfs/2009-October/msg00017.html
* build: fix compile errorJim Meyering2009-10-021-3/+6
| | | | | | | | Link demo scripts with just-build library, not the installed one. * ocaml/examples/Makefile.am (OCAMLFINDFLAGS): New variable. (lvs, viewer): Use it. This fix is based on a suggestion from Rich Jones. This addresses RHBZ#526917.
* inspector: Add tests for RELAX NG schema.Richard Jones2009-10-027-1/+14758
|
* inspector: Add RELAX NG schema for virt-inspector --xml output.Richard Jones2009-10-022-4/+171
|
* configure: Update comment about viewer.ml.Richard Jones2009-10-021-1/+3
|
* inspector: Canonicalize device names (fix RHBZ#526717).Richard Jones2009-10-011-1/+11
| | | | | Make filesystem device names canonical, so they are /dev/sd* instead of /dev/vd*.
* run-*-locally: The programs are now virt-[tool], not virt-[tool].plRichard Jones2009-10-015-5/+5
| | | | This fixes commit b488436cc54288fcae8988493749f2e6c87f274c.
* inspector: Don't bomb if no kernels detected.Richard Jones2009-10-011-16/+18
| | | | | | | | If $os->{kernels} wasn't defined, virt-inspector would exit with an error, leaving partial XML output. Change the code so it doesn't die in this case, instead just leaves out the <kernels> section.
* OCaml viewer: Use ocamlduce to replace xpath code.Richard Jones2009-09-305-48/+36
|
* OCaml viewer: Handle exceptions properly.Richard Jones2009-09-291-1/+8
|
* OCaml example: graphical disk usage viewer.Richard Jones2009-09-298-3/+776
| | | | | | | | | This is an example of how to write an app which uses libguestfs and libvirt, and has a responsive user interface (using threads). It is a Gtk-based "graphical virt-df". Read the top of the 'viewer.ml' file first for instructions on how to compile. This program is not compiled by default.
* virt-df: Add note about parsing CSV.Richard Jones2009-09-241-2/+27
|
* avoid use of all ctype macrosJim Meyering2009-09-2413-27/+29
| | | | | | | | | | | | | | | | | | | | * cfg.mk (disable_temporarily): Don't disable sc_avoid_ctype_macros. * fish/tilde.c: Remove unnecessary inclusion of ctype.h. * bootstrap: Add gnulib's c-ctype module to the list. * daemon/m4/gnulib-cache.m4: Likewise. * daemon/ext2.c: Include "c-ctype.h", not <ctype.h>. Use c_isspace, etc, rather than isspace. * daemon/guestfsd.c: Likewise. * daemon/lvm.c: Likewise. * daemon/proto.c: Likewise. * fish/fish.c: Likewise. * fish/tilde.c: Likewise. * src/generator.ml: Likewise. * src/guestfs.c: Likewise. * examples/to-xml.c: Likewise. * examples/Makefile.am (to_xml_CPPFLAGS): Add -I$(top_srcdir)/gnulib/lib so inclusion of "c-ctype.h" works. (to_xml_CPPFLAGS): Rename from to_xml_CFLAGS.
* maint: prune dead wood from list of skipped syntax-check rulesJim Meyering2009-09-241-18/+1
| | | | | * cfg.mk (local-checks-to-skip): Remove now-passing and no-longer-relevant rule names.
* maint: use spaces, not TABs for indentationJim Meyering2009-09-244-30/+30
| | | | | | | | "make syntax-check" was failing. This fixes it. * HACKING: Indent with spaces, not TABs. * configure.ac: Likewise. * rescue/virt-rescue: Likewise. * src/generator.ml: Likewise.
* Prepare for 1.0.72.1.0.72Richard Jones2009-09-233-710/+730
| | | | Also update PO files.
* More HTMLFILES.Richard Jones2009-09-231-0/+2
|
* Include virt tools in EXTRA_DIST.Richard Jones2009-09-235-5/+10
| | | | | | Partially revert b488436cc54288fcae8988493749f2e6c87f274c. It turns out that automake doesn't automatically place bin_SCRIPTS in EXTRA_DIST.
* Rename virt-[tool].pl as virt-[tool]Richard Jones2009-09-2312-46/+32
|
* Check return value from readlink.Richard Jones2009-09-235-5/+5
|