diff options
author | Sage Weil <sage@inktank.com> | 2012-05-14 15:34:38 -0400 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-05-16 15:28:27 -0400 |
commit | 702aeb1f88e707241d76e1e2a1a02dd81e6c2d77 (patch) | |
tree | 1d605a2109700d5ba4cc6c95f253e6ee3e10a120 /fs/ceph/ioctl.h | |
parent | fd51653f78cf40a0516e521b6de22f329c5bad8d (diff) |
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>
Diffstat (limited to 'fs/ceph/ioctl.h')
-rw-r--r-- | fs/ceph/ioctl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/ioctl.h b/fs/ceph/ioctl.h index be4a60487333..c77028afb1e1 100644 --- a/fs/ceph/ioctl.h +++ b/fs/ceph/ioctl.h | |||
@@ -34,6 +34,8 @@ | |||
34 | struct ceph_ioctl_layout { | 34 | struct ceph_ioctl_layout { |
35 | __u64 stripe_unit, stripe_count, object_size; | 35 | __u64 stripe_unit, stripe_count, object_size; |
36 | __u64 data_pool; | 36 | __u64 data_pool; |
37 | |||
38 | /* obsolete. new values ignored, always return -1 */ | ||
37 | __s64 preferred_osd; | 39 | __s64 preferred_osd; |
38 | }; | 40 | }; |
39 | 41 | ||