Commit b53aca4b authored by Xiubo Li's avatar Xiubo Li Committed by Ilya Dryomov
Browse files

ceph: fix incorrect old_size length in ceph_mds_request_args



The 'old_size' is a __le64 type since birth, not sure why the
kclient incorrectly switched it to __le32. This change is okay
won't break anything because union will always allocate more memory
than the 'open' member needed.

Rename 'file_replication' to 'pool' as ceph did. Though this 'open'
struct may never be used in kclient in future, it's confusing when
going through the ceph code.

Signed-off-by: default avatarXiubo Li <xiubli@redhat.com>
Reviewed-by: default avatarIlya Dryomov <idryomov@gmail.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 020bc44a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -433,9 +433,9 @@ union ceph_mds_request_args {
		__le32 stripe_unit;          /* layout for newly created file */
		__le32 stripe_count;         /* ... */
		__le32 object_size;
		__le32 file_replication;
		__le32 pool;
		__le32 mask;                 /* CEPH_CAP_* */
               __le32 old_size;
		__le64 old_size;
	} __attribute__ ((packed)) open;
	struct {
		__le32 flags;