X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=python%2Fguestfs.py;h=d838aaea18672eb05939bc22270317a2b7e20222;hp=30728be5a1b2c44a9a6b8f369bb1dcd15f2979f8;hb=b2ed0f4c55c2bd3d07341ba2207f0cb238eb4e18;hpb=405cf2a5772611ea05cca9fefa843154a9bc64a3 diff --git a/python/guestfs.py b/python/guestfs.py index 30728be..d838aae 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1807,3 +1807,23 @@ class GuestFS: """ return libguestfsmod.tail_n (self._o, nrlines, path) + def df (self): + u"""This command runs the "df" command to report disk space + used. + + This command is mostly useful for interactive sessions. + It is *not* intended that you try to parse the output + string. Use "statvfs" from programs. + """ + return libguestfsmod.df (self._o) + + def df_h (self): + u"""This command runs the "df -h" command to report disk + space used in human-readable format. + + This command is mostly useful for interactive sessions. + It is *not* intended that you try to parse the output + string. Use "statvfs" from programs. + """ + return libguestfsmod.df_h (self._o) +