Whamcloud - gitweb
LU-4131 mdd: Changelog not logging file truncate. 23/9723/2
authorrahul.deshmukh <rahul_deshmukh@xyratex.com>
Wed, 19 Mar 2014 05:37:15 +0000 (11:07 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 19 Apr 2014 06:22:25 +0000 (06:22 +0000)
commit0081e53f5609b6064ffaf8fcb160da5bab540512
tree0668fffb9cf6993b246e15409ddff4317f10204a
parent6ae6948f2e852fb6fcd9a4f61bfa388d88074c1f
LU-4131 mdd: Changelog not logging file truncate.

Use of truncate(2) does not produce any change log entries,
and the action is invisible. This patch introduces CL_TRUNC
event and adds the corresponding changelog record when the
size has changed.

Signed-off-by: Rahul Deshmukh <rahul_deshmukh@xyratex.com>
Change-Id: I6621e726a82a8105a959b77b4f505f42990f5d64
Reviewed-on: http://review.whamcloud.com/9723
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdd/mdd_object.c
lustre/tests/sanity.sh