summaryrefslogtreecommitdiffstats
path: root/format/format.c
Commit message (Collapse)AuthorAgeFilesLines
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* virt-format: Don't call wipefs unless API is available.Richard W.M. Jones2012-06-221-1/+25
| | | | | This API is optional. Don't call it unless it's available in the appliance.
* Use the new lvcreate-free API to create largest possible LVs.Richard W.M. Jones2012-03-151-4/+1
|
* Fix strict-overflow bugs and reenable this warning.Richard W.M. Jones2012-03-121-1/+1
| | | | | | | | In two places, we were counting things in an array using an 'int'. In theory, the int could overflow, so gcc determines this to be undefined behaviour. The fix is to use size_t or ssize_t instead.
* format: Remove unused variables.Richard W.M. Jones2012-03-121-1/+1
|
* virt-format: erase the filesystem signatures before erase partitionsWanlong Gao2012-02-101-15/+4
| | | | | | | erase the filesystem signatures on each device, then erase the partitions, avoid to list all the partitions here. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* New tool: virt-format: erase and make blank disks.Richard W.M. Jones2012-01-181-0/+456
This tool allows you to easily reformat a disk, creating a blank disk with optional partition, LVM and empty filesystem.