diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-02-25 09:22:26 -0500 |
---|---|---|
committer | Yan, Zheng <zheng.z.yan@intel.com> | 2014-04-02 22:33:51 -0400 |
commit | 7b25bf5f02c5c80adf96120e031dc3a1756ce54d (patch) | |
tree | 002d8d1229f7d52b109ba660cf63a97030806dc5 /include/linux/ceph | |
parent | 42dd037c08c7cd6e3e9af7824b0c1d063f838885 (diff) |
libceph: encode CEPH_OSD_OP_FLAG_* op flags
Encode ceph_osd_op::flags field so that it gets sent over the wire.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r-- | include/linux/ceph/osd_client.h | 1 | ||||
-rw-r--r-- | include/linux/ceph/rados.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index fd47e872ebcc..e94f5da251d6 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
@@ -76,6 +76,7 @@ struct ceph_osd_data { | |||
76 | 76 | ||
77 | struct ceph_osd_req_op { | 77 | struct ceph_osd_req_op { |
78 | u16 op; /* CEPH_OSD_OP_* */ | 78 | u16 op; /* CEPH_OSD_OP_* */ |
79 | u32 flags; /* CEPH_OSD_OP_FLAG_* */ | ||
79 | u32 payload_len; | 80 | u32 payload_len; |
80 | union { | 81 | union { |
81 | struct ceph_osd_data raw_data_in; | 82 | struct ceph_osd_data raw_data_in; |
diff --git a/include/linux/ceph/rados.h b/include/linux/ceph/rados.h index 96292df4041b..8f9bf4570215 100644 --- a/include/linux/ceph/rados.h +++ b/include/linux/ceph/rados.h | |||
@@ -382,7 +382,7 @@ enum { | |||
382 | */ | 382 | */ |
383 | struct ceph_osd_op { | 383 | struct ceph_osd_op { |
384 | __le16 op; /* CEPH_OSD_OP_* */ | 384 | __le16 op; /* CEPH_OSD_OP_* */ |
385 | __le32 flags; /* CEPH_OSD_FLAG_* */ | 385 | __le32 flags; /* CEPH_OSD_OP_FLAG_* */ |
386 | union { | 386 | union { |
387 | struct { | 387 | struct { |
388 | __le64 offset, length; | 388 | __le64 offset, length; |