Whamcloud - gitweb
LU-3754 mdt: Enable data_version control 29/7329/3
authorAurelien Degremont <aurelien.degremont@cea.fr>
Thu, 25 Jul 2013 12:48:20 +0000 (14:48 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 29 Aug 2013 15:52:36 +0000 (15:52 +0000)
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 <aurelien.degremont@cea.fr>
Change-Id: I9db86797b234d0f54c4c87bb84290b788f2d05bb
Reviewed-on: http://review.whamcloud.com/7329
Tested-by: Hudson
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/mdt/mdt_open.c

index 686a76f..9ced5bb 100644 (file)
@@ -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;