)]}'
{
  "commit": "2e82d8926c8582c9924e2f189683c40b529ac2f8",
  "tree": "07c1e43edde90bc8dac6c430607703f2e55f11f3",
  "parents": [
    "6450946d03775a0eb2ec46632aabd6729cd1ce27"
  ],
  "author": {
    "name": "David Howells",
    "email": "dhowells@redhat.com",
    "time": "Fri Jun 07 15:13:21 2019 +0100"
  },
  "committer": {
    "name": "David Howells",
    "email": "dhowells@redhat.com",
    "time": "Fri Jun 28 16:20:10 2019 +0100"
  },
  "message": "Add sample notification program\n\nThis needs to be linked with -lkeyutils.\n\nIt is run like:\n\n\t./watch_test\n\nand watches \"/\" for mount changes and the current session keyring for key\nchanges:\n\n\t# keyctl add user a a @s\n\t1035096409\n\t# keyctl unlink 1035096409 @s\n\t# mount -t tmpfs none /mnt/nfsv3tcp/\n\t# umount /mnt/nfsv3tcp\n\nproducing:\n\n\t# ./watch_test\n\tptrs h\u003d4 t\u003d2 m\u003d20003\n\tNOTIFY[00000004-00000002] ty\u003d0003 sy\u003d0002 i\u003d01000010\n\tKEY 2ffc2e5d change\u003d2[linked] aux\u003d1035096409\n\tptrs h\u003d6 t\u003d4 m\u003d20003\n\tNOTIFY[00000006-00000004] ty\u003d0003 sy\u003d0003 i\u003d01000010\n\tKEY 2ffc2e5d change\u003d3[unlinked] aux\u003d1035096409\n\tptrs h\u003d8 t\u003d6 m\u003d20003\n\tNOTIFY[00000008-00000006] ty\u003d0001 sy\u003d0000 i\u003d02000010\n\tMOUNT 00000013 change\u003d0[new_mount] aux\u003d168\n\tptrs h\u003da t\u003d8 m\u003d20003\n\tNOTIFY[0000000a-00000008] ty\u003d0001 sy\u003d0001 i\u003d02000010\n\tMOUNT 00000013 change\u003d1[unmount] aux\u003d168\n\nOther events may be produced, such as with a failing disk:\n\n\tptrs h\u003d5 t\u003d2 m\u003d6000004\n\tNOTIFY[00000005-00000002] ty\u003d0004 sy\u003d0006 i\u003d04000018\n\tBLOCK 00800050 e\u003d6[critical medium] s\u003d5be8\n\nThis corresponds to:\n\n\tprint_req_error: critical medium error, dev sdf, sector 23528 flags 0\n\nin dmesg.\n\nSigned-off-by: David Howells \u003cdhowells@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f792c13614f49bd499ee4366b83d8ec2ce6c0ce9",
      "old_mode": 33188,
      "old_path": "samples/watch_queue/watch_test.c",
      "new_id": "0018ecac188a3d9582a347a4fb44880fa89a4609",
      "new_mode": 33188,
      "new_path": "samples/watch_queue/watch_test.c"
    }
  ]
}
