public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vmsplice.2: vmsplice() does not fail on nr_segs=0
@ 2014-06-25 14:12 Cyril Hrubis
       [not found] ` <20140625141235.GA10090-HSzIOc4LzcM@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2014-06-25 14:12 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

This case is no-op and no error is returned.

See fs/splice.c vmsplice syscall which contains:

        if (unlikely(nr_segs > UIO_MAXIOV))
                return -EINVAL;
        else if (unlikely(!nr_segs))
                return 0;

and looking at the git log suggests that this snipped was always there.

Signed-off-by: Cyril Hrubis <chrubis-AlSwsSmVLrQ@public.gmane.org>
---
 man2/vmsplice.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man2/vmsplice.2 b/man2/vmsplice.2
index 35ab07f..a9ad786 100644
--- a/man2/vmsplice.2
+++ b/man2/vmsplice.2
@@ -133,7 +133,7 @@ either not valid, or doesn't refer to a pipe.
 .TP
 .B EINVAL
 .I nr_segs
-is 0 or greater than
+is greater than
 .BR IOV_MAX ;
 or memory not aligned if
 .B SPLICE_F_GIFT
-- 
1.8.5.5


-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] vmsplice.2: vmsplice() does not fail on nr_segs=0
       [not found] ` <20140625141235.GA10090-HSzIOc4LzcM@public.gmane.org>
@ 2014-07-14 12:57   ` chrubis-AlSwsSmVLrQ
  2014-08-26  8:42   ` chrubis-AlSwsSmVLrQ
  2014-10-01 11:23   ` Michael Kerrisk (man-pages)
  2 siblings, 0 replies; 5+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2014-07-14 12:57 UTC (permalink / raw)
  To: Cyril Hrubis
  Cc: Michael Kerrisk (man-pages), linux-man-u79uwXL29TY76Z2rM5mHXA

Hi!
> This case is no-op and no error is returned.
> 
> See fs/splice.c vmsplice syscall which contains:
> 
>         if (unlikely(nr_segs > UIO_MAXIOV))
>                 return -EINVAL;
>         else if (unlikely(!nr_segs))
>                 return 0;
> 
> and looking at the git log suggests that this snipped was always there.


Ping?

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] vmsplice.2: vmsplice() does not fail on nr_segs=0
       [not found] ` <20140625141235.GA10090-HSzIOc4LzcM@public.gmane.org>
  2014-07-14 12:57   ` chrubis-AlSwsSmVLrQ
@ 2014-08-26  8:42   ` chrubis-AlSwsSmVLrQ
       [not found]     ` <20140826084242.GA25225-J5syqNJeCN7twjQa/ONI9g@public.gmane.org>
  2014-10-01 11:23   ` Michael Kerrisk (man-pages)
  2 siblings, 1 reply; 5+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2014-08-26  8:42 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hi!
> This case is no-op and no error is returned.
> 
> See fs/splice.c vmsplice syscall which contains:
> 
>         if (unlikely(nr_segs > UIO_MAXIOV))
>                 return -EINVAL;
>         else if (unlikely(!nr_segs))
>                 return 0;
> 
> and looking at the git log suggests that this snipped was always there.
> 
> Signed-off-by: Cyril Hrubis <chrubis-AlSwsSmVLrQ@public.gmane.org>
> ---
>  man2/vmsplice.2 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man2/vmsplice.2 b/man2/vmsplice.2
> index 35ab07f..a9ad786 100644
> --- a/man2/vmsplice.2
> +++ b/man2/vmsplice.2
> @@ -133,7 +133,7 @@ either not valid, or doesn't refer to a pipe.
>  .TP
>  .B EINVAL
>  .I nr_segs
> -is 0 or greater than
> +is greater than
>  .BR IOV_MAX ;
>  or memory not aligned if
>  .B SPLICE_F_GIFT

Ping.

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] vmsplice.2: vmsplice() does not fail on nr_segs=0
       [not found]     ` <20140826084242.GA25225-J5syqNJeCN7twjQa/ONI9g@public.gmane.org>
@ 2014-09-30 12:46       ` chrubis-AlSwsSmVLrQ
  0 siblings, 0 replies; 5+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2014-09-30 12:46 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Ping?

> > This case is no-op and no error is returned.
> > 
> > See fs/splice.c vmsplice syscall which contains:
> > 
> >         if (unlikely(nr_segs > UIO_MAXIOV))
> >                 return -EINVAL;
> >         else if (unlikely(!nr_segs))
> >                 return 0;
> > 
> > and looking at the git log suggests that this snipped was always there.
> > 
> > Signed-off-by: Cyril Hrubis <chrubis-AlSwsSmVLrQ@public.gmane.org>
> > ---
> >  man2/vmsplice.2 | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/man2/vmsplice.2 b/man2/vmsplice.2
> > index 35ab07f..a9ad786 100644
> > --- a/man2/vmsplice.2
> > +++ b/man2/vmsplice.2
> > @@ -133,7 +133,7 @@ either not valid, or doesn't refer to a pipe.
> >  .TP
> >  .B EINVAL
> >  .I nr_segs
> > -is 0 or greater than
> > +is greater than
> >  .BR IOV_MAX ;
> >  or memory not aligned if
> >  .B SPLICE_F_GIFT

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] vmsplice.2: vmsplice() does not fail on nr_segs=0
       [not found] ` <20140625141235.GA10090-HSzIOc4LzcM@public.gmane.org>
  2014-07-14 12:57   ` chrubis-AlSwsSmVLrQ
  2014-08-26  8:42   ` chrubis-AlSwsSmVLrQ
@ 2014-10-01 11:23   ` Michael Kerrisk (man-pages)
  2 siblings, 0 replies; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-10-01 11:23 UTC (permalink / raw)
  To: Cyril Hrubis
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 06/25/2014 04:12 PM, Cyril Hrubis wrote:
> This case is no-op and no error is returned.
> 
> See fs/splice.c vmsplice syscall which contains:
> 
>         if (unlikely(nr_segs > UIO_MAXIOV))
>                 return -EINVAL;
>         else if (unlikely(!nr_segs))
>                 return 0;
> 
> and looking at the git log suggests that this snipped was always there.

Apologies for the delay, Cyril (and thanks for pinging).
I've applied this patch now.

Cheers,

Michael


> Signed-off-by: Cyril Hrubis <chrubis-AlSwsSmVLrQ@public.gmane.org>
> ---
>  man2/vmsplice.2 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man2/vmsplice.2 b/man2/vmsplice.2
> index 35ab07f..a9ad786 100644
> --- a/man2/vmsplice.2
> +++ b/man2/vmsplice.2
> @@ -133,7 +133,7 @@ either not valid, or doesn't refer to a pipe.
>  .TP
>  .B EINVAL
>  .I nr_segs
> -is 0 or greater than
> +is greater than
>  .BR IOV_MAX ;
>  or memory not aligned if
>  .B SPLICE_F_GIFT
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2014-10-01 11:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-25 14:12 [PATCH] vmsplice.2: vmsplice() does not fail on nr_segs=0 Cyril Hrubis
     [not found] ` <20140625141235.GA10090-HSzIOc4LzcM@public.gmane.org>
2014-07-14 12:57   ` chrubis-AlSwsSmVLrQ
2014-08-26  8:42   ` chrubis-AlSwsSmVLrQ
     [not found]     ` <20140826084242.GA25225-J5syqNJeCN7twjQa/ONI9g@public.gmane.org>
2014-09-30 12:46       ` chrubis-AlSwsSmVLrQ
2014-10-01 11:23   ` Michael Kerrisk (man-pages)

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