]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2015 06:35:50 +0000 (22:35 -0800)
commite6f2661f9e1b7d5454f5f2d6e55c7d41460bc36c
tree5da8e1ae5785addf928f24a208a84a4cf2517029
parente98f093f513ee393d55232217e0ac6fbaa50bb7a
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-thin.c