dm: set DM_TARGET_WILDCARD feature on "error" target
authorMike Snitzer <snitzer@redhat.com>
Sat, 6 Feb 2016 23:38:46 +0000 (18:38 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 22 Feb 2016 16:06:21 +0000 (11:06 -0500)
commitf083b09b7819c785db4f82a81f68da3bccfb04bf
tree894fade789e2499a0bd16cb82c2b9ff21982b043
parente522c039059b0fdf5ecd15d7007026326fffc9be
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>
drivers/md/dm-ioctl.c
drivers/md/dm-table.c
drivers/md/dm-target.c
drivers/md/dm.h
include/linux/device-mapper.h