X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfs-actions.pod;h=50eba95a2685306247e633e97dd00d74eabcc2de;hp=18c3910c756303c5ad2f6ac71ec8f43e70e7eec5;hb=0884d8bbae6d76a603ec1385ada2938f88981c5c;hpb=c6d6f5ae1b76ec9aa5c540906aeed73d25d13eb9 diff --git a/guestfs-actions.pod b/guestfs-actions.pod index 18c3910..50eba95 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -885,6 +885,22 @@ C. This function returns a string, or NULL on error. I. +=head2 guestfs_get_memsize + + int guestfs_get_memsize (guestfs_h *handle); + +This gets the memory size in megabytes allocated to the +qemu subprocess. + +If C was not called +on this handle, and if C was not set, +then this returns the compiled-in default value for memsize. + +For more information on the architecture of libguestfs, +see L. + +On error this function returns -1. + =head2 guestfs_get_path const char *guestfs_get_path (guestfs_h *handle); @@ -1319,6 +1335,18 @@ See also: L This function returns a string, or NULL on error. I. +=head2 guestfs_mkfifo + + int guestfs_mkfifo (guestfs_h *handle, + int mode, + const char *path); + +This call creates a FIFO (named pipe) called C with +mode C. It is just a convenient wrapper around +C. + +This function returns 0 on success or -1 on error. + =head2 guestfs_mkfs int guestfs_mkfs (guestfs_h *handle, @@ -1331,6 +1359,81 @@ example C. This function returns 0 on success or -1 on error. +=head2 guestfs_mknod + + int guestfs_mknod (guestfs_h *handle, + int mode, + int devmajor, + int devminor, + const char *path); + +This call creates block or character special devices, or +named pipes (FIFOs). + +The C parameter should be the mode, using the standard +constants. C and C are the +device major and minor numbers, only used when creating block +and character special devices. + +This function returns 0 on success or -1 on error. + +=head2 guestfs_mknod_b + + int guestfs_mknod_b (guestfs_h *handle, + int mode, + int devmajor, + int devminor, + const char *path); + +This call creates a block device node called C with +mode C and device major/minor C and C. +It is just a convenient wrapper around C. + +This function returns 0 on success or -1 on error. + +=head2 guestfs_mknod_c + + int guestfs_mknod_c (guestfs_h *handle, + int mode, + int devmajor, + int devminor, + const char *path); + +This call creates a char device node called C with +mode C and device major/minor C and C. +It is just a convenient wrapper around C. + +This function returns 0 on success or -1 on error. + +=head2 guestfs_mkswap + + int guestfs_mkswap (guestfs_h *handle, + const char *device); + +Create a swap partition on C. + +This function returns 0 on success or -1 on error. + +=head2 guestfs_mkswap_L + + int guestfs_mkswap_L (guestfs_h *handle, + const char *label, + const char *device); + +Create a swap partition on C with label C