dm thin: set pool read-only if breaking_sharing fails block allocation
authorMike Snitzer <snitzer@redhat.com>
Wed, 21 Aug 2013 21:40:11 +0000 (17:40 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 6 Sep 2013 00:46:06 +0000 (20:46 -0400)
commitd6fc204201ca7d019ab0eb5304d1e5c690ddedc8
tree6efedcb54bc1452214541d68058160d508723510
parent4fa5971a69ea1c427a23f2b8b4123f0f0d835861
dm thin: set pool read-only if breaking_sharing fails block allocation

break_sharing() now handles an arbitrary alloc_data_block() error
the same way as provision_block(): marks pool read-only and errors the
cell.

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