dm persistent data: introduce dm_bm_set_read_only
commit310975573ba40ab526b0d76d28225d8d0999d72b
authorJoe Thornber <ejt@redhat.com>
Fri, 27 Jul 2012 14:08:15 +0000 (27 15:08 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 27 Jul 2012 14:08:15 +0000 (27 15:08 +0100)
tree3ad362bb4fc0c70662c7337723222df16611f2eb
parent4afdd680f7c106e1c87b6dd7af9751c282ecb4b0
dm persistent data: introduce dm_bm_set_read_only

Introduce dm_bm_set_read_only to switch the block manager into a
read-only mode.  To be used when dm-thin degrades due to io errors on
the metadata device.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/persistent-data/dm-block-manager.c
drivers/md/persistent-data/dm-block-manager.h