From: Aurelien Degremont Date: Thu, 25 Jul 2013 12:48:20 +0000 (+0200) Subject: LU-3754 mdt: Enable data_version control X-Git-Tag: 2.4.92~37 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=29c75754814f391682a96c44715cfa4b1f21354c LU-3754 mdt: Enable data_version control When LU-1333 was landed, all HSM infrastructure was not yet landed and it was not possible to archived a file. As a consequence, the original patch did not compare on-disk archived data version and current file data version. Now, everything required is there and we should enable this verification. Signed-off-by: Aurelien Degremont Change-Id: I9db86797b234d0f54c4c87bb84290b788f2d05bb Reviewed-on: http://review.whamcloud.com/7329 Tested-by: Hudson Reviewed-by: Jinshan Xiong Tested-by: Maloo Reviewed-by: Johann Lombardi Reviewed-by: John L. Hammond --- diff --git a/lustre/mdt/mdt_open.c b/lustre/mdt/mdt_open.c index 686a76f..9ced5bb 100644 --- a/lustre/mdt/mdt_open.c +++ b/lustre/mdt/mdt_open.c @@ -2011,9 +2011,7 @@ static int mdt_hsm_release(struct mdt_thread_info *info, struct mdt_object *o, CDEBUG(D_HSM, DFID" data_version mismatches: packed="LPU64 " and on-disk="LPU64"\n", PFID(mdt_object_fid(o)), data->cd_data_version, ma->ma_hsm.mh_arch_ver); - /* XXX: Enable this line when hsm_archive is operational! GOTO(out_unlock, rc = -EPERM); - */ } ma->ma_valid = MA_INODE;