From: x <vectro@yahoo.com>
To: Bryan Henderson <hbryan@us.ibm.com>
Cc: frederik@ofb.net, fsdevel <linux-fsdevel@vger.kernel.org>,
Linux-userfs <linux-userfs@vger.kernel.org>, x <vectro@yahoo.com>
Subject: Re: seekable pipes
Date: Thu, 23 Jun 2005 08:05:05 -0700 (PDT) [thread overview]
Message-ID: <20050623150505.62110.qmail@web30215.mail.mud.yahoo.com> (raw)
In-Reply-To: <OF74F441E9.0AB3FE3A-ON88257028.0003A904-88257028.0004DEAA@us.ibm.com>
> In
> the anonymous case
> (more precisely, the case of the anonymous pipe
> generated and deployed by
> a seekable-pipe-agnostic program such as Bash), you
> can't make sure the
> guy who makes the pipe seekable does so before the
> guy who needs it to be
> seekable notices that it's not.
OK. This can of course be circumvented by doing
$ command_that_understands_seekable_pipes |
(command_that_checks_stdin;
command_that_requires_seekable_stdin)
But I see how this is something best done in the
shell.
In any case, you'd need some kind of ioctl to ask the
kernel to wait for the other end of the pipe to become
seekable (or be written or closed).
> The client is the
> program that thinks he's looking at a conventional
> file, so he can seek,
> read, and write. The server is the guy who knows
> it's a special seekable
> pipe file and whose job it is to make the client see
> a conventional file.
That's fine; we have no disagreement there. But I'm
not sure it's correct to return S_ISREG; Seems to me
of the two seekable file types (regular and block
device), block device is closer to the truth. I was
planning to leave the type as S_IFIFO in my original
plan, but I see how that's problematic.
--Ian
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
next prev parent reply other threads:[~2005-06-23 15:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-07 10:23 seekable pipes Frederik Eaton
2005-06-07 20:31 ` Bryan Henderson
2005-06-07 21:56 ` x
2005-06-16 4:37 ` Frederik Eaton
2005-06-20 22:24 ` Bryan Henderson
2005-06-21 5:02 ` Frederik Eaton
2005-06-21 17:47 ` Bryan Henderson
2005-06-21 22:41 ` x
2005-06-22 0:53 ` Bryan Henderson
2005-06-23 15:05 ` x [this message]
2005-06-23 15:58 ` Jeff Anderson-Lee
2005-06-23 17:03 ` Bryan Henderson
2005-06-24 5:43 ` Frederik Eaton
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=20050623150505.62110.qmail@web30215.mail.mud.yahoo.com \
--to=vectro@yahoo.com \
--cc=frederik@ofb.net \
--cc=hbryan@us.ibm.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-userfs@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).