]> git.ipfire.org Git - people/ms/linux.git/commit
dm thin: don't allow messages to be sent to a pool target in READ_ONLY or FAIL mode
authorJoe Thornber <ejt@redhat.com>
Mon, 26 Jan 2015 11:38:21 +0000 (11:38 +0000)
committerJiri Slaby <jslaby@suse.cz>
Sun, 8 Feb 2015 19:02:01 +0000 (20:02 +0100)
commit5702185d1032c7d34adf38eb40e82dd0a474cdfc
tree36d06bd2dc22367bfbbe9f45df230eb3d706b462
parent708dddc00d67f6e37261b4e9a6d5b7cf2853c63a
dm thin: don't allow messages to be sent to a pool target in READ_ONLY or FAIL mode

commit 2a7eaea02b99b6e267b1e89c79acc6e9a51cee3b upstream.

You can't modify the metadata in these modes.  It's better to fail these
messages immediately than let the block-manager deny write locks on
metadata blocks.  Otherwise these failed metadata changes will trigger
'needs_check' to get set in the metadata superblock -- requiring repair
using the thin_check utility.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/md/dm-thin.c