All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/2] rbd authentication
@ 2011-11-10  0:20 ` Josh Durgin
  0 siblings, 0 replies; 6+ messages in thread
From: Josh Durgin @ 2011-11-10  0:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: ceph-devel, kwolf

These patches allow keys to be passed to rbd devices for
authentication via the same interface that qcow uses for encryption -
the monitor block_passwd command.

Since rbd cannot read anything from the cluster before authenticating,
the size of the device is unknown until the key is set. At this point,
the size can be refreshed as if the device were resized. This works
fine with the virtio driver, but other drivers, like ide, don't
implement the resize callback. What do you think is the best way to
solve this?

Josh Durgin (2):
  block: let bdrv_set_key be used for authentication
  rbd: implement bdrv_set_key

 block.c          |   27 +++++++---
 block.h          |    2 +-
 block/rbd.c      |  160 ++++++++++++++++++++++++++++++++++++++----------------
 block_int.h      |    3 +-
 blockdev.c       |    3 +-
 hmp-commands.hx  |    6 +-
 monitor.c        |   13 +++--
 qapi-schema.json |    7 ++-
 qemu-img.c       |    4 +-
 qerror.c         |   16 +++---
 qerror.h         |   12 ++--
 qmp-commands.hx  |    6 ++-
 12 files changed, 172 insertions(+), 87 deletions(-)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-10  0:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10  0:20 [RFC 0/2] rbd authentication Josh Durgin
2011-11-10  0:20 ` [Qemu-devel] " Josh Durgin
2011-11-10  0:20 ` [RFC 1/2] block: let bdrv_set_key be used for authentication Josh Durgin
2011-11-10  0:20   ` [Qemu-devel] " Josh Durgin
2011-11-10  0:20 ` [RFC 2/2] rbd: implement bdrv_set_key Josh Durgin
2011-11-10  0:20   ` [Qemu-devel] " Josh Durgin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.