Whamcloud - gitweb
LU-827 lov: Implement a per file data_version.
authorAurelien Degremont <aurelien.degremont@cea.fr>
Tue, 10 Jan 2012 14:27:33 +0000 (15:27 +0100)
committerOleg Drokin <green@whamcloud.com>
Fri, 16 Mar 2012 14:17:06 +0000 (10:17 -0400)
commitde7fe0875bf906416bbcbc650cd30895cb3aaffd
tree9b4dff338f939397a64e2ae38312d373d968ae7f
parent0125d830821f08854adc587f831d06bf30ccbfe8
LU-827 lov: Implement a per file data_version.

This patch extends getattr RPC to also send in its reply a data
version for the file content.  This only tracks data object changes.
This does not track chown/chmod on OST object.  This value is intended
to be only compared for equality.  A new call in liblustreapi is
available and through 'lfs data_version'.

Signed-off-by: Aurelien Degremont <aurelien.degremont@cea.fr>
Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Change-Id: I5d748e096b11627c05f86ef6f3f6906bce120893
Reviewed-on: http://review.whamcloud.com/1671
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
13 files changed:
lustre/doc/lfs.1
lustre/include/lustre/liblustreapi.h
lustre/include/lustre/lustre_user.h
lustre/include/lustre_lib.h
lustre/llite/file.c
lustre/lov/lov_internal.h
lustre/lov/lov_merge.c
lustre/obdfilter/filter.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanityn.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/wiretest.c