b=14906
i=eric.mei
i=h.huang
Fix swab issues for remote_perm introduced when land "mixed_layout_req".
struct mdt_remote_perm *perm;
LASSERT(client_is_remote(exp));
- perm = req_capsule_server_get(pill, &RMF_ACL);
+ perm = req_capsule_server_swab_get(pill, &RMF_ACL,
+ lustre_swab_mdt_remote_perm);
if (perm == NULL)
RETURN(-EPROTO);
-
- lustre_swab_mdt_remote_perm(perm);
}
if (body->valid & OBD_MD_FLMDSCAPA) {
struct lustre_capa *capa, *p;
if (body->valid & OBD_MD_FLRMTPERM) {
struct mdt_remote_perm *perm;
- perm = req_capsule_server_get(pill, &RMF_ACL);
+
+ LASSERT(client_is_remote(exp));
+ perm = req_capsule_server_swab_get(pill, &RMF_ACL,
+ lustre_swab_mdt_remote_perm);
if (perm == NULL)
RETURN(-EPROTO);
}
}
if ((pid = fork()) < 0) {
- perror("pipe");
+ perror("fork");
close(fd[0]);
close(fd[1]);
return -1;