All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre Abbat <phma@webjockey.net>
To: reiserfs-list@namesys.com
Subject: Re: FIFO files
Date: Tue, 17 Jun 2003 18:42:26 -0400	[thread overview]
Message-ID: <200306171842.26751.phma@webjockey.net> (raw)
In-Reply-To: <20030617162127.GA14124@chepelov.org>

On Tuesday 17 June 2003 12:21, Cyrille Chepelov wrote:
> Hi all,
>
> I recently encountered a need for such a contraption as file-backed FIFOs.
> These are files where one process can append records at one end, and one
> other process can read records from the beginning of the file, chopping off
> the head of the file once it's not needed anymore. As I had to implement
> something right now on existing systems, I worked around the general
> absence for such a facility, but still, I'm wondering how difficult it
> would to write a reiserfs4 plug-in which would allow one to do the
> equivalent of a truncate() but truncating what's between the position 0 and
> the current cursor (effectively shifting all subsequent file positions),
> rather than truncating what's between the cursor and the end of file.
> (network considerations are explicitly out of the scope of this musing)

There's a program called "cupyvei" which allows one process to append records 
to a file, and any number of other processes to read independently from the 
beginning. It isn't unlimited though; it's a circular buffer, and the size is 
specified when you create it. Is that of any interest?

phma

-- 
.i toljundi do .ibabo mi'afra tu'a do
.ibabo damba do .ibabo do jinga
.icu'u la ma'atman.

      parent reply	other threads:[~2003-06-17 22:42 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-17 16:21 FIFO files Cyrille Chepelov
2003-06-17 16:24 ` Carl-Daniel Hailfinger
2003-06-17 16:32   ` Hans Reiser
2003-06-17 17:00     ` Carl-Daniel Hailfinger
2003-06-18  6:17       ` Oleg Drokin
2003-06-18 10:20         ` Ragnar Kjørstad
2003-06-18 11:40           ` Carl-Daniel Hailfinger
2003-06-18 13:21             ` Hans Reiser
2003-06-18 13:53             ` David Woodhouse
2003-06-18 14:28               ` Matthew Wilcox
2003-06-18 15:23                 ` Russell Coker
2003-06-18 15:40                   ` David Woodhouse
2003-06-18 15:51                   ` Bryan Henderson
2003-06-18 15:45                 ` Bryan Henderson
2003-06-18 15:34             ` Bryan Henderson
2003-06-17 17:07   ` Cyrille Chepelov
2003-06-17 17:39     ` Chris Dukes
2003-06-17 17:54       ` Cyrille Chepelov
2003-06-17 19:30     ` Hans Reiser
2003-06-17 19:43       ` Cyrille Chepelov
2003-06-17 22:42 ` Pierre Abbat [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200306171842.26751.phma@webjockey.net \
    --to=phma@webjockey.net \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.