)]}'
{
  "commit": "46a4e4e6085c1e5ae498e350009ff6d321d9ee67",
  "tree": "7fed98f269c27d26b150bf5576b86b513bb02af0",
  "parents": [
    "b8c6d0958943c96ca9401961a1200568c7ec0268"
  ],
  "author": {
    "name": "Stefan Hajnoczi",
    "email": "stefanha@linux.vnet.ibm.com",
    "time": "Tue Mar 29 20:04:41 2011 +0100"
  },
  "committer": {
    "name": "Kevin Wolf",
    "email": "kwolf@redhat.com",
    "time": "Thu Apr 07 13:51:47 2011 +0200"
  },
  "message": "block: Do not cache device size for removable media\n\nThe block layer caches the device size to avoid doing lseek(fd, 0,\nSEEK_END) every time this value is needed.  For removable media the\ndevice size becomes stale if a new medium is inserted.  This patch\nsimply prevents device size caching for removable media.\n\nA smarter solution is to update the cached device size when a new medium\nis inserted.  Given that there are currently bugs with CD-ROM media\nchange I do not want to implement that approach until we\u0027ve gotten\nthings correct first.\n\nSigned-off-by: Stefan Hajnoczi \u003cstefanha@linux.vnet.ibm.com\u003e\nSigned-off-by: Kevin Wolf \u003ckwolf@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d8da3b09d336725d51ded5f61b926914b916b31e",
      "old_mode": 33188,
      "old_path": "block.c",
      "new_id": "f731c7afbfaf6467e4df66c1bb8b55aa69918c69",
      "new_mode": 33188,
      "new_path": "block.c"
    }
  ]
}
