)]}'
{
  "commit": "56f101ecce0eafd09e2daf1c4eeb1377d6959261",
  "tree": "9b7c8ceb972c7a4da49bee92fff49939376e35a1",
  "parents": [
    "805b5d98c649d26fc44d2d7755a97f18e62b438a"
  ],
  "author": {
    "name": "Greg Kurz",
    "email": "groug@kaod.org",
    "time": "Tue Aug 30 17:02:27 2016 +0200"
  },
  "committer": {
    "name": "Peter Maydell",
    "email": "peter.maydell@linaro.org",
    "time": "Tue Aug 30 19:23:00 2016 +0100"
  },
  "message": "9pfs: handle walk of \"..\" in the root directory\n\nThe 9P spec at http://man.cat-v.org/plan_9/5/intro says:\n\nAll directories must support walks to the directory .. (dot-dot) meaning\nparent directory, although by convention directories contain no explicit\nentry for .. or . (dot).  The parent of the root directory of a server\u0027s\ntree is itself.\n\nThis means that a client cannot walk further than the root directory\nexported by the server. In other words, if the client wants to walk\n\"/..\" or \"/foo/../..\", the server should answer like the request was\nto walk \"/\".\n\nThis patch just does that:\n- we cache the QID of the root directory at attach time\n- during the walk we compare the QID of each path component with the root\n  QID to detect if we\u0027re in a \"/..\" situation\n- if so, we skip the current component and go to the next one\n\nSigned-off-by: Greg Kurz \u003cgroug@kaod.org\u003e\nReviewed-by: Eric Blake \u003ceblake@redhat.com\u003e\nSigned-off-by: Peter Maydell \u003cpeter.maydell@linaro.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "51c6f9883bf8767df9e07f858da0a73f0b51d482",
      "old_mode": 33188,
      "old_path": "hw/9pfs/9p.c",
      "new_id": "dfe293d11d1ca3846a0792b7aabf32277c23a929",
      "new_mode": 33188,
      "new_path": "hw/9pfs/9p.c"
    },
    {
      "type": "modify",
      "old_id": "b4f757ab544997503b64befe61cccdaa70b55a40",
      "old_mode": 33188,
      "old_path": "hw/9pfs/9p.h",
      "new_id": "a38603398ef5bb348a5069670f73bdbf7a984165",
      "new_mode": 33188,
      "new_path": "hw/9pfs/9p.h"
    }
  ]
}
