[LU-9995] lbuild error: 'LMV_HASH_FLAG_DEAD' undeclared (first use in this function) Created: 15/Sep/17 Updated: 09/Oct/17 Resolved: 09/Oct/17 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.11.0 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Emoly Liu | Assignee: | nasf (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
The latest lustre code (New tag 2.10.53) commit 57fccbb3 is causing the following lbuild error: /tmp/rpmbuild-lustre-buildbot-Wi8EL9Vz/BUILD/lustre-2.10.53_1_g63b8101/lustre/lfsck/lfsck_striped_dir.c: In function 'lfsck_read_stripe_lmv': /tmp/rpmbuild-lustre-buildbot-Wi8EL9Vz/BUILD/lustre-2.10.53_1_g63b8101/lustre/lfsck/lfsck_striped_dir.c:855: error: 'LMV_HASH_FLAG_DEAD' undeclared (first use in this function) /tmp/rpmbuild-lustre-buildbot-Wi8EL9Vz/BUILD/lustre-2.10.53_1_g63b8101/lustre/lfsck/lfsck_striped_dir.c:855: error: (Each undeclared identifier is reported only once /tmp/rpmbuild-lustre-buildbot-Wi8EL9Vz/BUILD/lustre-2.10.53_1_g63b8101/lustre/lfsck/lfsck_striped_dir.c:855: error: for each function it appears in.) Seems related to this definition: #if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 10, 53, 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 flag when it checks the old FS / #define LMV_HASH_FLAG_DEAD 0x40000000 #endif |
| Comments |
| Comment by Oleg Drokin [ 15/Sep/17 ] |
|
I pushed the check to take effect in 2.10.56, but we need to fix it by then. I guess Fan Yong would be a good person to loook at this since the only remaining users are in lfsck? |
| Comment by Peter Jones [ 15/Sep/17 ] |
|
Agreed. Fan Yong could you please advise on this? |
| Comment by Gerrit Updater [ 21/Sep/17 ] |
|
Fan Yong (fan.yong@intel.com) uploaded a new patch: https://review.whamcloud.com/29130 |
| Comment by Gerrit Updater [ 09/Oct/17 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/29130/ |