]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm thin: fix stacking of geometry limits
authorMike Snitzer <snitzer@redhat.com>
Tue, 20 Aug 2013 19:02:41 +0000 (15:02 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 20 Aug 2013 19:02:41 +0000 (15:02 -0400)
commitca78602f841cdf7bafa7d39a819c39618b522708
treececddf3bbb42ae79bc6262293446d7ad73ba1601
parent5e8bc68279644b0f05fd7ef3f24253e6948a8261
dm thin: fix stacking of geometry limits

Do not blindly override the queue limits (specifically io_min and
io_opt).  Allow traditional stacking of these limits if io_opt is a
factor of the thin-pool's data block size.

Without this patch mkfs.xfs does not recognize the thin device's
provided limits as a useful geometry (e.g. raid) so these hints are
ignored.  This was due to setting io_min to a useless value.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair Kergon <agk@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
drivers/md/dm-thin.c