* Re: [LTP] [PATCH 2/2] hugemmap: use SAFE_STRTOL instead
[not found] ` <4F348A4F.2010907@cn.fujitsu.com>
@ 2012-02-10 3:26 ` Wanlong Gao
0 siblings, 0 replies; only message in thread
From: Wanlong Gao @ 2012-02-10 3:26 UTC (permalink / raw)
To: gaowanlong; +Cc: ltp-list
On 02/10/2012 11:09 AM, Wanlong Gao wrote:
> On 02/10/2012 10:33 AM, Caspar Zhang wrote:
>
>> On 02/10/2012 09:08 AM, Wanlong Gao wrote:
>>> +109» » hugepages·=·SAFE_STRTOL(NULL,·nr_opt,·LONG_MIN,·LONG_MAX);
>>
>> would it better if `s/LONG_MIN/0` ? Since nr_hugepages won't do error
>> check if echoing negative value to it (AFAIK).
Ah, no, negative will not write to nr_hugepages at all.
If so, it's must be a kernel bug.
Thanks
-Wanlong Gao
>
>
> make sense, thanks ;)
>
>>
>> Thanks,
>> Caspar
>>
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] only message in thread