Details
-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Lustre 2.3.0, Lustre 2.1.5
-
client215[501]~> uname -a
Linux client215 2.6.32.54-0.3.1.20120223-nasa #1 SMP Fri Feb 24 00:06:41 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
client215[503]~> cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1
client215[504]~> rpm -qf /usr/lib64/liblustreapi.a
lustre-client-2.1.5-1nasC_ofed154_2.6.32.54_0.3.1.20120223_nasa
client230[615]~> uname -a
Linux client230 3.0.74-0.6.6.2.20130516-nasuv #1 SMP Fri May 17 02:07:25 UTC 2013 (395d734) x86_64 x86_64 x86_64 GNU/Linux
client230[616]~> cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2
client230[617]~> rpm -qf /usr/lib64/liblustreapi.a
lustre-client-2.3.0-3nasC_ofed154_3.0.74_0.6.6.2.20130516_nasuvclient215[501]~> uname -a Linux client215 2.6.32.54-0.3.1.20120223-nasa #1 SMP Fri Feb 24 00:06:41 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux client215[503]~> cat /etc/SuSE-release SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 1 client215[504]~> rpm -qf /usr/lib64/liblustreapi.a lustre-client-2.1.5-1nasC_ofed154_2.6.32.54_0.3.1.20120223_nasa client230[615]~> uname -a Linux client230 3.0.74-0.6.6.2.20130516-nasuv #1 SMP Fri May 17 02:07:25 UTC 2013 (395d734) x86_64 x86_64 x86_64 GNU/Linux client230[616]~> cat /etc/SuSE-release SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 2 client230[617]~> rpm -qf /usr/lib64/liblustreapi.a lustre-client-2.3.0-3nasC_ofed154_3.0.74_0.6.6.2.20130516_nasuv
-
3
-
8851
Description
Binaries utilizing liblustreapi.a compiled with 2.1.5 do not function
properly with 2.3.0. This may affect other versions as well, but these
are what we're currently running.
Here is a simple reproducer (call bug.c):
#include <stdio.h>
#include <lustre/liblustreapi.h>
int main(int argc, char *argv[]) {
// set stripe count to 2 with default stripe size
if (llapi_file_create(argv[1], 0, -1, 2, 0))
}
Compile as follows:
gcc bug.c -Wl,-Bstatic -llustreapi -Wl,-Bdynamic
Give a non-existing file name on lustre as an argument. When you
compile on a 2.1.5 system, it works fine on 2.1.5 systems:
client215[556]/nobackupp2/user1> ~/a.out aaa
client215[557]/nobackupp2/user1>
but gives a bogus error on 2.3.0 systems:
client230[590]/nobackupp2/pkolano> ~/a.out bbb
error on ioctl 0x4008669a for 'bbb' (3): stripe already set
problem: File exists
When you compile on a 2.3.0 system, it works fine on both:
client215[568]/nobackupp2/user1> ~/a.out aaa
client215[569]/nobackupp2/user1>
client230[602]/nobackupp2/user1> ~/a.out bbb
client230[603]/nobackupp2/user1>
Attachments
Issue Links
- duplicates
-
LU-812 Support for Linux 3.0 kernels
- Resolved