Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* fs.quota.warnings sysctl parameter usage
@ 2019-05-15  7:44 Ravi Prakash Putchala
  2019-05-15  8:16 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Ravi Prakash Putchala @ 2019-05-15  7:44 UTC (permalink / raw)
  To: kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 324 bytes --]

Hi,

I am exploring fs sysctl parameters and unable to find the reference to
fs.quota.warnings parameter in the kernel source code. I tried searching
with fs.quota.warnings (ignoring case) and also sysctl_fs_quota_warnings.

Could anyone please point me to the place in the kernel source where this
parameter is used?

Ravi

[-- Attachment #1.2: Type: text/html, Size: 438 bytes --]

<div dir="ltr"><div>Hi,</div><div><br></div><div>I am exploring fs sysctl parameters and unable to find the reference to fs.quota.warnings parameter in the kernel source code. I tried searching with fs.quota.warnings (ignoring case) and also sysctl_fs_quota_warnings. <br></div><div><br></div><div>Could anyone please point me to the place in the kernel source where this parameter is used?</div><div><br></div><div>Ravi<br></div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fs.quota.warnings sysctl parameter usage
  2019-05-15  7:44 fs.quota.warnings sysctl parameter usage Ravi Prakash Putchala
@ 2019-05-15  8:16 ` Greg KH
  2019-05-15 10:11   ` Ravi Prakash Putchala
  0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2019-05-15  8:16 UTC (permalink / raw)
  To: Ravi Prakash Putchala; +Cc: kernelnewbies

On Wed, May 15, 2019 at 01:14:24PM +0530, Ravi Prakash Putchala wrote:
> Hi,
> 
> I am exploring fs sysctl parameters and unable to find the reference to
> fs.quota.warnings parameter in the kernel source code. I tried searching
> with fs.quota.warnings (ignoring case) and also sysctl_fs_quota_warnings.
> 
> Could anyone please point me to the place in the kernel source where this
> parameter is used?

Look at the flag_print_warnings variable in fs/quota/dquot.c


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fs.quota.warnings sysctl parameter usage
  2019-05-15  8:16 ` Greg KH
@ 2019-05-15 10:11   ` Ravi Prakash Putchala
  2019-05-15 11:26     ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Ravi Prakash Putchala @ 2019-05-15 10:11 UTC (permalink / raw)
  To: Greg KH; +Cc: kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 706 bytes --]

On Wed, May 15, 2019 at 1:46 PM Greg KH <greg@kroah.com> wrote:

> On Wed, May 15, 2019 at 01:14:24PM +0530, Ravi Prakash Putchala wrote:
> > Hi,
> >
> > I am exploring fs sysctl parameters and unable to find the reference to
> > fs.quota.warnings parameter in the kernel source code. I tried searching
> > with fs.quota.warnings (ignoring case) and also sysctl_fs_quota_warnings.
> >
> > Could anyone please point me to the place in the kernel source where this
> > parameter is used?
>
> Look at the flag_print_warnings variable in fs/quota/dquot.c
>

Thank you. But how do I associate it with fs.quota.warnings? Asking because
this would be useful for me to associate other sysctl parameters in
future.

[-- Attachment #1.2: Type: text/html, Size: 1094 bytes --]

<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 15, 2019 at 1:46 PM Greg KH &lt;<a href="mailto:greg@kroah.com">greg@kroah.com</a>&gt; 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 01:14:24PM +0530, Ravi Prakash Putchala wrote:<br>
&gt; Hi,<br>
&gt; <br>
&gt; I am exploring fs sysctl parameters and unable to find the reference to<br>
&gt; fs.quota.warnings parameter in the kernel source code. I tried searching<br>
&gt; with fs.quota.warnings (ignoring case) and also sysctl_fs_quota_warnings.<br>
&gt; <br>
&gt; Could anyone please point me to the place in the kernel source where this<br>
&gt; parameter is used?<br>
<br>
Look at the flag_print_warnings variable in fs/quota/dquot.c<br></blockquote><div><br></div><div>Thank you. But how do I associate it with fs.quota.warnings? Asking because this would be useful for me to associate other sysctl parameters in future.  <br></div></div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fs.quota.warnings sysctl parameter usage
  2019-05-15 10:11   ` Ravi Prakash Putchala
@ 2019-05-15 11:26     ` Greg KH
  2019-05-16 14:29       ` Ravi Prakash Putchala
  0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2019-05-15 11:26 UTC (permalink / raw)
  To: Ravi Prakash Putchala; +Cc: kernelnewbies

On Wed, May 15, 2019 at 03:41:30PM +0530, Ravi Prakash Putchala wrote:
> On Wed, May 15, 2019 at 1:46 PM Greg KH <greg@kroah.com> wrote:
> 
> > On Wed, May 15, 2019 at 01:14:24PM +0530, Ravi Prakash Putchala wrote:
> > > Hi,
> > >
> > > I am exploring fs sysctl parameters and unable to find the reference to
> > > fs.quota.warnings parameter in the kernel source code. I tried searching
> > > with fs.quota.warnings (ignoring case) and also sysctl_fs_quota_warnings.
> > >
> > > Could anyone please point me to the place in the kernel source where this
> > > parameter is used?
> >
> > Look at the flag_print_warnings variable in fs/quota/dquot.c
> >
> 
> Thank you. But how do I associate it with fs.quota.warnings? Asking because
> this would be useful for me to associate other sysctl parameters in
> future.

Step back a minute and think about how you create a sysctl entry.  It's
with a call to register_sysctl_table(), right?  And what is the
parameter of that function?  It takes a table that describes the sysctl
directory structure.  And from that you can see the different quota
sysctl entries and variables.

Look at the sys_table and fs_table structures for that information,
understand how they work and then you will be able to find any sysctl
entry in the kernel source quite easily.

hope this helps,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fs.quota.warnings sysctl parameter usage
  2019-05-15 11:26     ` Greg KH
@ 2019-05-16 14:29       ` Ravi Prakash Putchala
  0 siblings, 0 replies; 5+ messages in thread
From: Ravi Prakash Putchala @ 2019-05-16 14:29 UTC (permalink / raw)
  To: Greg KH; +Cc: kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 1517 bytes --]

Thank you. This helps a lot. I will check it out.


On Wed, May 15, 2019 at 5:04 PM Greg KH <greg@kroah.com> wrote:

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

[-- Attachment #1.2: Type: text/html, Size: 2071 bytes --]

<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 &lt;<a href="mailto:greg@kroah.com">greg@kroah.com</a>&gt; 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>
&gt; On Wed, May 15, 2019 at 1:46 PM Greg KH &lt;<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>&gt; wrote:<br>
&gt; <br>
&gt; &gt; On Wed, May 15, 2019 at 01:14:24PM +0530, Ravi Prakash Putchala wrote:<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I am exploring fs sysctl parameters and unable to find the reference to<br>
&gt; &gt; &gt; fs.quota.warnings parameter in the kernel source code. I tried searching<br>
&gt; &gt; &gt; with fs.quota.warnings (ignoring case) and also sysctl_fs_quota_warnings.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Could anyone please point me to the place in the kernel source where this<br>
&gt; &gt; &gt; parameter is used?<br>
&gt; &gt;<br>
&gt; &gt; Look at the flag_print_warnings variable in fs/quota/dquot.c<br>
&gt; &gt;<br>
&gt; <br>
&gt; Thank you. But how do I associate it with fs.quota.warnings? Asking because<br>
&gt; this would be useful for me to associate other sysctl parameters in<br>
&gt; future.<br>
<br>
Step back a minute and think about how you create a sysctl entry.  It&#39;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>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-15  7:44 fs.quota.warnings sysctl parameter usage Ravi Prakash Putchala
2019-05-15  8:16 ` Greg KH
2019-05-15 10:11   ` Ravi Prakash Putchala
2019-05-15 11:26     ` Greg KH
2019-05-16 14:29       ` Ravi Prakash Putchala

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox