Whamcloud - gitweb
LU-3587 changelogs: Correct KUC code max changelog msg size 06/7406/4
authorChristopher J. Morrone <morrone2@llnl.gov>
Tue, 20 Aug 2013 01:15:31 +0000 (18:15 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 24 Sep 2013 14:57:39 +0000 (14:57 +0000)
commitb1bc221e1eb98314513eff07afc0b4477076c959
treef8bd11331c099af0b5108fca17f84202205d464a
parentab486a558bde3af6bd75f7fc38bd06042ed5ef67
LU-3587 changelogs: Correct KUC code max changelog msg size

The kernel to userspace communication routines (KUC) allocate
and limit the maximum cs_buf size to CR_MAXSIZE.  However this
fails to account for the fact that the buffer is assumed to begin
with a struct kuc_hdr.  To allocate and account for that space,
we introduce a new define, KUC_CHANGELOG_MSG_MAXSIZE.

Change-Id: I623746126dd64c8016366ee5fdce094129e4103e
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/7406
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs_kernelcomm.h
lustre/mdc/mdc_request.c
lustre/utils/liblustreapi.c