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>
CERROR("failed decrypt bulk data: %x\n", maj);
RETURN(-EACCES);
}
CERROR("failed decrypt bulk data: %x\n", maj);
RETURN(-EACCES);
}
+
+ /* mimic gss_cli_ctx_unwrap_bulk */
+ desc->bd_nob_transferred = desc->bd_nob;
+