diff options
author | Richard Jones <rjones@redhat.com> | 2009-05-08 15:20:36 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-05-08 15:20:36 +0100 |
commit | 15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed (patch) | |
tree | cf462fcc7f390c56be66ba6fb72fbfd79ccbc598 /perl | |
parent | 77c3f9d0ed25218fc3f24cee083a2083157d8e0a (diff) | |
download | libguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.tar.gz libguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.tar.xz libguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.zip |
Generated code to support last 3 commits.
Diffstat (limited to 'perl')
-rw-r--r-- | perl/Guestfs.xs | 10 | ||||
-rw-r--r-- | perl/lib/Sys/Guestfs.pm | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/perl/Guestfs.xs b/perl/Guestfs.xs index ce697c54..27e03d06 100644 --- a/perl/Guestfs.xs +++ b/perl/Guestfs.xs @@ -352,6 +352,16 @@ PREINIT: croak ("set_ready: %s", guestfs_last_error (g)); void +end_busy (g) + guestfs_h *g; +PREINIT: + int r; + PPCODE: + r = guestfs_end_busy (g); + if (r == -1) + croak ("end_busy: %s", guestfs_last_error (g)); + +void mount (g, device, mountpoint) guestfs_h *g; char *device; diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index d059ae42..5aac2e91 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -484,6 +484,14 @@ Setting C<whattodrop> to 3 should drop everything. This automatically calls L<sync(2)> before the operation, so that the maximum guest memory is freed. +=item $h->end_busy (); + +This sets the state to C<READY>, or if in C<CONFIG> then it leaves the +state as is. This is only used when implementing +actions using the low-level API. + +For more information on states, see L<guestfs(3)>. + =item $equality = $h->equal ($file1, $file2); This compares the two files C<file1> and C<file2> and returns |