HSM _not only_ small fixes and to do list goes here (LU-3647)

[LU-3902] lhsmtool_posix uses llapi_printf for error reporting Created: 07/Sep/13  Updated: 16/Oct/13  Resolved: 16/Oct/13

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

Type: Technical task Priority: Blocker
Reporter: John Hammond Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: HSM, MB

Rank (Obsolete): 10256

 Description   

This is bad for several reasons. Errors should always go to stderr. stdout is buffered. This is why most of the copytool test logs contain only the line "exiting: Interrupt".



 Comments   
Comment by Jinshan Xiong (Inactive) [ 07/Sep/13 ]

Let's set stdout to unbuffered in posix tool thread by calling

setvbuf(stdout, NULL, _IOLBF, 0);

It's not totally bad to use llapi_printf() in CT because libraries may report error via it so it's actually good to have a common error report interface.

Comment by John Hammond [ 07/Sep/13 ]

No. Output goes to stdout. Errors go to stderr.

Anyway JC is fixing this in http://review.whamcloud.com/#/c/7568 for LU-3694 so I suggest we bump that up to blocker.

Comment by Jinshan Xiong (Inactive) [ 11/Sep/13 ]

Hi Bruno,

can you please take this over?

Jinshan

Comment by John Hammond [ 11/Sep/13 ]

Duplicate of LU-3694.

Comment by Jodi Levi (Inactive) [ 16/Oct/13 ]

Removed fixversion as this is a duplicate.

Generated at Sat Feb 10 01:37:55 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.