)]}'
{"cinder/privsep/fs.py":[{"author":{"_account_id":4523,"name":"Eric Harney","email":"eharney@redhat.com","username":"eharney"},"change_message_id":"32669e5b83553539488dc0f71ae0c6cf29ebc9dd","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"@cinder.privsep.sys_admin_pctxt.entrypoint"},{"line_number":33,"context_line":"def truncate(size, path):"},{"line_number":34,"context_line":"    processutils.execute(\u0027truncate\u0027, \u0027-s\u0027, size, path)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_6a43646d","line":34,"updated":"2019-01-30 14:54:37.000000000","message":"If we\u0027re doing this with privsep, shouldn\u0027t we just replace the shell call to \"truncate\" with some basic Python I/O that does an open, seek, etc., to achieve the same thing?\n\n(Or maybe some Python library call that does the same thing.)","commit_id":"76347c87ec50fce99dc1f633002183c306b674a8"},{"author":{"_account_id":4523,"name":"Eric Harney","email":"eharney@redhat.com","username":"eharney"},"change_message_id":"80dee6174b22fc209ace879351fc2582a6a05032","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"@cinder.privsep.sys_admin_pctxt.entrypoint"},{"line_number":33,"context_line":"def truncate(size, path):"},{"line_number":34,"context_line":"    processutils.execute(\u0027truncate\u0027, \u0027-s\u0027, size, path)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9fdfeff1_aa1b8c7e","line":34,"in_reply_to":"9fdfeff1_6a43646d","updated":"2019-01-30 14:55:54.000000000","message":"Such as... truncate()\n\nhttps://docs.python.org/3/library/io.html#io.IOBase.truncate","commit_id":"76347c87ec50fce99dc1f633002183c306b674a8"}]}
