@graft(namespace='<STR_LIT>')<EOL>def devices_data():
response = {}<EOL>for part in psutil.disk_partitions():<EOL><INDENT>device = part.device<EOL>response[device] = {<EOL>'<STR_LIT>': device,<EOL>'<STR_LIT>': part.mountpoint,<EOL>'<STR_LIT>': part.fstype,<EOL>'<STR_LIT>': part.opts,<EOL>}<EOL>if part.mountpoint:<EOL><INDENT>usage = psutil.disk_usage(part.mountpoint)<EOL>response[device]['<STR_LIT>'] = {<EOL>'<STR_LIT:size>': mark(usage.total, '<STR_LIT>'),<EOL>'<STR_LIT>': mark(usage.used, '<STR_LIT>'),<EOL>'<STR_LIT>': mark(usage.free, '<STR_LIT>'),<EOL>'<STR_LIT>': mark(usage.percent, '<STR_LIT>')<EOL>}<EOL><DEDENT><DEDENT>return response<EOL>
Returns devices data.