summaryrefslogtreecommitdiffstats
path: root/rescue/virt-rescue.c
Commit message (Collapse)AuthorAgeFilesLines
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-031-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | The new API splits orderly close into a two-step process: if (guestfs_shutdown (g) == -1) { /* handle the error, eg. qemu error */ } guestfs_close (g); Note that the explicit shutdown step is only necessary in the case where you have made changes to the disk image and want to handle write errors. Read the documentation for further information. This change also: - deprecates guestfs_kill_subprocess - turns guestfs_kill_subprocess into the same as guestfs_shutdown - changes guestfish and other tools to call shutdown + close where necessary (not for read-only tools) - updates documentation - updates examples
* rescue: Add --scratch option.Richard W.M. Jones2012-04-261-0/+106
| | | | This lets you create temporary scratch disks.
* Tempus fugit.Richard W.M. Jones2012-01-181-2/+2
| | | | Update all copyright dates to 2012.
* fish options parsing: Allow add_drives to be called multiple times.Richard W.M. Jones2012-01-181-3/+2
| | | | | | Ensure that the drv structure is always zeroed on allocation. Don't leak old drv->device when add_drives is called multiple times.
* Update FSF address.Matthew Booth2011-11-081-1/+1
|
* rescue: Add --suggest option to suggest mount commands.Richard W.M. Jones2011-11-011-0/+166
|
* New API: set-smp, get-smpRichard W.M. Jones2011-09-281-0/+16
| | | | | | | These calls allow you to change the number of virtual CPUs assigned to the appliance. This also adds a --smp option to virt-rescue.
* rescue: Ignore errno after guestfs_launch.Richard W.M. Jones2011-08-231-10/+0
| | | | | | | errno is pretty much random on the error path back from guestfs_launch so there is nothing useful to be gained by checking it. We could do with a better way to detect if appliance launch failed.
* Coverity: Ignore return value from guestfs_launch in virt-rescue.Richard W.M. Jones2011-08-231-1/+4
| | | | We expect guestfs_launch to fail in this program.
* Include string.h and libintl.h, as needed.Jim Meyering2011-04-131-1/+3
| | | | | | | | | * df/df.c: As above. * df/main.c: As above. * df/output.c: As above. * fuse/guestmount.c: As above. * inspector/virt-inspector.c: As above. * rescue/virt-rescue.c: As above.
* Add /etc/libguestfs-tools.conf configuration file.Richard W.M. Jones2011-03-311-0/+2
| | | | | This allows the default for --ro or --rw to be controlled for the three tools guestfish, guestmount and virt-rescue.
* rescue: Add -w|--rw option.Richard W.M. Jones2011-03-301-0/+6
|
* Include <locale.h> in compilation units that use setlocale function.Richard W.M. Jones2011-03-071-0/+1
| | | | Fix required by gcc 4.6.0.
* fish: Add guestfish --live, guestmount --live options.Richard W.M. Jones2011-02-031-0/+2
| | | | | | The other programs have the variable, but the flag is not enabled either because it doesn't make sense or because the implications are not well understood.
* Remove several unused local variables.Richard W.M. Jones2010-12-101-1/+0
| | | | (Revealed by compiling under Debian where this is a warning).
* rescue: Rewrite virt-rescue in C.Richard W.M. Jones2010-11-261-0/+526