public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH manpages] listmount.2: fix verbiage about continuing the iteration
@ 2024-11-13 14:49 Jeff Layton
  2024-11-13 15:59 ` Alejandro Colomar
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Layton @ 2024-11-13 14:49 UTC (permalink / raw)
  To: Alejandro Colomar
  Cc: Josef Bacik, Miklos Szeredi, linux-man, linux-fsdevel,
	Jeff Layton

The "+1" is wrong, since the kernel already increments the last_id. Fix
the manpage verbiage.

Cc: Josef Bacik <josef@toxicpanda.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 man/man2/listmount.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/man2/listmount.2 b/man/man2/listmount.2
index 717581b85e12dc172b7c478b4608665e9da74933..00ac6a60c0cfead5c462fcac44e61647d841ffe5 100644
--- a/man/man2/listmount.2
+++ b/man/man2/listmount.2
@@ -67,7 +67,7 @@ is used to tell the kernel what mount ID to start the list from.
 This is useful if multiple calls to
 .BR listmount (2)
 are required.
-This can be set to the last mount ID returned + 1 in order to
+This can be set to the last mount ID returned in order to
 resume from a previous spot in the list.
 .SH RETURN VALUE
 On success, the number of entries filled into

---
base-commit: df69651a5c1abb61bd0d7ba0791f65f427923f75
change-id: 20241113-main-192abec3348e

Best regards,
-- 
Jeff Layton <jlayton@kernel.org>


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

* Re: [PATCH manpages] listmount.2: fix verbiage about continuing the iteration
  2024-11-13 14:49 [PATCH manpages] listmount.2: fix verbiage about continuing the iteration Jeff Layton
@ 2024-11-13 15:59 ` Alejandro Colomar
  2024-11-13 17:12   ` Jeff Layton
  0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Colomar @ 2024-11-13 15:59 UTC (permalink / raw)
  To: Jeff Layton; +Cc: Josef Bacik, Miklos Szeredi, linux-man, linux-fsdevel

[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]

Hi Jeff,

On Wed, Nov 13, 2024 at 09:49:02AM GMT, Jeff Layton wrote:
> The "+1" is wrong, since the kernel already increments the last_id. Fix
> the manpage verbiage.

If it's not too difficult, could you show a small example program that
shows this?  Thanks!

Have a lovely day!
Alex

> 
> Cc: Josef Bacik <josef@toxicpanda.com>
> Cc: Miklos Szeredi <miklos@szeredi.hu>
> Signed-off-by: Jeff Layton <jlayton@kernel.org>
> ---
>  man/man2/listmount.2 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man/man2/listmount.2 b/man/man2/listmount.2
> index 717581b85e12dc172b7c478b4608665e9da74933..00ac6a60c0cfead5c462fcac44e61647d841ffe5 100644
> --- a/man/man2/listmount.2
> +++ b/man/man2/listmount.2
> @@ -67,7 +67,7 @@ is used to tell the kernel what mount ID to start the list from.
>  This is useful if multiple calls to
>  .BR listmount (2)
>  are required.
> -This can be set to the last mount ID returned + 1 in order to
> +This can be set to the last mount ID returned in order to
>  resume from a previous spot in the list.
>  .SH RETURN VALUE
>  On success, the number of entries filled into
> 
> ---
> base-commit: df69651a5c1abb61bd0d7ba0791f65f427923f75
> change-id: 20241113-main-192abec3348e
> 
> Best regards,
> -- 
> Jeff Layton <jlayton@kernel.org>
> 
> 

-- 
<https://www.alejandro-colomar.es/>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH manpages] listmount.2: fix verbiage about continuing the iteration
  2024-11-13 15:59 ` Alejandro Colomar
@ 2024-11-13 17:12   ` Jeff Layton
  2024-11-17  1:00     ` Alejandro Colomar
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Layton @ 2024-11-13 17:12 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: Josef Bacik, Miklos Szeredi, linux-man, linux-fsdevel

On Wed, 2024-11-13 at 16:59 +0100, Alejandro Colomar wrote:
> Hi Jeff,
> 
> On Wed, Nov 13, 2024 at 09:49:02AM GMT, Jeff Layton wrote:
> > The "+1" is wrong, since the kernel already increments the last_id. Fix
> > the manpage verbiage.
> 
> If it's not too difficult, could you show a small example program that
> shows this?  Thanks!
> 
> Have a lovely day!
> Alex
> 

It's not too small, but I proposed this program as a sample for the
kernel:

    https://lore.kernel.org/linux-fsdevel/20241112-statmount-v1-1-d98090c4c8be@kernel.org/

It has a bug though that Miklos pointed out, since I followed the
manpage. I'll be fixing that soon.

> > 
> > Cc: Josef Bacik <josef@toxicpanda.com>
> > Cc: Miklos Szeredi <miklos@szeredi.hu>
> > Signed-off-by: Jeff Layton <jlayton@kernel.org>
> > ---
> >  man/man2/listmount.2 | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/man/man2/listmount.2 b/man/man2/listmount.2
> > index 717581b85e12dc172b7c478b4608665e9da74933..00ac6a60c0cfead5c462fcac44e61647d841ffe5 100644
> > --- a/man/man2/listmount.2
> > +++ b/man/man2/listmount.2
> > @@ -67,7 +67,7 @@ is used to tell the kernel what mount ID to start the list from.
> >  This is useful if multiple calls to
> >  .BR listmount (2)
> >  are required.
> > -This can be set to the last mount ID returned + 1 in order to
> > +This can be set to the last mount ID returned in order to
> >  resume from a previous spot in the list.
> >  .SH RETURN VALUE
> >  On success, the number of entries filled into
> > 
> > ---
> > base-commit: df69651a5c1abb61bd0d7ba0791f65f427923f75
> > change-id: 20241113-main-192abec3348e
> > 
> > Best regards,
> > -- 
> > Jeff Layton <jlayton@kernel.org>
> > 
> > 
> 

-- 
Jeff Layton <jlayton@kernel.org>

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

* Re: [PATCH manpages] listmount.2: fix verbiage about continuing the iteration
  2024-11-13 17:12   ` Jeff Layton
@ 2024-11-17  1:00     ` Alejandro Colomar
  0 siblings, 0 replies; 4+ messages in thread
From: Alejandro Colomar @ 2024-11-17  1:00 UTC (permalink / raw)
  To: Jeff Layton
  Cc: Josef Bacik, Miklos Szeredi, linux-man, linux-fsdevel,
	Christian Brauner

[-- Attachment #1: Type: text/plain, Size: 2005 bytes --]

Hi Jeff,

On Wed, Nov 13, 2024 at 12:12:22PM GMT, Jeff Layton wrote:
> On Wed, 2024-11-13 at 16:59 +0100, Alejandro Colomar wrote:
> > Hi Jeff,
> > 
> > On Wed, Nov 13, 2024 at 09:49:02AM GMT, Jeff Layton wrote:
> > > The "+1" is wrong, since the kernel already increments the last_id. Fix
> > > the manpage verbiage.
> > 
> > If it's not too difficult, could you show a small example program that
> > shows this?  Thanks!
> > 
> > Have a lovely day!
> > Alex
> > 
> 
> It's not too small, but I proposed this program as a sample for the
> kernel:
> 
>     https://lore.kernel.org/linux-fsdevel/20241112-statmount-v1-1-d98090c4c8be@kernel.org/
> 
> It has a bug though that Miklos pointed out, since I followed the
> manpage. I'll be fixing that soon.

Thanks!

> > > Cc: Josef Bacik <josef@toxicpanda.com>
> > > Cc: Miklos Szeredi <miklos@szeredi.hu>
> > > Signed-off-by: Jeff Layton <jlayton@kernel.org>

I've applied the patch, with some tweaks to the commit message.
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=dfa492a21fd01e36c1858b9f8d66323e49011a96>

Have a lovely night!
Alex

> > > ---
> > >  man/man2/listmount.2 | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/man/man2/listmount.2 b/man/man2/listmount.2
> > > index 717581b85e12dc172b7c478b4608665e9da74933..00ac6a60c0cfead5c462fcac44e61647d841ffe5 100644
> > > --- a/man/man2/listmount.2
> > > +++ b/man/man2/listmount.2
> > > @@ -67,7 +67,7 @@ is used to tell the kernel what mount ID to start the list from.
> > >  This is useful if multiple calls to
> > >  .BR listmount (2)
> > >  are required.
> > > -This can be set to the last mount ID returned + 1 in order to
> > > +This can be set to the last mount ID returned in order to
> > >  resume from a previous spot in the list.
> > >  .SH RETURN VALUE
> > >  On success, the number of entries filled into

-- 
<https://www.alejandro-colomar.es/>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2024-11-17  1:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13 14:49 [PATCH manpages] listmount.2: fix verbiage about continuing the iteration Jeff Layton
2024-11-13 15:59 ` Alejandro Colomar
2024-11-13 17:12   ` Jeff Layton
2024-11-17  1:00     ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox