)]}'
{
  "commit": "d793e684277124d55c5d2444007e224635821346",
  "tree": "e4ce5af71082bdec32105a68c8405405273c1f90",
  "parents": [
    "ebb37277796269da36a8bc5d72ed1e8e1fb7d34b"
  ],
  "author": {
    "name": "Mike Snitzer",
    "email": "snitzer@redhat.com",
    "time": "Fri May 10 14:37:14 2013 +0100"
  },
  "committer": {
    "name": "Alasdair G Kergon",
    "email": "agk@redhat.com",
    "time": "Fri May 10 14:37:14 2013 +0100"
  },
  "message": "dm stripe: fix regression in stripe_width calculation\n\nFix a regression in the calculation of the stripe_width in the\ndm stripe target which led to incorrect processing of device limits.\n\nThe stripe_width is the stripe device length divided by the number of\nstripes.  The group of commits in the range f14fa69 (\"dm stripe: fix\nsize test\") to eb850de (\"dm stripe: support for non power of 2\nchunksize\") interfered with each other (a merging error) and led to the\nstripe_width being set incorrectly to the stripe device length divided by\nchunk_size * stripe_count.\n\nFor example, a stripe device\u0027s table with: 0 33553920 striped 3 512 ...\nshould result in a stripe_width of 11184640 (33553920 / 3), but due to\nthe bug it was getting set to 21845 (33553920 / (512 * 3)).\n\nThe impact of this bug is that device topologies that previously worked\nfine with the stripe target are no longer considered valid.  In\nparticular, there is a higher risk of seeing this issue if one of the\nstripe devices has a 4K logical block size.  Resulting in an error\nmessage like this:\n\"device-mapper: table: 253:4: len\u003d21845 not aligned to h/w logical block size 4096 of dm-1\"\n\nThe fix is to swap the order of the divisions and to use a temporary\nvariable for the second one, so that width retains the intended\nvalue.\n\nSigned-off-by: Mike Snitzer \u003csnitzer@redhat.com\u003e\nCc: stable@vger.kernel.org # 3.6+\nSigned-off-by: Alasdair G Kergon \u003cagk@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ea5e878a30b93b1f974d449738fc46b55d5eaeba",
      "old_mode": 33188,
      "old_path": "drivers/md/dm-stripe.c",
      "new_id": "d907ca6227cec3519e46ac95e146656b342125c2",
      "new_mode": 33188,
      "new_path": "drivers/md/dm-stripe.c"
    }
  ]
}
