[LUDOC-63] liblustreapi examples have bad include statement Created: 05/Jul/12  Updated: 10/May/13  Resolved: 10/May/13

Status: Closed
Project: Lustre Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Christopher Morrone Assignee: Richard Henwood (Inactive)
Resolution: Fixed Votes: 0
Labels: QContent
Environment:

Lustre 2.1.? and current manual


Issue Links:
Related
is related to LU-1606 lustre_idl.h does not compile in user... Closed
is related to LUDOC-28 improve documentation examples for li... Closed
Business Value: 20
Severity: 3
Rank (Obsolete): 7151

 Description   

The manual's chapter about "Setting Lustre Properties in a C Program (llapi)" (currently chapter 34), has the following incorrect include in many of the examples:

    #include <liblustre.h>

I see that several also have:

    #include <lustre/lustre_idl.h>

I would hope that isn't necessary either, but we'd need a code review to be sure.

The user that hit this has had other problems with the manual as well. It is clearly in pretty bad shape. We really need someone to go through the manual and actually test all of the command-line examples. If we had all the time in the world, and were feeling really ambitious, we would move all of the examples into actual C files and make them part of our regression test suite. Then we would put the manual's docbook source right in the Lustre source tree, and have it include the same exact C source files that are used in the regression suite. Then when the tests need to be modified, the example in the manual would change at the same time.

For now, we just need to correct the manual, and manually test the examples.



 Comments   
Comment by Christopher Morrone [ 05/Jul/12 ]

Also, many of the C examples are not formatted in a sane way for the web version of the manual. I haven't checked the pdf version.

Comment by Christopher Morrone [ 05/Jul/12 ]

Looks like lustre_idl.h is needed in at least some of the examples. liblustre.h still needs to be removed.

Comment by Christopher Morrone [ 05/Jul/12 ]

Oh, and remove all of the commented-out includes as well. Thats bad to leave them in the manual.

Comment by Richard Henwood (Inactive) [ 10/May/13 ]

this was fixed in LUDOC-28

Generated at Sat Feb 10 03:39:57 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.