X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=python%2Fguestfs.py;h=d03a7a9d7f9e2ecdc93a4d78d96d5a190d1028c3;hp=e2989223945ac5da4fd7d92de814b46d423870c1;hb=f47dafd23186938a22d41739d9bc695c7760b912;hpb=24bee20ce4196d45891925332a47a05aa5e40938 diff --git a/python/guestfs.py b/python/guestfs.py index e298922..d03a7a9 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1233,3 +1233,21 @@ class GuestFS: """ return libguestfsmod.dmesg (self._o) + def ping_daemon (self): + u"""This is a test probe into the guestfs daemon running + inside the qemu subprocess. Calling this function checks + that the daemon responds to the ping message, without + affecting the daemon or attached block device(s) in any + other way. + """ + return libguestfsmod.ping_daemon (self._o) + + def equal (self, file1, file2): + u"""This compares the two files "file1" and "file2" and + returns true if their content is exactly equal, or false + otherwise. + + The external cmp(1) program is used for the comparison. + """ + return libguestfsmod.equal (self._o, file1, file2) +