X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=perl%2Flib%2FSys%2FGuestfs.pm;h=09663bc5e829cb68b5e623e01b8c5b412c43f0cf;hb=197f0ceeac625a20b923b274c6025eb0ccaeaed1;hp=c9caf0888a3f07c9661b077e9d89b8db05a8001c;hpb=5a563bbd9b2779640e3358f4bf1eaac622b58cae;p=libguestfs.git diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index c9caf08..09663bc 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -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