summaryrefslogtreecommitdiffstats
path: root/perl/lib
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-15 10:45:01 +0100
committerRichard Jones <rjones@redhat.com>2009-04-15 10:45:01 +0100
commit6bcbe54b5785cb8c911ccf4b724ae6abfdf53ce4 (patch)
tree17dc6cbf4514f5808fbc204e592723bea95c4382 /perl/lib
parent212a55d483c2a20e61f42211c0c64aab3645cb09 (diff)
downloadlibguestfs-6bcbe54b5785cb8c911ccf4b724ae6abfdf53ce4.tar.gz
libguestfs-6bcbe54b5785cb8c911ccf4b724ae6abfdf53ce4.tar.xz
libguestfs-6bcbe54b5785cb8c911ccf4b724ae6abfdf53ce4.zip
Generated code for stat/lstat/statvfs changes.
Diffstat (limited to 'perl/lib')
-rw-r--r--perl/lib/Sys/Guestfs.pm24
1 files changed, 24 insertions, 0 deletions
diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm
index c9caf088..09663bc5 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-E<gt>readdir> instead.
+=item %statbuf = $h->lstat ($path);
+
+Returns file information for the given C<path>.
+
+This is the same as C<$h-E<gt>stat> except that if C<path>
+is a symbolic link, then the link is stat-ed, not the file it
+refers to.
+
+This is the same as the C<lstat(2)> system call.
+
=item $h->lvcreate ($logvol, $volgroup, $mbytes);
This creates an LVM volume group called C<logvol>
@@ -568,6 +578,20 @@ the string C<,> (comma).
B<This command is dangerous. Without careful use you
can easily destroy all your data>.
+=item %statbuf = $h->stat ($path);
+
+Returns file information for the given C<path>.
+
+This is the same as the C<stat(2)> system call.
+
+=item %statbuf = $h->statvfs ($path);
+
+Returns file system statistics for any mounted file system.
+C<path> 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<statvfs(2)> system call.
+
=item $h->sync ();
This syncs the disk, so that any writes are flushed through to the