Whamcloud - gitweb
LU-6020 kerberos: bulk nob is not corrected on bulk writes 18/14018/3
authorAndrew Perepechko <andrew.perepechko@seagate.com>
Mon, 9 Mar 2015 17:42:57 +0000 (20:42 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 26 Mar 2015 00:12:45 +0000 (00:12 +0000)
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 <andrew.perepechko@seagate.com>
Reviewed-on: http://review.whamcloud.com/14018
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Sebastien Buisson <sebastien.buisson@bull.net>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/gss/gss_bulk.c

index 41c6fe5..692735d 100644 (file)
@@ -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;
         }