summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add guestfs_add_domain 'live' flag.Richard W.M. Jones2011-02-033-29/+183
| | | | | | | | | | This optional flag controls whether this API call will try to connect to a running virtual machine 'guestfsd' process. If the flag is given and the virtual machine is running, then the libvirt XML is parsed looking for a suitable <channel> element, and 'guestfs_set_attach_method' is called with the corresponding virtio-serial socket path.
* lib: Implement attach-method unix:<path>Richard W.M. Jones2011-02-032-9/+95
| | | | | | | | | | | | | | | | | | | | | | | | | Allow connections to a Unix domain socket which is connected (via virtio-serial) to a guestfsd running free in an existing guest. In order to use this you have to add the following element to the libvirt XML: <channel type='unix'> <source mode='bind' path='/tmp/socket'/> <target type='virtio' name='org.libguestfs.channel.0'/> </channel> (or perform the equivalent on the qemu command line). Then in guestfish, you can do: guestfish \ attach-method unix:/tmp/socket : \ run : \ ll / (or any other commands as desired).
* daemon: Remove -f (don't fork) option.Richard W.M. Jones2011-02-032-31/+4
| | | | This option was not being used.
* daemon: Allow -r option to run daemon standalone.Richard W.M. Jones2011-02-033-12/+31
| | | | | | | | This changes several aspects of the daemon. Currently: * sysroot will be "" (ie. operate directly on /) * CHROOT_IN/CHROOT_OUT are disabled * autosync doesn't try to unmount everything
* daemon: change to root directoryRichard W.M. Jones2011-02-031-0/+2
| | | | Ensure the daemon always starts with current directory == root.
* New APIs: set-attach-method, get-attach-method.Richard W.M. Jones2011-02-033-0/+81
| | | | | | | | | | These allow you to get and set the attach method. The format is one of: * appliance * unix:<path> It's stored broken out into an enum and a string in the handle.
* lib: Move appliance launching to separate function.Richard W.M. Jones2011-02-031-14/+24
| | | | This is just code motion.
* php: Ignore another generated file in php/extension directory.Richard W.M. Jones2011-02-031-0/+1
|
* daemon: Parse /proc/mounts instead of /etc/mtabRichard W.M. Jones2011-02-031-2/+5
| | | | | | | | | | | | | | | | | | | | | | | Since Fedora util-linux 2.19, the %post script does: rm -f /etc/mtab ln -s /proc/mounts /etc/mtab We are no longer running %post scripts, so this means that /etc/mtab is a plain file in the appliance. Usual 'mount' still updates it, but for some reason mount.ntfs does *not* update it in Fedora 15, meaning that you couldn't mount and then operate on NTFS partitions. It seems better to always parse /proc/mounts (ie. what the kernel thinks is mounted) unconditionally, rather than relying on the capriciousness of the external mount command. Therefore, parse /proc/mounts instead of /etc/mtab, but add a note saying that in future we should really be parsing /proc/self/mountinfo, but that needs a custom parser, and the format is rather tricky: http://lxr.linux.no/#linux+v2.6.37/Documentation/filesystems/proc.txt#L1462
* regressions: Fix rhbz557655.sh so it works with tracing enabled.Richard W.M. Jones2011-02-031-0/+1
|
* guestfs-perl: Fix missing \nRichard W.M. Jones2011-01-311-1/+1
| | | | This updates commit 477eebc83dcd33d00d34398692692dae6af04f22.
* Version 1.9.7.1.9.7Richard W.M. Jones2011-01-3017-2695/+2749
|
* virt-make-fs: Fix typo in man page.Richard W.M. Jones2011-01-301-1/+1
|
* perl: Translate C examples into Perl and include a manual page.Richard W.M. Jones2011-01-3013-31/+253
|
* perl: Ignore internal_* functions in POD coverage test.Richard W.M. Jones2011-01-291-1/+2
| | | | This updates commit 1d999540bddd7aea7c2d0fef8b15223d4acc645f.
* Fix test-guestfish-a.sh regression test for new trace format.Richard W.M. Jones2011-01-281-5/+5
| | | | This fixes commit 1d999540bddd7aea7c2d0fef8b15223d4acc645f.
* autobuild: Add a 'make clean' step.Richard W.M. Jones2011-01-281-0/+2
|
* lib: Fix use-after-free bug in XPath parsing code.Richard W.M. Jones2011-01-281-1/+1
|
* Add a new internal-autosync API to perform autosync.Richard W.M. Jones2011-01-284-8/+33
| | | | | | | | | Instead of explicitly calling umount-all; sync, we add a daemon function called internal-autosync which does the same. Apart from slightly simplifying the process of closing the handle, the main advantage is we can modify the daemon for the standalone case so that internal-autosync does not do the umount-all operation.
* Add a prefix to output when tracing (RHBZ#673479).Richard W.M. Jones2011-01-281-17/+27
| | | | | | | | | | | | | | | | | | | Also separate the call and return lines so that everything can be easily 'grepped' from debug output. The trace output now looks like this: $ guestfish -x -N fs exit libguestfs: trace: is_config libguestfs: trace: is_config = 1 libguestfs: trace: add_drive "test1.img" libguestfs: trace: add_drive = 0 libguestfs: trace: is_config libguestfs: trace: is_config = 1 libguestfs: trace: launch libguestfs: trace: launch = 0 libguestfs: trace: part_disk "/dev/sda" "mbr" libguestfs: trace: part_disk = 0 &c.
* daemon: Replace root_mounted global with intelligence.Richard W.M. Jones2011-01-272-27/+51
| | | | | | | | | | | | | | | | | We used to maintain a global flag 'root_mounted' which tells us if the user has mounted something on root (ie. on the sysroot directory). This flag caused a lot of trouble (eg. RHBZ#599503) because it's hard to keep the flag updated correctly when the user can do arbitrary mounts and also use mkmountpoint. Remove this flag and replace it with a test to see if something is mounted on *or under* the sysroot. (It has to be *or under* because of mkmountpoint and friends). This also replaces a rather convoluted "have we mounted root yet" check in the mount* APIs with a simpler check to see if the mountpoint exists and is an ordinary directory.
* daemon: Add perror to two exit paths to make errors clearer.Richard W.M. Jones2011-01-271-1/+4
|
* debian: Include actual shared libraries in python-guestfs package.Richard W.M. Jones2011-01-271-1/+1
|
* mkfs-opts: Add optional "features" parameter.Nikita A Menkovich2011-01-262-5/+21
| | | | | This allows the -O parameter to be added to the mkfs command line. This is used to select filesystem features.
* mkfs-opts: Add a note about blocksize param and UFS filesystems.Nikita A Menkovich2011-01-261-0/+2
|
* generator: Fix generation of library-side stubs with optional String arguments.Richard W.M. Jones2011-01-261-1/+1
|
* packagelist: Add ufsutils for Debian and Ubuntu.Richard W.M. Jones2011-01-261-0/+1
| | | | | Note there is no mkfs.ufs available for Fedora (see RHBZ#541618 for details).
* Version 1.9.6.1.9.6Richard W.M. Jones2011-01-2215-246/+317
|
* fish: Fix typo in error message (copy-in should be copy-out).Richard W.M. Jones2011-01-221-1/+1
|
* Use /var/tmp for the cached appliance (for FHS compliance).Richard W.M. Jones2011-01-195-6/+27
| | | | | | | | | | | | | | | | The FHS advises large files not to be stored in the root filesystem[1], and that /var/tmp is persistent across reboots[2] (whereas /tmp is possibly not[3]). Therefore we should store the large cached supermin appliance in /var/tmp instead of /tmp. /tmp is still used for all other temporary files and directories. In either case you can override this by setting $TMPDIR. [1] http://www.pathname.com/fhs/pub/fhs-2.3.html#THEROOTFILESYSTEM [2] http://www.pathname.com/fhs/pub/fhs-2.3.html#VARTMPTEMPORARYFILESPRESERVEDBETWEE [3] http://www.pathname.com/fhs/pub/fhs-2.3.html#TMPTEMPORARYFILES
* fish: Initialize pcmd structure.Richard W.M. Jones2011-01-181-1/+4
| | | | | | | On Debian we get this warning which I'm pretty sure is bogus: fish.c:690: error: 'pcmd.cmd' may be used uninitialized in this function [-Wuninitialized]
* Version 1.9.51.9.5Richard W.M. Jones2011-01-1817-656/+774
|
* fish: <! cmd executes a shell command and inlines the resulting commands.Richard W.M. Jones2011-01-182-0/+83
| | | | | | | | The new guestfish construct "<! cmd" executes the shell command "cmd", and then anything printed to stdout by "cmd" is parsed and executed as a guestfish command. This allows some very hairy shell scripting with guestfish.
* fish: Factor out command line parsing.Richard W.M. Jones2011-01-181-154/+170
| | | | Factor out the code which splits a string into a command line.
* fish: Make exit_on_error into a completely local variable.Richard W.M. Jones2011-01-185-10/+16
| | | | | | Note that 'time' and 'glob' (which both run subcommands) do not correctly pass the exit_on_error flag in the remote case. This is not a regression: the current code doesn't work either.
* fish: exit_on_error is a local variable.Richard W.M. Jones2011-01-181-1/+1
|
* todo: Live CD inspection works, but not for Windows 7.Richard W.M. Jones2011-01-151-48/+2
|
* Version 1.9.4.1.9.4Richard W.M. Jones2011-01-1518-11922/+12827
|
* README: Note that po4a is mandatory if compiling from git.Richard W.M. Jones2011-01-151-1/+3
|
* Add ability to inspect install disks and live CDs.Richard W.M. Jones2011-01-1517-42/+914
| | | | | For examples of the virt-inspector output, see the additional inspector/example-*.xml files in this commit.
* inspect: Add macros for file size limits.Richard W.M. Jones2011-01-151-9/+37
| | | | | | This also bumps the file size limit for "small text files" up to 2 MB, since we want to parse Windows CD txtsetup.sif files that are usually around 500K in size.
* New API: resize2fs-M to resize ext2/3/4 to minimum size.Nikita A Menkovich2011-01-143-1/+35
|
* Version 1.9.3.1.9.3Richard W.M. Jones2011-01-1117-3853/+3949
|
* df: Skip final '/' character when calculating basename.Richard W.M. Jones2011-01-111-0/+2
| | | | | | | | | | Previously it was including the final '/' character when calculating the basename for the -a option eg: Filesystem Size Used Available Use% /Ubuntu1010x64:/dev/sda1 9.4G 2.3G 6.6G 25% With this patch the '/' is not printed.
* fish: Don't fail if some mountpoints in /etc/fstab are bogus (RHBZ#668574).Richard W.M. Jones2011-01-118-6/+99
| | | | | | | | | | | | | | | | | Fix guestfish (and other C tools) so that they ignore errors when /etc/fstab contains bogus entries. Update the documentation for inspect-get-mountpoints to emphasize that callers must be aware of this when mounting the returned values. Add a regression test. Update the example code ("inspect_vm") to reflect the way this API ought to be called. For more detail see: https://bugzilla.redhat.com/show_bug.cgi?id=668574
* Add logo used on the website.Richard W.M. Jones2011-01-113-1/+5
|
* Add cartoon fish logo (not completed).Richard W.M. Jones2011-01-102-1/+563
|
* todo: /proc/self/mountinfoRichard W.M. Jones2011-01-091-0/+15
|
* todo: Add notes on inspecting ISO images.Richard W.M. Jones2011-01-081-1/+46
|
* virt-filesystems: Ignore errors when getting label and UUID (RHBZ#668112).Richard W.M. Jones2011-01-081-6/+29
| | | | | | | | | | | If virt-filesystems was pointed to an image that contained bogus or blank filesystems, then calls to vfs-label and/or vfs-uuid could fail, resulting in errors like this: libguestfs: error: vfs_label: /dev/vda1: These errors can be ignored and shouldn't stop virt-filesystems from working.