[Bugme-new] [Bug 12513] New: stat() seems to return always size zero for any fifo (named pipe)

bugme-daemon at bugzilla.kernel.org bugme-daemon at bugzilla.kernel.org
Tue Jan 20 04:16:52 PST 2009


http://bugzilla.kernel.org/show_bug.cgi?id=12513

           Summary: stat() seems to return always size zero for any fifo
                    (named pipe)
           Product: File System
           Version: 2.5
     KernelVersion: 2.6.18-92.1.18.el5
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
        AssignedTo: fs_other at kernel-bugs.osdl.org
        ReportedBy: jaime.lopez at iic.uam.es


Latest working kernel version: 2.2.17-14 (RedHat 7.0)
Earliest failing kernel version: 2.4.7-10 (RedHat 7.2)
Distribution: All distributions
Hardware Environment: x86 / x86_64 (always reproducible)
Software Environment: All distributions (RedHat ES 5.0, Ubuntu, ...)
Problem Description:

I have a problem using stat() with kernel 2.4.x and 2.6.x
The size of ANY fifo is always 0.
There is no backward compatibility, as in 2.2.x stat always returned the actual 
number of unread bytes in the fifo (not a random value).  Now stat always
returns a size of zero.
The problem shows up when using the ls, stat commands.

Steps to reproduce:
1. mkfifo xx
2. cat > xx &
3. cat < xx
4. ^Z
5. echo "abcd" > xx


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


More information about the Bugme-new mailing list