@@ -1727,6 +1727,8 @@ void lustre_assert_wire_constants(void)
(long long)LCM_FL_WRITE_PENDING);
LASSERTF(LCM_FL_SYNC_PENDING == 3, "found %lld\n",
(long long)LCM_FL_SYNC_PENDING);
+ LASSERTF(LCM_FL_PCC_RDONLY == 8, "found %lld\n",
+ (long long)LCM_FL_PCC_RDONLY);
/* Checks for struct lmv_mds_md_v1 */
LASSERTF((int)sizeof(struct lmv_mds_md_v1) == 56, "found %lld\n",
@@ -622,12 +622,13 @@ static inline __u16 mirror_id_of(__u32 id)
* on-disk data for lcm_flags. Valid if lcm_magic is LOV_MAGIC_COMP_V1.
*/
enum lov_comp_md_flags {
- /* the least 2 bits are used by FLR to record file state */
- LCM_FL_NONE = 0,
- LCM_FL_RDONLY = 1,
- LCM_FL_WRITE_PENDING = 2,
- LCM_FL_SYNC_PENDING = 3,
- LCM_FL_FLR_MASK = 0x3,
+ /* the least 4 bits are used by FLR to record file state */
+ LCM_FL_NONE = 0x0,
+ LCM_FL_RDONLY = 0x1,
+ LCM_FL_WRITE_PENDING = 0x2,
+ LCM_FL_SYNC_PENDING = 0x3,
+ LCM_FL_PCC_RDONLY = 0x8,
+ LCM_FL_FLR_MASK = 0x8,
};
struct lov_comp_md_v1 {