struct mds_rec_setattr *rec;
struct mdc_rpc_lock *rpc_lock;
struct obd_device *obd = exp->exp_obd;
- int rc, bufcount = 2, size[4] = {0, sizeof(*rec), ealen, ea2len};
+ int rc, bufcount = 2, size[5] = {0, sizeof(*rec), ealen, ea2len,
+ ea3len};
ENTRY;
LASSERT(iattr != NULL);
if (ealen == sizeof(XATTR_NAME_LUSTRE_ACL) &&
!strncmp((char *) ea, XATTR_NAME_LUSTRE_ACL, ealen)) {
size[bufcount++] = LUSTRE_ACL_SIZE_MAX;
+ } else if (iattr->ia_valid & ATTR_SIZE) {
+ size[bufcount++] = sizeof(struct lustre_capa);
}
req->rq_replen = lustre_msg_size(bufcount, size);