From 5eb712b2dd93fa3d246b5e70d7e0fbcc743000c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 14 Nov 2003 13:21:37 +0000 Subject: [PATCH] Now correctly returns the available bytes in the pipe in st_size. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5360 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/fs/pipefs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/core/fs/pipefs.cpp b/src/kernel/core/fs/pipefs.cpp index 8a1a36b6f0..d600e4bf3d 100644 --- a/src/kernel/core/fs/pipefs.cpp +++ b/src/kernel/core/fs/pipefs.cpp @@ -23,7 +23,7 @@ #include "builtin_fs.h" // ToDo: handles file names suboptimally - it has all file names -// in a single linked list, no hash lookups or whatever. +// in a singly linked list, no hash lookups or whatever. #define PIPEFS_TRACE 0 @@ -1208,7 +1208,7 @@ pipefs_read_stat(fs_volume _volume, fs_vnode _node, struct stat *stat) stat->st_dev = volume->ID(); stat->st_ino = inode->ID(); - stat->st_size = 0; // ToDo: oughta get me! + stat->st_size = cbuf_get_length(fBufferChain); stat->st_mode = inode->Type() | 0777; return 0;