)]}'
{
  "commit": "28e8be31803b19d0d8f76216cb11b480b8a98bec",
  "tree": "9edd81d3a6c0029e18da8a6c017f6cf087302d14",
  "parents": [
    "a72e27d3727b383be39498f8b5c9b944d30e0f9b"
  ],
  "author": {
    "name": "Jie Liu",
    "email": "jeff.liu@oracle.com",
    "time": "Wed Sep 11 14:20:05 2013 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Sep 11 15:56:53 2013 -0700"
  },
  "message": "ocfs2: fix the end cluster offset of FIEMAP\n\nCall fiemap ioctl(2) with given start offset as well as an desired mapping\nrange should show extents if possible.  However, we somehow figure out the\nend offset of mapping via \u0027mapping_end -\u003d cpos\u0027 before iterating the\nextent records which would cause problems if the given fiemap length is\ntoo small to a cluster size, e.g,\n\nCluster size 4096:\ndebugfs.ocfs2 1.6.3\n        Block Size Bits: 12   Cluster Size Bits: 12\n\nThe extended fiemap test utility From David:\nhttps://gist.github.com/anonymous/6172331\n\n# dd if\u003d/dev/urandom of\u003d/ocfs2/test_file bs\u003d1M count\u003d1000\n# ./fiemap /ocfs2/test_file 4096 10\nstart: 4096, length: 10\nFile /ocfs2/test_file has 0 extents:\n#\tLogical          Physical         Length           Flags\n\t^^^^^ \u003c-- No extent is shown\n\nIn this case, at ocfs2_fiemap(): cpos \u003d\u003d mapping_end \u003d\u003d 1. Hence the\nloop of searching extent records was not executed at all.\n\nThis patch remove the in question \u0027mapping_end -\u003d cpos\u0027, and loops\nuntil the cpos is larger than the mapping_end as usual.\n\n# ./fiemap /ocfs2/test_file 4096 10\nstart: 4096, length: 10\nFile /ocfs2/test_file has 1 extents:\n#\tLogical          Physical         Length           Flags\n0:\t0000000000000000 0000000056a01000 0000000006a00000 0000\n\nSigned-off-by: Jie Liu \u003cjeff.liu@oracle.com\u003e\nReported-by: David Weber \u003cwb@munzinger.de\u003e\nTested-by: David Weber \u003cwb@munzinger.de\u003e\nCc: Sunil Mushran \u003csunil.mushran@gmail.com\u003e\nCc: Mark Fashen \u003cmfasheh@suse.de\u003e\nCc: Joel Becker \u003cjlbec@evilplan.org\u003e\nCc: \u003cstable@vger.kernel.org\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4bf2b763467fd78bb0dbc316b49b6f341f3125e7",
      "old_mode": 33188,
      "old_path": "fs/ocfs2/extent_map.c",
      "new_id": "767370b656ca67af7ba8d2ed81783752c83742d2",
      "new_mode": 33188,
      "new_path": "fs/ocfs2/extent_map.c"
    }
  ]
}
