Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-03-01 Thread Waiman Long
On 02/28/2018 01:58 PM, Waiman Long wrote: > On 02/28/2018 01:43 PM, Luis R. Rodriguez wrote: >> On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: >>> On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: > When

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-03-01 Thread Waiman Long
On 02/28/2018 01:58 PM, Waiman Long wrote: > On 02/28/2018 01:43 PM, Luis R. Rodriguez wrote: >> On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: >>> On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: > When

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Luis R. Rodriguez
On Wed, Feb 28, 2018 at 01:58:53PM -0500, Waiman Long wrote: > On 02/28/2018 01:43 PM, Luis R. Rodriguez wrote: > > On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: > >> On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: > >>> On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote:

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Luis R. Rodriguez
On Wed, Feb 28, 2018 at 01:58:53PM -0500, Waiman Long wrote: > On 02/28/2018 01:43 PM, Luis R. Rodriguez wrote: > > On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: > >> On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: > >>> On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote:

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Waiman Long
On 02/28/2018 01:43 PM, Luis R. Rodriguez wrote: > On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: >> On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: >>> On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: When minimum/maximum values are specified for a sysctl parameter

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Waiman Long
On 02/28/2018 01:43 PM, Luis R. Rodriguez wrote: > On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: >> On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: >>> On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: When minimum/maximum values are specified for a sysctl parameter

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Luis R. Rodriguez
On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: > On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: > > On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: > >> When minimum/maximum values are specified for a sysctl parameter in > >> the ctl_table structure with

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Luis R. Rodriguez
On Wed, Feb 28, 2018 at 12:53:40PM -0500, Waiman Long wrote: > On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: > > On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: > >> When minimum/maximum values are specified for a sysctl parameter in > >> the ctl_table structure with

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Waiman Long
On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: > On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: >> When minimum/maximum values are specified for a sysctl parameter in >> the ctl_table structure with proc_dointvec_minmax() handler, > an > >> update >> to that parameter will fail

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-28 Thread Waiman Long
On 02/27/2018 07:47 PM, Luis R. Rodriguez wrote: > On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: >> When minimum/maximum values are specified for a sysctl parameter in >> the ctl_table structure with proc_dointvec_minmax() handler, > an > >> update >> to that parameter will fail

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-27 Thread Luis R. Rodriguez
On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: > When minimum/maximum values are specified for a sysctl parameter in > the ctl_table structure with proc_dointvec_minmax() handler, an > update > to that parameter will fail with error if the given value is outside > of the required

Re: [PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-27 Thread Luis R. Rodriguez
On Tue, Feb 27, 2018 at 03:49:48PM -0500, Waiman Long wrote: > When minimum/maximum values are specified for a sysctl parameter in > the ctl_table structure with proc_dointvec_minmax() handler, an > update > to that parameter will fail with error if the given value is outside > of the required

[PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-27 Thread Waiman Long
When minimum/maximum values are specified for a sysctl parameter in the ctl_table structure with proc_dointvec_minmax() handler, update to that parameter will fail with error if the given value is outside of the required range. There are use cases where it may be better to clamp the value of the

[PATCH v2 2/5] sysctl: Add flags to support min/max range clamping

2018-02-27 Thread Waiman Long
When minimum/maximum values are specified for a sysctl parameter in the ctl_table structure with proc_dointvec_minmax() handler, update to that parameter will fail with error if the given value is outside of the required range. There are use cases where it may be better to clamp the value of the