qed: Report error for unsupported features
authorKevin Wolf <kwolf@redhat.com>
Wed, 9 Feb 2011 10:13:26 +0000 (11:13 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 10 Feb 2011 12:23:59 +0000 (13:23 +0100)
commit66be841038dbd042cfc27fcca64bf1c658fa43f9
tree82829b98b0ad4f9eb8205a0b4942b4c261de65f2
parent3af3dc300bd5ca9083c17007a5b5445381e02504
qed: Report error for unsupported features

Instead of just returning -ENOTSUP, generate a more detailed error.

Unfortunately we don't have a helpful text for features that we don't know yet,
so just print the feature mask. It might be useful at least if someone asks for
help.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block/qed.c