On Tue, 2 Oct 2007 19:54:53 +0200 (CEST)
Jan Engelhardt <[email protected]> wrote:
> [PATCH]: Fill the size of pipes
>
> Instead of reporting 0 in size when stating() a pipe, we give the number of
> queued bytes. This might avoid using ioctl(FIONREAD) to get this information.
>
> References and derived from: http://lkml.org/lkml/2007/4/2/138
> Cc: Eric Dumazet <[email protected]>
> Signed-off-by: Jan Engelhardt <[email protected]>
Cute feature, but it is (I assume) a Linux-specific extension and is
something which we'll need to maintain for ever and it invites
unportability to older Linuxes and other OSes and it introduces some risk
of breakage of existing applications. And it slows down fstat on a pipe.
Given that the info can already be obtained via ioctl(FIONREAD) anyway, I
don't think that (gain > pain)?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]