Bug 116398

Summary: numactl -preferred does not issue a warning/error in case of incorrect parameters
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Gerald Pfeifer <gp>
Component: BasesystemAssignee: Andreas Kleen <ak>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Gerald Pfeifer 2005-09-11 16:35:48 UTC
The man page for numactl states the following: 
 
       --preferred=node 
              Preferably allocate memory on node, but if memory  cannot  be 
              allocated  there fall back to other nodes.  This option takes 
              only a single node number. 
 
And indeed when invoking numactl with --preferred=1-3, the preferred node is 
set to 1.  However, no warning/error is issued to notify the user that the 
invocation as such was incorrect.  Adding a check and informing the user would 
be nice.
Comment 1 Andreas Kleen 2005-09-11 22:34:10 UTC
I added a check for trailing garbage on the number in mainline.