From: Andrew Perepechko Date: Mon, 9 Mar 2015 17:42:57 +0000 (+0300) Subject: LU-6020 kerberos: bulk nob is not corrected on bulk writes X-Git-Tag: 2.7.51~2 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=116c203e1fd74989e096909006cfc90e5986b709 LU-6020 kerberos: bulk nob is not corrected on bulk writes The real transferred block in the end of a file can have a size different from the original block in privacy mode. The proper fix should probably just mimic the behaviour of the client. Change-Id: I594c116c78b7746f4881e0de8b7cc63b37268381 Xyratex-bug-id: SNT-15 Signed-off-by: Andrew Perepechko Reviewed-on: http://review.whamcloud.com/14018 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Fan Yong Reviewed-by: Sebastien Buisson Reviewed-by: Oleg Drokin --- diff --git a/lustre/ptlrpc/gss/gss_bulk.c b/lustre/ptlrpc/gss/gss_bulk.c index 41c6fe5..692735d 100644 --- a/lustre/ptlrpc/gss/gss_bulk.c +++ b/lustre/ptlrpc/gss/gss_bulk.c @@ -432,6 +432,10 @@ int gss_svc_unwrap_bulk(struct ptlrpc_request *req, CERROR("failed decrypt bulk data: %x\n", maj); RETURN(-EACCES); } + + /* mimic gss_cli_ctx_unwrap_bulk */ + desc->bd_nob_transferred = desc->bd_nob; + break; }