rbd: update remaining header fields for v2
authorAlex Elder <elder@inktank.com>
Tue, 3 Jul 2012 21:01:19 +0000 (16:01 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:54 +0000 (14:30 -0500)
commit6e14b1a6c3b8d7e48ece68733d2dac0464611ee4
treeff1c6851a6de987cf932a90277e830f00867964f
parentb8b1e2db52de61f575981d0c23da785a7c5b4a77
rbd: update remaining header fields for v2

There are three fields that are not yet updated for format 2 rbd
image headers:  the version of the header object; the encryption
type; and the compression type.  There is no interface defined for
fetching the latter two, so just initialize them explicitly to 0 for
now.

Change rbd_dev_v2_snap_context() so the caller can be supplied the
version for the header object.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c
This page took 0.025311 seconds and 5 git commands to generate.