)]}'
{
  "commit": "25ad8e6e95770d4f01844dc2542d861e73b174b2",
  "tree": "c7e471d5a4e33bca28c54353f5317afe6accd9fa",
  "parents": [
    "972b543c6b63579aee590b738d21af09f01569f7"
  ],
  "author": {
    "name": "Fam Zheng",
    "email": "famz@redhat.com",
    "time": "Wed Jan 13 16:37:41 2016 +0800"
  },
  "committer": {
    "name": "Kevin Wolf",
    "email": "kwolf@redhat.com",
    "time": "Wed Jan 20 13:36:23 2016 +0100"
  },
  "message": "qemu-img: Speed up comparing empty/zero images\n\nTwo empty raw files are always compared by actually reading data even if\nthere is no data, because BDRV_BLOCK_ZERO is considered \"allocated\" in\nbdrv_is_allocated_above().  That is inefficient.\n\nUse bdrv_get_block_status_above() for more information, and skip the\nconsecutive zero sectors.\n\nThis brings a huge speed up in comparing sparse/empty raw images:\n\n    $ qemu-img create a 1G\n\n    $ time ~/build/master/bin/qemu-img compare a a\n    Images are identical.\n\n    real    0m6.583s\n    user    0m0.191s\n    sys     0m6.367s\n\n    $ time qemu-img compare a a\n    Images are identical.\n\n    real    0m0.033s\n    user    0m0.003s\n    sys     0m0.031s\n\nSigned-off-by: Fam Zheng \u003cfamz@redhat.com\u003e\nReviewed-by: Paolo Bonzini \u003cpbonzini@redhat.com\u003e\nSigned-off-by: Kevin Wolf \u003ckwolf@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a5949e6b05faa37135f3ce801e1cb296d240d5da",
      "old_mode": 33188,
      "old_path": "qemu-img.c",
      "new_id": "67739439c5c4263e3cac6b73a67874461c17b562",
      "new_mode": 33188,
      "new_path": "qemu-img.c"
    }
  ]
}
