dm: allow targets to return output from messages they are sent
authorMike Snitzer <snitzer@redhat.com>
Wed, 28 Feb 2018 20:59:59 +0000 (15:59 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Apr 2018 19:04:10 +0000 (15:04 -0400)
commit1eb5fa849f2bf9186a618e85bea23f02e527540a
treeb0f5e85395f06f86e7db283155c5f73a5b942c8b
parentda5dadb4f11660ca67580cd4a7420161266d6254
dm: allow targets to return output from messages they are sent

Could be useful for a target to return stats or other information.
If a target does DMEMIT() anything to @result from its .message method
then it must return 1 to the caller.

Signed-off-By: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c
drivers/md/dm-crypt.c
drivers/md/dm-era-target.c
drivers/md/dm-ioctl.c
drivers/md/dm-log-writes.c
drivers/md/dm-mpath.c
drivers/md/dm-raid.c
drivers/md/dm-switch.c
drivers/md/dm-thin.c
include/linux/device-mapper.h
include/uapi/linux/dm-ioctl.h