dm thin: fail messages with EOPNOTSUPP when pool cannot handle messages
authorMike Snitzer <snitzer@redhat.com>
Tue, 9 Jun 2015 16:31:26 +0000 (12:31 -0400)
committerMike Snitzer <snitzer@redhat.com>
Thu, 11 Jun 2015 21:13:05 +0000 (17:13 -0400)
Use EOPNOTSUPP, rather than EINVAL, error code when user attempts to
send the pool a message.  Otherwise usespace is led to believe the
message failed due to invalid argument.

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-thin.c

Simple merge