summaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
...
* New API: pwrite-deviceRichard W.M. Jones2010-09-261-1/+18
| | | | | This is the same as the existing 'pwrite' API call, but allows you to write to a device.
* Allow $TMPDIR to override most temporary directory uses.Richard W.M. Jones2010-09-241-0/+1
| | | | | | | Be more consistent in allowing the user to override use of the temporary directory by specifying $TMPDIR. Also prefer P_tmpdir macro (defined in <stdio.h>) if that is defined, rather than hard-coding "/tmp" for the fallback location.
* fish: Implement 'hexedit' command.Richard W.M. Jones2010-09-211-0/+36
|
* New APIs: upload-offset and download-offsetRichard W.M. Jones2010-09-211-0/+49
| | | | | These APIs allow you to efficiently write and read parts of files or devices.
* generator: Generate guestfish-only commands.Richard W.M. Jones2010-09-187-34/+246
| | | | | | The guestfish-only commands such as 'alloc' and 'edit' are now generated from one place in the generator instead of being spread around ad-hoc in the C code.
* fish: In guestfish(1) turn command references into links.Richard W.M. Jones2010-09-181-1/+1
|
* New API: list-filesystems: list filesystemsRichard Jones2010-09-151-4/+43
| | | | | | | | | | | | | | | | | | This API is a simpler replacement for the guestfish commands list-devices / list-partitions / lvs, in the case where you are just examining a guest by hand to see what it contains. Typical usage and output in guestfish is like this: $ guestfish --ro -a /dev/vg_trick/F13x64 ><fs> run ><fs> list-filesystems /dev/vda1: ext4 /dev/vg_f13x64/lv_root: ext4 /dev/vg_f13x64/lv_swap: swap It can also be used to replace programs that try to mount devices to determine if they are mountable filesystems.
* New API: part-to-dev: Convert partition name to device name.Richard Jones2010-09-151-0/+14
| | | | | This adds a formal API for going from a partition to the containing device, eg. /dev/sda1 -> /dev/sda
* generator: Add TestOutputDevice.Richard Jones2010-09-153-0/+20
| | | | | | This is for testing functions that return a device or partition name, so that we can compare the return value with the canonical device name (eg. "/dev/vda1" == "/dev/sda1").
* generator: Provide no-op generator if no OCaml compiler.Richard Jones2010-09-111-0/+16
|
* generator: Calculate MD5 of test.iso at runtime.Richard Jones2010-09-115-8/+47
| | | | | | | | | Because this used to be compiled into the C test, it changed every time the ISO was rebuilt (which because of Makefile deps was every run). Now it is calculated at runtime so the C test file doesn't keep changing.
* generator: Don't use real uuidgen for UUIDs.Richard Jones2010-09-111-11/+16
| | | | | This was one reason why capitests/tests.c changed every time the generator was run.
* Split generator into separate source files.Richard Jones2010-09-1132-0/+14300
'src/generator.ml' is no more. Instead the generator is logically split up over many different source files. Read generator/README for help and tips. We compile the generator down to bytecode, not native code. This means it will run more slowly, but is done for maximum portability.