<div dir="ltr">Thank you. This helps a lot. I will check it out.<br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 15, 2019 at 5:04 PM Greg KH <<a href="mailto:greg@kroah.com">greg@kroah.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, May 15, 2019 at 03:41:30PM +0530, Ravi Prakash Putchala wrote:<br>
> On Wed, May 15, 2019 at 1:46 PM Greg KH <<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>> wrote:<br>
> <br>
> > On Wed, May 15, 2019 at 01:14:24PM +0530, Ravi Prakash Putchala wrote:<br>
> > > Hi,<br>
> > ><br>
> > > I am exploring fs sysctl parameters and unable to find the reference to<br>
> > > fs.quota.warnings parameter in the kernel source code. I tried searching<br>
> > > with fs.quota.warnings (ignoring case) and also sysctl_fs_quota_warnings.<br>
> > ><br>
> > > Could anyone please point me to the place in the kernel source where this<br>
> > > parameter is used?<br>
> ><br>
> > Look at the flag_print_warnings variable in fs/quota/dquot.c<br>
> ><br>
> <br>
> Thank you. But how do I associate it with fs.quota.warnings? Asking because<br>
> this would be useful for me to associate other sysctl parameters in<br>
> future.<br>
<br>
Step back a minute and think about how you create a sysctl entry.  It's<br>
with a call to register_sysctl_table(), right?  And what is the<br>
parameter of that function?  It takes a table that describes the sysctl<br>
directory structure.  And from that you can see the different quota<br>
sysctl entries and variables.<br>
<br>
Look at the sys_table and fs_table structures for that information,<br>
understand how they work and then you will be able to find any sysctl<br>
entry in the kernel source quite easily.<br>
<br>
hope this helps,<br>
<br>
greg k-h<br>
</blockquote></div>