)]}'
{
  "commit": "b7ab0fea37c15ca9e249c42c46f5c48fd1a0943c",
  "tree": "fe889a84ce2b46db7ab45dd2a2558c863ea64d0e",
  "parents": [
    "cdba7fee1daa8865bac2d69da288171fe7c21aae"
  ],
  "author": {
    "name": "Kevin Wolf",
    "email": "kwolf@redhat.com",
    "time": "Tue May 22 17:01:20 2012 +0200"
  },
  "committer": {
    "name": "Kevin Wolf",
    "email": "kwolf@redhat.com",
    "time": "Fri Jun 15 14:03:43 2012 +0200"
  },
  "message": "qcow2: Fix avail_sectors in cluster allocation code\n\navail_sectors should really be the number of sectors from the start of\nthe allocation, not from the start of the write request.\n\nWe\u0027re lucky enough that this mistake didn\u0027t cause any real bug.\navail_sectors is only used in the intialiser of QCowL2Meta:\n\n  .nb_available   \u003d MIN(requested_sectors, avail_sectors),\n\nm-\u003enb_available in turn is only used for COW at the end of the\nallocation. A COW occurs only if the request wasn\u0027t cluster aligned,\nwhich in turn would imply that requested_sectors was less than\navail_sectors (both in the original and in the fixed version). In this\ncase avail_sectors is ignored and therefore the mistake doesn\u0027t cause\nany misbehaviour.\n\nSigned-off-by: Kevin Wolf \u003ckwolf@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "98fba71fd7555139bf630cb8c33a1c2156464d0e",
      "old_mode": 33188,
      "old_path": "block/qcow2-cluster.c",
      "new_id": "d7e0e19d9c0063838a53e8ad676b11131160e3be",
      "new_mode": 33188,
      "new_path": "block/qcow2-cluster.c"
    }
  ]
}
