From 286841877f4223d67ec00b83e5a2aabfbb9e19ed Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 10 Apr 2009 12:53:28 +0100 Subject: Generated files for previous commands. --- perl/lib/Sys/Guestfs.pm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'perl/lib') diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index d3027f35..50f5d750 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -258,6 +258,19 @@ Because of the message protocol, there is a transfer limit of somewhere between 2MB and 4MB. To transfer large files you should use FTP. +=item $h->chmod (mode, path); + +Change the mode (permissions) of C to C. Only +numeric modes are supported. + +=item $h->chown (owner, group, path); + +Change the file owner to C and group to C. + +Only numeric uid and gid are supported. If you want to use +names, you will need to locate and parse the password file +yourself (Augeas support makes this relatively easy). + =item $h->config (qemuparam, qemuvalue); This can be used to add arbitrary qemu command line parameters @@ -343,6 +356,15 @@ See also C<$h-Elvs_full>. List all the logical volumes detected. This is the equivalent of the L command. The "full" version includes all fields. +=item $h->mkdir (path); + +Create a directory named C. + +=item $h->mkdir_p (path); + +Create a directory named C, creating any parent directories +as necessary. This is like the C shell command. + =item $h->mount (device, mountpoint); Mount a guest disk at a position in the filesystem. Block devices @@ -389,6 +411,20 @@ Note that this function cannot correctly handle binary files as end of line). For those you need to use the C<$h-Eread_file> function which has a more complex interface. +=item $h->rm (path); + +Remove the single file C. + +=item $h->rm_rf (path); + +Remove the file or directory C, recursively removing the +contents if its a directory. This is like the C shell +command. + +=item $h->rmdir (path); + +Remove the single directory C. + =item $h->set_autosync (autosync); If C is true, this enables autosync. Libguestfs will make a -- cgit