Whamcloud - gitweb
LU-11074 mdc: set correct body eadatasize for getxattr() 01/32901/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 29 Jun 2018 21:11:45 +0000 (16:11 -0500)
committerJohn L. Hammond <jhammond@whamcloud.com>
Fri, 3 Aug 2018 20:07:36 +0000 (20:07 +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.

Lustre-change: https://review.whamcloud.com/32739
Lustre-commit: dea1cde92014545d97406bf8adba20840abdb1a9

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ibbed6aba6718f50eed1a08d506d526b1e0e042c8
Reviewed-by: Andreas Dilger <adilger@whamcloud.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>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/32901
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdc/mdc_locks.c

index 2810f9f..4a532f0 100644 (file)
@@ -384,7 +384,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,