From: Fan Yong Date: Tue, 26 Sep 2017 04:41:21 +0000 (+0800) Subject: LU-9995 lfsck: keep the LMV_HASH_FLAG_DEAD flag X-Git-Tag: 2.10.54~7 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F29130%2F4;p=fs%2Flustre-release.git 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 --- 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