)]}'
{"swift/common/utils.py":[{"author":{"_account_id":6198,"name":"Peter Portante","email":"peter.a.portante@gmail.com","username":"peter-a-portante"},"change_message_id":"802e6f28f374740ea71dd63b038bf35deff2e41a","unresolved":false,"context_lines":[{"line_number":2224,"context_line":"    \"\"\""},{"line_number":2225,"context_line":"    try:"},{"line_number":2226,"context_line":"        s1 \u003d os.lstat(path)"},{"line_number":2227,"context_line":"        s2 \u003d os.lstat(os.path.join(path, \u0027..\u0027))"},{"line_number":2228,"context_line":"    except os.error:"},{"line_number":2229,"context_line":"        # It doesn\u0027t exist -- so not a mount point :-)"},{"line_number":2230,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F%2FMYQ%3D","line":2227,"updated":"2013-11-13 04:59:14.000000000","message":"The point of the original code was to NOT perform the second lstat unless we need to.","commit_id":"c050818f52406260fcf2fba82c7e9c10d2f72025"},{"author":{"_account_id":6835,"name":"Kun Huang","email":"gareth@openstacker.org","username":"academicgareth"},"change_message_id":"7f41d9ad30d08735800db387ec7b8c1f54f6b4f9","unresolved":false,"context_lines":[{"line_number":2241,"context_line":""},{"line_number":2242,"context_line":"    ino1 \u003d s1.st_ino"},{"line_number":2243,"context_line":"    ino2 \u003d s2.st_ino"},{"line_number":2244,"context_line":"    if ino1 \u003d\u003d ino2:"},{"line_number":2245,"context_line":"        # path/.. is the same i-node as path"},{"line_number":2246,"context_line":"        return True"},{"line_number":2247,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F%2FMmM%3D","line":2244,"updated":"2013-11-13 03:14:04.000000000","message":"What\u0027s the case does this line care? A path are on same device and same inode with its parent path is mount point. I can\u0027t imagine it.","commit_id":"c050818f52406260fcf2fba82c7e9c10d2f72025"},{"author":{"_account_id":6198,"name":"Peter Portante","email":"peter.a.portante@gmail.com","username":"peter-a-portante"},"change_message_id":"802e6f28f374740ea71dd63b038bf35deff2e41a","unresolved":false,"context_lines":[{"line_number":2241,"context_line":""},{"line_number":2242,"context_line":"    ino1 \u003d s1.st_ino"},{"line_number":2243,"context_line":"    ino2 \u003d s2.st_ino"},{"line_number":2244,"context_line":"    if ino1 \u003d\u003d ino2:"},{"line_number":2245,"context_line":"        # path/.. is the same i-node as path"},{"line_number":2246,"context_line":"        return True"},{"line_number":2247,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F%2FMXw%3D","line":2244,"in_reply_to":"AAAATn%2F%2FMmM%3D","updated":"2013-11-13 04:59:14.000000000","message":"Try it out.\n\nIf you create a directory /tmp/foo and do os.lstat(\"/tmp/foo\") and os.lstat(\"/tmp/foo/..\") the inode numbers for those two objects are different, since /tmp/foo/.. is effectively /tmp.\n\nBut if your path is \"/\", then \"/\" and \"/..\" will have the same inode number. So this catches checking \"/\" is a mount point, since it will have the same device id and fail the check at line 2238 above.","commit_id":"c050818f52406260fcf2fba82c7e9c10d2f72025"}]}
