Re: [patch 1/2] getattr - fill the size of pipes

2007-10-04 Thread Alan Cox
> 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 Actually it used to work on the old old Linux pipe code. > unportability to older Linuxes and other OSes and it introduces some risk > of breakage of existing

Re: [patch 1/2] getattr - fill the size of pipes

2007-10-04 Thread Andrew Morton
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

Re: [patch 1/2] getattr - fill the size of pipes

2007-10-04 Thread Andrew Morton
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

Re: [patch 1/2] getattr - fill the size of pipes

2007-10-04 Thread Alan Cox
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 Actually it used to work on the old old Linux pipe code. unportability to older Linuxes and other OSes and it introduces some risk of breakage of existing

[patch 1/2] getattr - fill the size of pipes

2007-10-02 Thread Jan Engelhardt
[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]>

[patch 1/2] getattr - fill the size of pipes

2007-10-02 Thread Jan Engelhardt
[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]