Whamcloud - gitweb
LU-3587 changelogs: Account for changelog_ext_rec in CR_MAXSIZE 93/6993/3
authorChristopher J. Morrone <morrone2@llnl.gov>
Tue, 16 Jul 2013 00:56:25 +0000 (17:56 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 26 Aug 2013 22:27:39 +0000 (22:27 +0000)
CR_MAXSIZE needs to account for an llog_changelog_rec that actually
contains a changelog_ext_rec structure rather than a changelog_rec.
With out doing so, a file size approaching the Linux kernel NAME_MAX
length that is renamed to a size also close to, or at, NAME_MAX will
exceed CR_MAXSIZE and trip an assertion.

Change-Id: I2d86955efcbd6d0fd28c87026a7720311b4f5598
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/6993
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>

No differences found