X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=perl%2Flib%2FSys%2FGuestfs.pm;h=09663bc5e829cb68b5e623e01b8c5b412c43f0cf;hb=197f0ceeac625a20b923b274c6025eb0ccaeaed1;hp=17ab740ceedfcc90d9f69791682d62e3ff497c08;hpb=5365ebd501850ea10d9a5b28fc6480ea34dbe16d;p=libguestfs.git diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index 17ab740..09663bc 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -273,7 +273,7 @@ yourself (Augeas support makes this relatively easy). =item $output = $h->command (\@arguments); -This calls runs a command from the guest filesystem. The +This call runs a command from the guest filesystem. The filesystem must be mounted, and must contain a compatible operating system (ie. something Linux, with the same or compatible processor architecture). @@ -402,6 +402,16 @@ hidden files are shown. This command is mostly useful for interactive sessions. Programs should probably use C<$h-Ereaddir> instead. +=item %statbuf = $h->lstat ($path); + +Returns file information for the given C. + +This is the same as C<$h-Estat> except that if C +is a symbolic link, then the link is stat-ed, not the file it +refers to. + +This is the same as the C system call. + =item $h->lvcreate ($logvol, $volgroup, $mbytes); This creates an LVM volume group called C @@ -568,6 +578,20 @@ the string C<,> (comma). B. +=item %statbuf = $h->stat ($path); + +Returns file information for the given C. + +This is the same as the C system call. + +=item %statbuf = $h->statvfs ($path); + +Returns file system statistics for any mounted file system. +C should be a file or directory in the mounted file system +(typically it is the mount point itself, but it doesn't need to be). + +This is the same as the C system call. + =item $h->sync (); This syncs the disk, so that any writes are flushed through to the