pyfarm.agent.sysinfo.disks module

Disks

Contains information about the local disks.

class pyfarm.agent.sysinfo.disks.DiskInfo(mountpoint, free, size)

Bases: tuple

free

Alias for field number 1

mountpoint

Alias for field number 0

size

Alias for field number 2

pyfarm.agent.sysinfo.disks.disks(as_dict=False)[source]

Returns a list of disks in the system, in the form of DiskInfo objects.

Parameters:as_dict (bool) – If True then return a dictionary value instead of DiskInfo instances. This is mainly used by the agent to eliminate an extra loop for translation.