summaryrefslogtreecommitdiffstats
path: root/fish/prep.c
Commit message (Collapse)AuthorAgeFilesLines
* Unify guestfish and guestmount options processing (RHBZ#642932).Richard W.M. Jones2010-10-271-1/+2
| | | | | | | | | | | | | | | In guestfish, factor out the processing of the options -a, -c, -d, -i, -m, -n, -r, -v, -V, -x into a separate set of files: options.c, options.h, inspect.c, virt.c. Change guestmount so that it uses these same files (from the ../fish directory) to process the same options. This unifies the handling of these options between the two programs. It also adds the useful inspection feature to guestmount, so you can now do: guestmount -d Guest -i --ro mnt/
* leak: Free list of drives and mountpoints in guestfish.Richard W.M. Jones2010-09-211-1/+13
| | | | | | | | | | Previously the list of -a, -d, -m, -N parameters were leaked. This change frees them explicitly. This is not such an important fix since guestfish is a one-shot program, but it aids in finding other leaks in future. (Found by valgrind).
* fish: Improve appearance of guestfish -N help output.Richard Jones2010-09-081-1/+1
|
* fish: Allow guestfish -N help for listing prepared disk image help.Richard Jones2010-09-081-1/+1
|
* fish: Generate list of prepared disk image types.Richard Jones2010-09-081-137/+5
| | | | This commit shouldn't change the semantics of the code.
* fish: Fix '-N part' disk partition type sub-option.Richard Jones2010-05-211-1/+1
|
* fish: Fix guestfish -N option when called with unknown image type.Richard Jones2010-05-131-3/+5
| | | | | Previously it was falling off the end of the loop if you called it with an unknown image type.
* fish -N option unconditionally overwrites test*.img files.Richard Jones2010-05-081-6/+0
| | | | | This is more convenient and makes it consistent with the 'alloc' and 'sparse' commands.
* fish: Add -N option for making prepared disk images.Richard Jones2010-04-221-0/+305
Previously you might have typed: $ guestfish ><fs> alloc test1.img 100M ><fs> run ><fs> part-disk /dev/sda mbr ><fs> mkfs ext4 /dev/sda1 now you can do the same with: $ guestfish -N fs:ext4 Some tests have also been updated to use this new functionality.