Jim Meyering
f20854ec61
fish: handle some out-of-memory conditions
...
* fish/destpaths.c (xalloc_oversized): Define.
(complete_dest_paths_generator): Use size_t as type for a few
variables, rather than int.
Don't deref NULL or undef on failed heap alloc.
Don't leak on failed realloc.
Detect theoretical overflow when count_strings returns a very
large number of strings.
Handle asprintf failure.
(APPEND_STRS_AND_FREE): Rewrite as do {...}while(0), so that each use
can/must be followed by a semicolon. Better for auto-formatters.
2009-07-01 18:42:19 +02:00
Richard W.M. Jones
896079e29b
Generated code for the virtio_blk change.
2009-07-01 15:40:13 +01:00
Richard W.M. Jones
0884d8bbae
Generated code for mknod, mkfifo, mknod_b, mknod_c, umask.
2009-06-30 13:10:45 +01:00
Richard W.M. Jones
f68b3ac861
Generated code for 'set_memsize'/'get_memsize' calls.
2009-06-30 13:10:44 +01:00
Richard W.M. Jones
da8ddb2745
Generated code for the 'mkswap*' commands.
2009-06-29 20:25:20 +01:00
Richard W.M. Jones
5d6b6a3fbb
Generated code for mount-loop command.
2009-06-29 16:05:22 +01:00
Richard W.M. Jones
c6d6f5ae1b
Generated code for 'initrd-list'.
2009-06-29 15:19:10 +01:00
Richard W.M. Jones
e492608f2f
Generated code for 'du' command.
2009-06-29 12:47:20 +01:00
Richard W.M. Jones
b2ed0f4c55
Generated code for df / df-h.
2009-06-29 12:26:11 +01:00
Richard W.M. Jones
19a1382fc9
Implement "more" and "less" commands in guestfish.
...
Use commands such as:
more /etc/passwd
less /etc/fstab
These commands are specific to guestfish.
2009-06-29 12:05:58 +01:00
Richard W.M. Jones
826020fe18
Generated code for head/tail commands.
2009-06-29 11:47:07 +01:00
Richard W.M. Jones
f450ce75b7
Generated code for 'wc_*' commands.
2009-06-29 10:09:13 +01:00
Richard W.M. Jones
88da5cf8a3
Guestfish pipes.
2009-06-28 22:22:30 +01:00
Richard W.M. Jones
da947eadcf
Clarify documentation for mkdtemp.
2009-06-24 19:57:24 +01:00
Richard W.M. Jones
0574eab8bc
Generated code for 'mkdtemp' command.
2009-06-24 18:25:09 +01:00
Richard W.M. Jones
b96fb7eb3a
Quote command line arguments to virt-inspector.
2009-06-24 12:15:57 +01:00
Richard W.M. Jones
e1c62f6332
Added guestfish -i option to run virt-inspector.
...
You can invoke guestfish with:
guestfish -i libvirt-domain
guestfish -i disk-image(s)
2009-06-24 11:54:48 +01:00
Richard W.M. Jones
46551d9c51
Implement guestfish -f option to allow guestfish scripts.
...
New '-f' option allows scripts to be written using:
#!/usr/bin/guestfish -f
2009-06-24 09:59:39 +01:00
Richard W.M. Jones
94a49c8207
Incorrect assignment on glob error path.
2009-06-24 09:56:34 +01:00
Richard W.M. Jones
bcb3fc0c33
Generated code for 'scrub-*' commands.
2009-06-23 15:53:44 +01:00
Richard Jones
394c8bec21
Add 'glob' command for guestfish.
2009-06-22 09:35:43 +01:00
Richard Jones
ad8a256f54
Generated code for 'glob-expand'.
2009-06-22 08:20:42 +01:00
Richard Jones
4211c7a258
Generated code for 'sh' and 'sh-lines' commands.
2009-06-22 07:49:50 +01:00
Richard Jones
e395d7db8f
Add tab-completion of guest filenames (currently disabled).
2009-06-18 21:06:22 +01:00
Richard Jones
460d139e6a
Generated code for ntfs_3g_probe command.
2009-06-08 17:44:18 +01:00
Richard Jones
fa8cb5dac2
Added 'lcd' command to guestfish.
2009-06-08 10:01:42 +01:00
Richard Jones
b6adf09c4d
Generated code for the 'sleep' command.
2009-06-04 15:06:27 +01:00
Charles Duffy
d1da506d35
use add_drive_ro for --mount parameters from guestfish when called with --ro
...
To prevent writes (such as ext3 journal replay) from occuring even when --ro is
passed, guestfish should use add_drive_ro() for any drives specified on the
command line with --add if --ro is also passed.
As we need to look through the entire command line for --ro before adding any
drives, we move the add process out of the argument-parsing loop and into its
own function, patterned off mount_mps().
Signed-off-by: Charles Duffy <charles_duffy@dell.com >
2009-06-02 19:16:34 +01:00
Richard Jones
d1a1ab972b
Generated code for 'add_drive_ro' call.
2009-06-02 14:25:25 +01:00
Richard W.M. Jones
a1e8cdf2a2
Move the appliance and build scripts into new appliance/ subdirectory.
2009-05-28 13:00:31 +01:00
Richard Jones
6610af333b
Guestfish built-in commands auto-complete (RHBZ#501878).
2009-05-27 12:29:35 +01:00
Richard Jones
3e408f4934
Generated code for e2fsck-f command.
2009-05-21 16:18:16 +01:00
Richard Jones
d70248333e
Gettextize the source, make library strings translatable.
2009-05-21 12:01:36 +01:00
Richard Jones
1fc41b39da
Generated code for 'find' command.
2009-05-19 12:05:43 +01:00
Richard Jones
ca49c50e06
Generated code for lvresize, resize2fs.
2009-05-18 20:22:53 +01:00
Richard Jones
85ed8cef99
Add vg-activate{,-all} commands, and resize recipe.
2009-05-18 17:16:24 +01:00
Richard W.M. Jones
5cd39c83e2
Add: pvresize, sfdisk-N, sfdisk-l, sfdisk-kernel-geomtry, sfdisk-disk-geometry commands. Pass --no-reread flag to sfdisk.
2009-05-15 14:52:34 +01:00
Richard W.M. Jones
d901cc9161
Add support for zerofree command.
2009-05-14 23:47:17 +01:00
Richard W.M. Jones
5d628a4a9c
Don't stash strings in the handle.
...
- makes it impossible to write bindings for set_{path,qemu,append}
functions
2009-05-13 18:03:41 +01:00
Richard W.M. Jones
e8ecc08f66
Add 'append', LIBGUESTFS_APPEND to set additional kernel options.
2009-05-13 17:51:14 +01:00
Richard Jones
45d78361d7
Test the 'command' and 'command_lines' functions thoroughly.
2009-05-12 17:16:59 +01:00
Richard Jones
c10fa84ada
Implement -command (to ignore errors) in guestfish, and allow recovery from qemu process failure.
2009-05-08 15:19:51 +01:00
Richard Jones
0faa5dde7b
Generated code to support previous 2 commits.
2009-05-08 14:28:03 +01:00
Richard Jones
64847eed16
Missing include <ctype.h>
2009-05-06 15:08:13 +01:00
Richard W.M. Jones
0cad78b28d
Typo in documentation.
2009-05-01 18:51:15 +01:00
Richard W.M. Jones
a4d88af2c1
Implement !local in guestfish.
2009-05-01 17:41:28 +01:00
Richard W.M. Jones
f47dafd231
Generated code for 'equal' command.
2009-05-01 12:16:08 +01:00
Richard W.M. Jones
8c3b820c2b
Generated code for ping-daemon command.
2009-05-01 11:47:31 +01:00
Richard W.M. Jones
24bee20ce4
Generated code for dmesg command.
2009-05-01 11:27:52 +01:00
Richard W.M. Jones
9222136ac9
Generated code for drop-caches command.
2009-05-01 11:18:53 +01:00