[LU-3518] liblustreapi.a not forward compatible between 2.1.5 and 2.3.0 (maybe others) Created: 26/Jun/13 Updated: 21/Apr/14 Resolved: 21/Apr/14 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.3.0, Lustre 2.1.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Paul Kolano | Assignee: | Hongchao Zhang |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | mn1 | ||
| Environment: |
client215[501]~> uname -a client215[503]~> cat /etc/SuSE-release client215[504]~> rpm -qf /usr/lib64/liblustreapi.a client230[615]~> uname -a client230[616]~> cat /etc/SuSE-release client230[617]~> rpm -qf /usr/lib64/liblustreapi.a |
||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 8851 | ||||||||
| Description |
|
Binaries utilizing liblustreapi.a compiled with 2.1.5 do not function Here is a simple reproducer (call bug.c): #include <stdio.h> int main(int argc, char *argv[]) { } Compile as follows: gcc bug.c -Wl,-Bstatic -llustreapi -Wl,-Bdynamic Give a non-existing file name on lustre as an argument. When you client215[556]/nobackupp2/user1> ~/a.out aaa but gives a bogus error on 2.3.0 systems: client230[590]/nobackupp2/pkolano> ~/a.out bbb When you compile on a 2.3.0 system, it works fine on both: client215[568]/nobackupp2/user1> ~/a.out aaa client230[602]/nobackupp2/user1> ~/a.out bbb |
| Comments |
| Comment by Peter Jones [ 27/Jun/13 ] |
|
Hongchao Could you please help with this one? Thanks Peter |
| Comment by Hongchao Zhang [ 28/Jun/13 ] |
|
status update: |
| Comment by Hongchao Zhang [ 01/Jul/13 ] |
|
the issue could be related to OS, I have tried it on RHEL5 (2.6.18-348) and RHEL6 (2.6.32-279.2.1), it's okay. |
| Comment by Peter Jones [ 01/Jul/13 ] |
|
Hongchao Why don't you try to reproduce on SLES yourself? Peter |
| Comment by Hongchao Zhang [ 03/Jul/13 ] |
|
this issue is caused by the conflict between O_LOV_DELAY_CREATE and FMODE_NONOTIFY (introduced since 2.6.36). |
| Comment by Hongchao Zhang [ 10/Jul/13 ] |
|
the patch against b2_1 is tracked at http://review.whamcloud.com/#/c/6933/ |
| Comment by Jay Lan (Inactive) [ 18/Nov/13 ] |
|
Your patch worked for us. One concern. If this patch is landed to b2_1, wouldn't it make later 2.1.x release binary incompatible with releases without the patch? |
| Comment by Hongchao Zhang [ 26/Nov/13 ] |
|
Hi, |
| Comment by John Fuchs-Chesney (Inactive) [ 08/Mar/14 ] |
|
Jay, |
| Comment by Peter Jones [ 21/Apr/14 ] |
|
Seems to be a duplicate of |