]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
rbd: use a common layout for each device
authorAlex Elder <elder@inktank.com>
Wed, 14 Nov 2012 18:25:19 +0000 (12:25 -0600)
committerAlex Elder <elder@inktank.com>
Wed, 28 Nov 2012 16:07:07 +0000 (10:07 -0600)
commitea8ce771ad65c18aaba626a88ba792c81e8b9356
treef125c353fdc174193c6d2028f7c3b05438ed6e34
parent129b1786e05109de7ed6e37d52bd81bf146dd445
rbd: use a common layout for each device

Each osd message includes a layout structure, and for rbd it is
always the same (at least for osd's in a given pool).

Initialize a layout structure when an rbd_dev gets created and just
copy that into osd requests for the rbd image.

Replace an assertion that was done when initializing the layout
structures with code that catches and handles anything that would
trigger the assertion as soon as it is identified.  This precludes
that (bad) condition from ever occurring.

Signed-off-by: Alex Elder <elder@inktank.com>
drivers/block/rbd.c