ceph: always send truncation info with read and write osd ops

This fixes a bug where the read/write ops arrive the osd after
a following truncation request.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Yehuda Sadeh
2010-02-01 16:10:45 -08:00
committed by Sage Weil
parent 0f26c4b21b
commit 0c948992a0
3 changed files with 6 additions and 18 deletions

View File

@@ -304,15 +304,13 @@ struct ceph_osd_op {
union {
struct {
__le64 offset, length;
__le64 truncate_size;
__le32 truncate_seq;
} __attribute__ ((packed)) extent;
struct {
__le32 name_len;
__le32 value_len;
} __attribute__ ((packed)) xattr;
struct {
__le64 truncate_size;
__le32 truncate_seq;
} __attribute__ ((packed)) trunc;
struct {
__u8 class_len;
__u8 method_len;