Return disk usage information for the partition in :py:class:`Fstat`
        format. If disk usage information is not available, then ``None`` is
        returned. Disk usage information is only available for regular
        filesystems that are mounted.

def stat(self):
        """
        Return disk usage information for the partition in :py:class:`Fstat`
        format. If disk usage information is not available, then ``None`` is
        returned. Disk usage information is only available for regular
        filesystems that are mounted.
        """
        try:
            # Always use the last mount point because it's a very common
            # situation when mount points are moved, or sotorage is
            # double-mounted. Last mount point is always the newest.
            mp = self.mount_points[-1]
        except IndexError:
            return None
        stat = os.statvfs(mp)
        free = stat.f_frsize * stat.f_bavail
        total = stat.f_frsize * stat.f_blocks
        used = total - free
        used_pct = round(used / total * 100)
        free_pct = 100 - used_pct
        return Fstat(total, used, free, used_pct, free_pct)