]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commitfd467696e8beb542144cd005ff96cd35fff41354
tree900aa4ce86274d0ad19f42331d41994a8be54ec8
parent34fbcf6257eb3f39a5b78a4f51b40f881b82033b
dm thin: fail messages with EOPNOTSUPP when pool cannot handle messages

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