blockdev: Fail blockdev-add with encrypted images
commit8ae8e904fcba484ff7c3f8f31339b56ebd88fbad
authorKevin Wolf <kwolf@redhat.com>
Thu, 6 Mar 2014 14:43:42 +0000 (6 15:43 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 6 Mar 2014 16:27:23 +0000 (6 17:27 +0100)
tree02f21e22619345aed4194734d2489b829e4db052
parentd5546c5e776ac8f6277ddfdd59df9888e7919c2f
blockdev: Fail blockdev-add with encrypted images

Encrypted images need a password before they can be used, and we don't
want blockdev-add to create BDSes that aren't fully initialised. So for
now simply forbid encrypted images; we can come back to it later if we
need the functionality.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
blockdev.c