'returns state string'

def measure(self, path):

    if (not path):
        return (-1)
    output = subprocess.check_output(['hdparm', '-C', ('/dev/' + path)]).splitlines()
    if (len(output) < 3):
        return None
    r = output[(-1)].split(':')[(-1)].strip()
    return r
