From 51f4abfa40c0f47453a592a92185c17daae87bd8 Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Tue, 26 Sep 2017 12:41:21 +0800 Subject: [PATCH] LU-9995 lfsck: keep the LMV_HASH_FLAG_DEAD flag Since lustre 2.8, the flag LMV_HASH_FLAG_DEAD is not needed, instead this DEAD and orphan flags will be stored in LMA (see LMAI_ORPHAN). At that time, we kept such flag for LFSCK to handle the filesystem upgrading from old release (Lustre-2.7 or older). Lustre-2.11 may still needs to support the upgrading from Lustre-2.7 (mainly consider the EE users), we will continuously keep such flag for a while. Signed-off-by: Fan Yong Change-Id: I11c1fa5a354d5f244514c10e3ca2c9e952eef975 Reviewed-on: https://review.whamcloud.com/29130 Reviewed-by: Emoly Liu Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo --- lustre/include/uapi/linux/lustre/lustre_idl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/include/uapi/linux/lustre/lustre_idl.h b/lustre/include/uapi/linux/lustre/lustre_idl.h index 597bc36..f333376 100644 --- a/lustre/include/uapi/linux/lustre/lustre_idl.h +++ b/lustre/include/uapi/linux/lustre/lustre_idl.h @@ -2087,7 +2087,7 @@ struct lmv_mds_md_v1 { #define LMV_HASH_FLAG_MIGRATION 0x80000000 -#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 10, 56, 0) +#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 11, 56, 0) /* Since lustre 2.8, this flag will not be needed, instead this DEAD * and orphan flags will be stored in LMA (see LMAI_ORPHAN) * Keep this flag just for LFSCK, because it still might meet such -- 1.8.3.1