ceph: fully initialize new layout
authorSage Weil <sage@inktank.com>
Mon, 14 May 2012 19:34:38 +0000 (12:34 -0700)
committerAlex Elder <elder@dreamhost.com>
Wed, 16 May 2012 19:28:27 +0000 (14:28 -0500)
commit702aeb1f88e707241d76e1e2a1a02dd81e6c2d77
tree1d605a2109700d5ba4cc6c95f253e6ee3e10a120
parentfd51653f78cf40a0516e521b6de22f329c5bad8d
ceph: fully initialize new layout

When we are setting a new layout, fully initialize the structure:
 - zero it out
 - always set preferred_osd to -1

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
fs/ceph/ioctl.c
fs/ceph/ioctl.h