)]}'
{
  "commit": "a26432a8fe5981ca1bb41cb6aacddfc3765666ac",
  "tree": "984398d04b7067443b4c9cb1fdea7a93362e57fd",
  "parents": [
    "6ded6548c4d3606923d606981dd29f224bcfc723"
  ],
  "author": {
    "name": "Alex Deymo",
    "email": "deymo@chromium.org",
    "time": "Thu Mar 12 16:08:04 2015 -0700"
  },
  "committer": {
    "name": "ChromeOS Commit Bot",
    "email": "chromeos-commit-bot@chromium.org",
    "time": "Sat Mar 14 06:59:33 2015 +0000"
  },
  "message": "update_engine: Use the rootfs size specified by verity.\n\nWhen using rootfs verification and generating a payload, it is important\nto generate a payload that writes all the blocks verity expects to hash\nin the hash tree, even if those blocks are never used by the filesystem.\n\nWhen using squashfs, the filesystem is padded with zeros up to the\nfs_size provided in the disk_layout.json, which is used as the size\nof the dm-verity device. Because of this, it is important to always\ngenerate a payload that writes all that.\n\nThis patch parses the kernel using vboot_host tools and updates the\nrootfs_size value with the one specified to verity in the kernel\ncommand line. When no verity options are found or the kernel is not\nprovided (as in the case of a full kernel update in a delta payload)\nonly the filesystem part is considered for the rootfs_size. This\nmeans that the extra zeros in the source rootfs won\u0027t be used for\nthe delta payload when generating a full kernel payload, and also\nmeans that the zeros after the squashfs won\u0027t be written when\ngenerating the new rootfs with rootfs verification disabled.\n\nBUG\u003dchromium:463783\nTEST\u003dFEATURES\u003dtest emerge-link update_engine\nTEST\u003dRan delta_generator with invalind kernels (in full and delta mode).\nTEST\u003dRan cros_generate_update_payload with real images with both\nsquashfs and ext2.\n\nChange-Id: Id151063722a20d27c50724f6b27f774a3436e3ea\nReviewed-on: https://chromium-review.googlesource.com/259839\nReviewed-by: Alex Vakulenko \u003cavakulenko@chromium.org\u003e\nCommit-Queue: Alex Deymo \u003cdeymo@chromium.org\u003e\nTrybot-Ready: Alex Deymo \u003cdeymo@chromium.org\u003e\nTested-by: Alex Deymo \u003cdeymo@chromium.org\u003e\nReviewed-by: Don Garrett \u003cdgarrett@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fb79a2f97d8da822689374872200548e8bead7a7",
      "old_mode": 33188,
      "old_path": "payload_generator/generate_delta_main.cc",
      "new_id": "2cb8de2479f2e47b3cf279d4b53c7d27f37c8d85",
      "new_mode": 33188,
      "new_path": "payload_generator/generate_delta_main.cc"
    },
    {
      "type": "modify",
      "old_id": "956f362bd81bab34add117da216f76244f9cb0ec",
      "old_mode": 33188,
      "old_path": "payload_generator/payload_generation_config.cc",
      "new_id": "4249b9eb4a8c7759290db897c3822738bb6f23db",
      "new_mode": 33188,
      "new_path": "payload_generator/payload_generation_config.cc"
    },
    {
      "type": "modify",
      "old_id": "616148a7b65fafdaa1f39685de66d3da3206d4e3",
      "old_mode": 33188,
      "old_path": "payload_generator/payload_generation_config.h",
      "new_id": "02bd8d4287bfceded1d0df18cec9e8d05c9b6f5b",
      "new_mode": 33188,
      "new_path": "payload_generator/payload_generation_config.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c9198e0910a475ec6ccc5fbf00fe06b6fbe02873",
      "new_mode": 33188,
      "new_path": "payload_generator/verity_utils.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3f7b297fde58dff1582b30a053b23aad6570a2b6",
      "new_mode": 33188,
      "new_path": "payload_generator/verity_utils.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d1e54e64533bb3f37055360b7eeb3f83470db8f7",
      "new_mode": 33188,
      "new_path": "payload_generator/verity_utils_unittest.cc"
    },
    {
      "type": "modify",
      "old_id": "8dd5d2d1bc2a2a372862ef98efd9b02d3fc228b4",
      "old_mode": 33188,
      "old_path": "update_engine.gyp",
      "new_id": "e8db1ed43a1dfc258c1d22f452dcac6929a7549a",
      "new_mode": 33188,
      "new_path": "update_engine.gyp"
    }
  ]
}
