)]}'
{"swift/common/middleware/recon.py":[{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"c2d323b400c7726d6d9af2c0beb2a7c425cbc14e","unresolved":false,"context_lines":[{"line_number":233,"context_line":"                except OSError as err:"},{"line_number":234,"context_line":"                    mounted \u003d str(err)"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"            if mounted is True or not self.mount_check:"},{"line_number":237,"context_line":"                path \u003d os.path.join(self.devices, entry)"},{"line_number":238,"context_line":"                disk \u003d os.statvfs(path)"},{"line_number":239,"context_line":"                capacity \u003d disk.f_bsize * disk.f_blocks"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_0afa7642","line":236,"updated":"2016-05-18 23:23:32.000000000","message":"\"is True\" seems a little brittle to me. I liked the truthiness check better.","commit_id":"be764dfe9ab9382f9148d758c2d54c78ba81f865"},{"author":{"_account_id":5600,"name":"Brian Cline","email":"bcline@softlayer.com","username":"briancline"},"change_message_id":"25372f06df4171d45bc9f7344c94bffa3a3a05e1","unresolved":false,"context_lines":[{"line_number":233,"context_line":"                except OSError as err:"},{"line_number":234,"context_line":"                    mounted \u003d str(err)"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"            if mounted is True or not self.mount_check:"},{"line_number":237,"context_line":"                path \u003d os.path.join(self.devices, entry)"},{"line_number":238,"context_line":"                disk \u003d os.statvfs(path)"},{"line_number":239,"context_line":"                capacity \u003d disk.f_bsize * disk.f_blocks"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_ee60e337","line":236,"in_reply_to":"bab6814e_0afa7642","updated":"2016-05-19 06:18:43.000000000","message":"I\u0027m guessing it might\u0027ve been done this way to better distinguish between a disk that truly is mounted versus the var possibly containing a non-empty message from OSError, while still trying to provide size info for both scenarios.\n\nMaybe another way to raise the same concern -- does this patch intentionally also modify recon\u0027s behavior for disks where check_mount raises an OSError? On master it looks like it\u0027ll still return statvfs numbers if it can get them, and with this change it\u0027d return empty strings for those numbers instead.","commit_id":"be764dfe9ab9382f9148d758c2d54c78ba81f865"}]}
