From 9222136ac9b2e404dba128b1ac74dacaa8bf1038 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 1 May 2009 11:18:53 +0100 Subject: Generated code for drop-caches command. --- perl/lib/Sys/Guestfs.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'perl/lib') diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index 9501a83f..63a49259 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -461,6 +461,18 @@ C can also be a named pipe. See also C<$h-Eupload>, C<$h-Ecat>. +=item $h->drop_caches ($whattodrop); + +This instructs the guest kernel to drop its page cache, +and/or dentries and inode caches. The parameter C +tells the kernel what precisely to drop, see +L + +Setting C to 3 should drop everything. + +This automatically calls L before the operation, +so that the maximum guest memory is freed. + =item $existsflag = $h->exists ($path); This returns C if and only if there is a file, directory -- cgit