diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-02-01 19:10:45 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-02 19:29:50 -0500 |
commit | 0c948992a00d478c17042f4790b7d6b35299cf94 (patch) | |
tree | 8a6bdfabcaf9f524fcfa6ce2ec10ebb73df0a9aa /fs/ceph/rados.h | |
parent | 0f26c4b21b684825a6dd41f2bc04d48ff62d72f8 (diff) |
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>
Diffstat (limited to 'fs/ceph/rados.h')
-rw-r--r-- | fs/ceph/rados.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ceph/rados.h b/fs/ceph/rados.h index c5614d4ae34a..123fd845459e 100644 --- a/fs/ceph/rados.h +++ b/fs/ceph/rados.h | |||
@@ -304,16 +304,14 @@ struct ceph_osd_op { | |||
304 | union { | 304 | union { |
305 | struct { | 305 | struct { |
306 | __le64 offset, length; | 306 | __le64 offset, length; |
307 | __le64 truncate_size; | ||
308 | __le32 truncate_seq; | ||
307 | } __attribute__ ((packed)) extent; | 309 | } __attribute__ ((packed)) extent; |
308 | struct { | 310 | struct { |
309 | __le32 name_len; | 311 | __le32 name_len; |
310 | __le32 value_len; | 312 | __le32 value_len; |
311 | } __attribute__ ((packed)) xattr; | 313 | } __attribute__ ((packed)) xattr; |
312 | struct { | 314 | struct { |
313 | __le64 truncate_size; | ||
314 | __le32 truncate_seq; | ||
315 | } __attribute__ ((packed)) trunc; | ||
316 | struct { | ||
317 | __u8 class_len; | 315 | __u8 class_len; |
318 | __u8 method_len; | 316 | __u8 method_len; |
319 | __u8 argc; | 317 | __u8 argc; |