)]}'
{
  "commit": "aca0beaf77247675400d9771c6269bd899fa379f",
  "tree": "95e68714f2bcc4335bd98560e09d0e335e3fec26",
  "parents": [
    "f536731e5ad3c321dba76fc27af29dd212d51a69"
  ],
  "author": {
    "name": "David Anderson",
    "email": "dvander@google.com",
    "time": "Mon Sep 21 16:34:25 2020 -0700"
  },
  "committer": {
    "name": "David Anderson",
    "email": "dvander@google.com",
    "time": "Wed Oct 14 21:41:36 2020 -0700"
  },
  "message": "libsnapshot: Partially implement OpenSnapshotWriter.\n\nThis is a re-landing of the original CL, with a few changes:\n - The correct device is now returned in MapUpdateSnapshot.\n - The old API is used for tests, and the new API is only tested when\n   used on a VABC device.\n - A sync() call has been added to ensure that writes to the base and\n   target snapshot devices have been fully flushed. This makes\n   IsPartitionUnchanged detect the MapUpdateSnapshot bug.\n\nImplement OpenSnapshotWriter for non-compressed Virtual A/B. This is\ndone by adding an OnlineKernelSnapshotWriter class, which forwards all\nwrites to a dm-snapshot block device.\n\nThis also introduces a new ISnapshotWriter class which extends\nICowWriter, and adds features specific to libsnapshot (versus ICowWriter\nwhich is intended only for the new COW format). The OpenSnapshotReader\ncall has been moved here since the writer retains all the information\nneeded to create the reader.\n\nTo test the new call, vts_libsnapshot_test has been modified to use\nOpenSnapshotWriter.\n\nAs part of this change, all consumers of libsnapshot must now link to\nlibsnapshot_cow.\n\nBug: 168554689\nTest: vts_libsnapshot_test\nTest: full OTA with update_device.py\nTest: incremental OTA with update_device.py\nChange-Id: I90364a58902a4406a37cb14a816642c57a72bec2\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fe05553f1a266501ca39bbe35813356513e20f9f",
      "old_mode": 33188,
      "old_path": "fastboot/Android.bp",
      "new_id": "85a19e5898468fb4eb9a3812d10566e82fa59e24",
      "new_mode": 33188,
      "new_path": "fastboot/Android.bp"
    },
    {
      "type": "modify",
      "old_id": "6e81c8b9853d01ac497a14bccafa6df585431584",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/Android.bp",
      "new_id": "ad592e9d0902dca317d441c1a340f1eb084325f9",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/Android.bp"
    },
    {
      "type": "modify",
      "old_id": "70fdac197a2ab78f7b794439d0030b2afb5d281d",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/cow_writer.cpp",
      "new_id": "f96f174c5291fcef6e39ba101686e886818bd20e",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/cow_writer.cpp"
    },
    {
      "type": "modify",
      "old_id": "245da0c7d3ab1f5f131f0a264abf5e042187d655",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/include/libsnapshot/cow_writer.h",
      "new_id": "2bc017100c266304c42a1643d3e9f081eeb9589d",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/include/libsnapshot/cow_writer.h"
    },
    {
      "type": "modify",
      "old_id": "eb6ad05379cd6d24e7a9cf8067607c3fa62868ed",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/include/libsnapshot/mock_snapshot.h",
      "new_id": "13f19aa87f5f4dc3074deafe713089d645425575",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/include/libsnapshot/mock_snapshot.h"
    },
    {
      "type": "modify",
      "old_id": "6fef58a7fa6aa4f79b72a09161b7892c8f697224",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/include/libsnapshot/snapshot.h",
      "new_id": "1bc972e9a716366106118ecc0d3c22b39eb91a32",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/include/libsnapshot/snapshot.h"
    },
    {
      "type": "modify",
      "old_id": "149f463a99907ddd899e99363aaa60bb9f1df80e",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/include/libsnapshot/snapshot_stub.h",
      "new_id": "cda2bee33441e14eefc623880b0d40d83b6ac084",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/include/libsnapshot/snapshot_stub.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "bf57a0078e1cd427560fa9034474bbdeb95ff82d",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/include/libsnapshot/snapshot_writer.h"
    },
    {
      "type": "modify",
      "old_id": "8e369b052ddef8bdd4397372ab1aaf6881c976d3",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/include_test/libsnapshot/test_helpers.h",
      "new_id": "197aeaa05210ac0005f832485555f7f0789bf775",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/include_test/libsnapshot/test_helpers.h"
    },
    {
      "type": "modify",
      "old_id": "0904fc76bbe4793d0d71ce86c70ce627e23fb933",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/snapshot.cpp",
      "new_id": "2df2c946776dd908884010e1207136ed84ed0d7f",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/snapshot.cpp"
    },
    {
      "type": "modify",
      "old_id": "8ae63054fa3433feeccf13d10e7395d24c6a77c4",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/snapshot_stub.cpp",
      "new_id": "41f5da4a8b10efed3310c411a07d8beb6516eb83",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/snapshot_stub.cpp"
    },
    {
      "type": "modify",
      "old_id": "6ff935bac18c19874176248a3b44bc074a825534",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/snapshot_test.cpp",
      "new_id": "77226adca363cfa32313652d32f5a817c1897e08",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/snapshot_test.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1958f188bf683e04b7f1c5008a2f0f13f13a65f7",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/snapshot_writer.cpp"
    },
    {
      "type": "modify",
      "old_id": "b07bf9182c5a5250ce1129db1aac65c54186c11c",
      "old_mode": 33188,
      "old_path": "fs_mgr/libsnapshot/test_helpers.cpp",
      "new_id": "6104c82437c11647216b3aa1981d2bbe50a70e8d",
      "new_mode": 33188,
      "new_path": "fs_mgr/libsnapshot/test_helpers.cpp"
    },
    {
      "type": "modify",
      "old_id": "13b18762a3aa10b571ad2d6a97056b6769ae4925",
      "old_mode": 33188,
      "old_path": "init/Android.bp",
      "new_id": "19ba21b0fe26b9bc82d36e5fd9b68f61010b2655",
      "new_mode": 33188,
      "new_path": "init/Android.bp"
    },
    {
      "type": "modify",
      "old_id": "da94daf44e83317bf9d58c4d3d29d7882114d7cd",
      "old_mode": 33188,
      "old_path": "init/Android.mk",
      "new_id": "998e0fd467884f645c2b3a62ed9e6ac4557ee80e",
      "new_mode": 33188,
      "new_path": "init/Android.mk"
    }
  ]
}
