On 6/24/07, Amos Shapira <[EMAIL PROTECTED]> wrote:
On 24/06/07, Erez D <[EMAIL PROTECTED]> wrote:
> AFAIK, pipes does not work across different hosts ...

Yeh, it would be a bit like doing "mknod b 3 66" on an NFS mounted
filesystem and expect to be able to access the raw disk partition over the
net.

> On 6/24/07, Maxim Veksler <[EMAIL PROTECTED] > wrote:
> > Hello list,
> >
> > I'm trying to make an named pipe using mkfifo and pass data in it,
> > over nfs exported directory.
> >
> > host1> cd /opt/REAL11/Content/
> > host1> mkfifo npipe
> > host1> cat /dev/urandom > /opt/REAL11/Content/npipe
> >
> > Then I mount this directory on host2 and do
> > host2> cat npipe
> >
> > This does not work. Any ideas why ?

 Named pipes are sort of a name for an internal kernel buffer so when you
"write" to it the data actually ends up in the kernel's memory and there is
no way (short of NFS adding support for it, maybe) for the kernel to
transfer that information to the kernel of the other host.


I see, bad idea.

 What are you trying to achieve with this trick?


I'm trying to develop some way to recognize if an NFS mount is active,
one way I was thinking of was transferring data from one side, and
checking if the data matched on the other.

You are right, this is a workaround for the real problem which is : I
can't find an option to get information about the connected clients to
my exported NFS path. I assume that this is because NFS does not
maintain an active session table (It uses RPC calls, AFAIK).
This leaves to no other choice but test for mount/export validness by
transferring data over it for OK indicator.

You can, for instance, connect two separate named pipes through an ssh
tunnel or netcat.


This won't work here, I want to check for NFS status not network activity.

 --Amos

--
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to