X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2Fguestfs.py;h=3db9ac0ff582c49ddd9d1ad9bedc0222dbd3ee77;hb=427b5f079fd344919ecf568bab2084825aacf606;hp=e2989223945ac5da4fd7d92de814b46d423870c1;hpb=24bee20ce4196d45891925332a47a05aa5e40938;p=libguestfs.git diff --git a/python/guestfs.py b/python/guestfs.py index e298922..3db9ac0 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -700,7 +700,7 @@ class GuestFS: def mkfs (self, fstype, device): u"""This creates a filesystem on "device" (usually a - partition of LVM logical volume). The filesystem type is + partition or LVM logical volume). The filesystem type is "fstype", for example "ext3". """ return libguestfsmod.mkfs (self._o, fstype, device) @@ -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) +