diff options
author | Mike Snitzer <snitzer@redhat.com> | 2016-02-07 00:38:46 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-02-22 17:06:21 +0100 |
commit | f083b09b7819c785db4f82a81f68da3bccfb04bf (patch) | |
tree | 894fade789e2499a0bd16cb82c2b9ff21982b043 /drivers/md/dm-target.c | |
parent | dm: cleanup dm_any_congested() (diff) | |
download | linux-f083b09b7819c785db4f82a81f68da3bccfb04bf.tar.xz linux-f083b09b7819c785db4f82a81f68da3bccfb04bf.zip |
dm: set DM_TARGET_WILDCARD feature on "error" target
The DM_TARGET_WILDCARD feature indicates that the "error" target may
replace any target; even immutable targets. This feature will be useful
to preserve the ability to replace the "multipath" target even once it
is formally converted over to having the DM_TARGET_IMMUTABLE feature.
Also, implicit in the DM_TARGET_WILDCARD feature flag being set is that
.map, .map_rq, .clone_and_map_rq and .release_clone_rq are all defined
in the target_type.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-target.c')
-rw-r--r-- | drivers/md/dm-target.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c index 925ec1b15e75..a317dd884ba6 100644 --- a/drivers/md/dm-target.c +++ b/drivers/md/dm-target.c @@ -150,7 +150,8 @@ static void io_err_release_clone_rq(struct request *clone) static struct target_type error_target = { .name = "error", - .version = {1, 3, 0}, + .version = {1, 4, 0}, + .features = DM_TARGET_WILDCARD, .ctr = io_err_ctr, .dtr = io_err_dtr, .map = io_err_map, |