{"push_id":741373283,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"b9259712188db5d08c5b8a688327ba2174954f19","before":"a6543f8d3300b27c60165ef826b8993b6224e216","commits":[{"sha":"8788054e333f8b1aa322c72b76c89f720acf17ab","author":{"email":"7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org","name":"Cyrill Gorcunov"},"message":"sk-unix: Add trivial name resolver for sockets with relative names\n\nUnix sockets may be created with non-absolute (relative) path\n(when kernel creates one it always use AT_FDCWD for name resolving),\nSo when we collect sockets we see them as having names without leading\nslash.\n\nIn common cases for such sockets application doesn't change own\nworking directory after that but this is not always the true.\nSo we need to invent some name resolver. The good candidate is\nIRMAP cache but after a number of testings I found that it might\nslow down performance very dramatically. Thus we need some more\nintelligent way here.\n\nFor a while, for common applications such as postfix, fetching\ndumpee working directory and root is enough. So here what we do\n\n - when socket get collected from diag interface we remember\n   its relative name parameters (device and inode) but postprone\n   name resolving to not bring perf penalty until really needed\n\n - when we meet a socket to dump with relative name assigned we\n   try to use $cwd/name and $root/name for this socket to check\n   if it has been created in those directories. On success we\n   simply remember the directory in image and when restore such\n   socket call for chdir helper to change working dir and generate\n   relative name\n\nv2:\n\n - Use new unlink_stale to remove sockets we're to restore\n - Use *at() helpers once we're changed working dir in bind_unix_sk\n - Add more debug ouput\n\nSigned-off-by: Cyrill Gorcunov <gorcunov@openvz.org>\nSigned-off-by: Pavel Emelyanov <xemul@parallels.com>","distinct":true,"url":"https://api.github.com/repos/xemul/criu/commits/8788054e333f8b1aa322c72b76c89f720acf17ab"},{"sha":"b9259712188db5d08c5b8a688327ba2174954f19","author":{"email":"7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org","name":"Cyrill Gorcunov"},"message":"test: Add testing of a unix socket with relative name\n\nSigned-off-by: Cyrill Gorcunov <gorcunov@openvz.org>\nSigned-off-by: Pavel Emelyanov <xemul@parallels.com>","distinct":true,"url":"https://api.github.com/repos/xemul/criu/commits/b9259712188db5d08c5b8a688327ba2174954f19"}]}