X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfs-actions.pod;h=50eba95a2685306247e633e97dd00d74eabcc2de;hp=aade37b9175e397e7c6c7634267ad2211f0948df;hb=2d47f87a3cb9c30340c58619819675981a09e2e5;hpb=da8ddb2745c3d53c36e3ad7f09836a4c27a4d3e6 diff --git a/guestfs-actions.pod b/guestfs-actions.pod index aade37b..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,52 @@ 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, @@ -1737,6 +1811,24 @@ to return the existing UUID of a filesystem. This function returns 0 on success or -1 on error. +=head2 guestfs_set_memsize + + int guestfs_set_memsize (guestfs_h *handle, + int memsize); + +This sets the memory size in megabytes allocated to the +qemu subprocess. This only has any effect if called before +C. + +You can also change this by setting the environment +variable C before the handle is +created. + +For more information on the architecture of libguestfs, +see L. + +This function returns 0 on success or -1 on error. + =head2 guestfs_set_path int guestfs_set_path (guestfs_h *handle, @@ -2135,6 +2227,25 @@ The array of strings will always have length C<2n+1>, where C keys and values alternate, followed by the trailing NULL entry. I. +=head2 guestfs_umask + + int guestfs_umask (guestfs_h *handle, + int mask); + +This function sets the mask used for creating new files and +device nodes to C. + +Typical umask values would be C<022> which creates new files +with permissions like "-rw-r--r--" or "-rwxr-xr-x", and +C<002> which creates new files with permissions like +"-rw-rw-r--" or "-rwxrwxr-x". + +See also L, C, C. + +This call returns the previous umask. + +On error this function returns -1. + =head2 guestfs_umount int guestfs_umount (guestfs_h *handle,