Skip to content

Commit 665e692

Browse files
Merge pull request ceph#54149 from mihalicyn/ceph_mds_request_head_legacy_fallback_fix
MClientRequest: properly handle ceph_mds_request_head_legacy for ext_num_retry, ext_num_fwd, owner_uid, owner_gid Reviewed-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Rishabh Dave <ridave@redhat.com>
2 parents df7717c + a70a70f commit 665e692

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/messages/MClientRequest.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@ class MClientRequest final : public MMDSOp {
234234
copy_from_legacy_head(&head, &old_mds_head);
235235
head.version = 0;
236236

237+
head.ext_num_retry = head.num_retry;
238+
head.ext_num_fwd = head.num_fwd;
239+
240+
head.owner_uid = head.caller_uid;
241+
head.owner_gid = head.caller_gid;
242+
237243
/* Can't set the btime from legacy struct */
238244
if (head.op == CEPH_MDS_OP_SETATTR) {
239245
int localmask = head.args.setattr.mask;

0 commit comments

Comments
 (0)