summaryrefslogtreecommitdiffstats
path: root/examples/mount_local.c
Commit message (Collapse)AuthorAgeFilesLines
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* examples: Further fixes to mount-local example program.Richard W.M. Jones2012-05-141-5/+26
| | | | | | | * Set PS1 prompt properly for bash shells. * Touch a file into the root directory of the new filesystem. This fixes commit 46b6766156ace142443b36e20e55074c544ae6cc.
* example: Various fixes to mount-local example program.Richard W.M. Jones2012-05-141-6/+31
| | | | | | | | | * Move MOUNT_OPTIONS to #define at top. * Move SIZE_MB to #define at top. * Set PS1 in subshell (doesn't work - why?). * Hide libguestfs errors from guestfs_mount_local_run. This fixes commit 46b6766156ace142443b36e20e55074c544ae6cc.
* debian: examples: Don't break when O_CLOEXEC is not defined.Richard W.M. Jones2012-05-141-0/+4
| | | | | | This affected Debian 6. This fixes commit 46b6766156ace142443b36e20e55074c544ae6cc.
* examples: Add mount options "acl,user_xattr" to mount-local example.Richard W.M. Jones2012-05-131-1/+1
| | | | This fixes commit 46b6766156ace142443b36e20e55074c544ae6cc.
* examples: Add an example of using the mount-local API from C.Richard W.M. Jones2012-05-131-0/+156