)]}'
{
  "commit": "0f39ac9a07cc10278e37d87076b143008f28aa3b",
  "tree": "f91b54819320711a4ffda49d5542291fb58f0cd7",
  "parents": [
    "a9031675b9f757eef0fe8c99284ec0133c032c32"
  ],
  "author": {
    "name": "Max Reitz",
    "email": "mreitz@redhat.com",
    "time": "Thu Sep 19 12:29:15 2013 +0200"
  },
  "committer": {
    "name": "Stefan Hajnoczi",
    "email": "stefanha@redhat.com",
    "time": "Fri Sep 20 12:48:03 2013 +0200"
  },
  "message": "qcow2: Correct snapshots size for overlap check\n\nUsing s-\u003esnapshots_size instead of snapshots_size for the metadata\noverlap check in qcow2_write_snapshots leads to the detection of an\noverlap with the main qcow2 image header when deleting the last\nsnapshot, since s-\u003esnapshots_size has not yet been updated and is\ntherefore non-zero. However, the offset returned by qcow2_alloc_clusters\nwill be zero since snapshots_size is zero. Therefore, an overlap is\ndetected albeit no such will occur.\n\nThis patch fixes this by replacing s-\u003esnapshots_size by snapshots_size\nwhen calling qcow2_pre_write_overlap_check.\n\nSigned-off-by: Max Reitz \u003cmreitz@redhat.com\u003e\nSigned-off-by: Stefan Hajnoczi \u003cstefanha@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7d144205c3fdd65bae8a728e2f9d7ad54bb6bdc7",
      "old_mode": 33188,
      "old_path": "block/qcow2-snapshot.c",
      "new_id": "5e8a7794f485b0f45b248102369747d982043075",
      "new_mode": 33188,
      "new_path": "block/qcow2-snapshot.c"
    }
  ]
}
