Whamcloud - gitweb
LU-11074 mdc: set correct body eadatasize for getxattr() 39/32739/3
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 29 Jun 2018 21:11:45 +0000 (16:11 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 18 Jul 2018 06:01:35 +0000 (06:01 +0000)
In mdc_intent_getxattr_pack() set mbo_eadatasize to the size of the
xattr values buffer rather than the size of the xattr names buffer.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ibbed6aba6718f50eed1a08d506d526b1e0e042c8
Reviewed-on: https://review.whamcloud.com/32739
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andrew Perepechko <c17827@cray.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdc/mdc_locks.c

index b312a2f..591e6db 100644 (file)
@@ -390,7 +390,7 @@ mdc_intent_getxattr_pack(struct obd_export *exp,
        /* pack the intended request */
        mdc_pack_body(req, &op_data->op_fid1, op_data->op_valid,
                      max_t(u32, min_buf_size,
-                         GA_DEFAULT_EA_NAME_LEN * GA_DEFAULT_EA_NUM),
+                           GA_DEFAULT_EA_VAL_LEN * GA_DEFAULT_EA_NUM),
                      -1, 0);
 
        req_capsule_set_size(&req->rq_pill, &RMF_EADATA, RCL_SERVER,