diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-05-01 11:18:53 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-05-01 11:18:53 +0100 |
commit | 9222136ac9b2e404dba128b1ac74dacaa8bf1038 (patch) | |
tree | 84d74f0c966b925c3e22bf3322256df10455d94b /python/guestfs.py | |
parent | 2dc9e8a858b62830d15a8186fe575eb7903d2171 (diff) | |
download | libguestfs-9222136ac9b2e404dba128b1ac74dacaa8bf1038.tar.gz libguestfs-9222136ac9b2e404dba128b1ac74dacaa8bf1038.tar.xz libguestfs-9222136ac9b2e404dba128b1ac74dacaa8bf1038.zip |
Generated code for drop-caches command.
Diffstat (limited to 'python/guestfs.py')
-rw-r--r-- | python/guestfs.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/python/guestfs.py b/python/guestfs.py index 291af5d6..6c425bc2 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1208,3 +1208,16 @@ class GuestFS: """ return libguestfsmod.mv (self._o, src, dest) + def drop_caches (self, whattodrop): + u"""This instructs the guest kernel to drop its page cache, + and/or dentries and inode caches. The parameter + "whattodrop" tells the kernel what precisely to drop, + see <http://linux-mm.org/Drop_Caches> + + Setting "whattodrop" to 3 should drop everything. + + This automatically calls sync(2) before the operation, + so that the maximum guest memory is freed. + """ + return libguestfsmod.drop_caches (self._o, whattodrop) + |