[LU-533] lustre_types.h is missing, and replacement posix-types.h not included in user-space Created: 25/Jul/11 Updated: 02/May/14 Resolved: 15/Aug/11 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.1.0 |
| Fix Version/s: | Lustre 2.1.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Christopher Morrone | Assignee: | Zhenyu Xu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 4925 | ||||||||
| Description |
|
The lustre_types.h header that was in 1.8 is not present on master. This means that any one including lustre/lustre_user.h in their user-space code is going to hit a compiler error. Mining the git logs, it looks like lustre/include/linux/lustre_types.h from 1.8 was replaced in 2.0 by libcfs/include/libcfs/posix/posix-types.h as part of libcfs cleanup patches. However, posix-types.h is neither installed as part of lustre, nor included in the user-space header files. I would think that posix-types.h needs to be installed under /usr/include/lustre and then conditionally included (!KERNEL) by lustre_user.h and any other headers that need it. |
| Comments |
| Comment by Peter Jones [ 25/Jul/11 ] |
|
Bobi Could you please look into this one? Thanks Peter |
| Comment by Christopher Morrone [ 25/Jul/11 ] |
|
Potential fix is here: http://review.whamcloud.com/1138 Needs testing though. |
| Comment by Christopher Morrone [ 26/Jul/11 ] |
|
Updated patch at http://review.whamcloud.com/1138. |
| Comment by Zhenyu Xu [ 26/Jul/11 ] |
|
Hi Andreas, Should we put libcfs/include/* in the lustre rpm package and use "#include <libcfs/libcfs.h" in this case? |
| Comment by Andreas Dilger [ 27/Jul/11 ] |
|
No, there is too much internal stuff in libcfs/include/* to put all of it into the installed RPM package. Since programs including lustre_user.h from userspace will only ever want the posix/posix_types.h header, I think it is safe to only include that one header. We can re-examine using a generic libcfs/libcfs_types.h header if there are ever userspace arch issues that cause problems with using just posix_types.h. |
| Comment by Christopher Morrone [ 08/Aug/11 ] |
|
Fixed incorrect LU number in patch set three. No code change. |
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Build Master (Inactive) [ 09/Aug/11 ] |
|
Integrated in Oleg Drokin : f8e7a89c87b9d668d29f9ec31246e369205cc196
|
| Comment by Peter Jones [ 15/Aug/11 ] |
|
Is any more work required here or can this ticket be marked as resolved? |
| Comment by Christopher Morrone [ 15/Aug/11 ] |
|
It can be marked resolved. |
| Comment by Andreas Dilger [ 15/Aug/11 ] |
|
Patch landed for 2.1.0 release. |