From owner-freebsd-questions@FreeBSD.ORG Tue Jan 3 18:49:30 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C23116A41F for ; Tue, 3 Jan 2006 18:49:30 +0000 (GMT) (envelope-from richard.kaestner@ycn.com) Received: from richardkaestner.com (212-88-187-192.ADSL.ycn.com [212.88.187.192]) by mx1.FreeBSD.org (Postfix) with SMTP id 3711343D53 for ; Tue, 3 Jan 2006 18:49:27 +0000 (GMT) (envelope-from richard.kaestner@ycn.com) Received: (qmail 3037 invoked from network); 3 Jan 2006 18:49:24 -0000 Received: from pc-01034.richardkaestner.com (HELO sv01.rfk.priv) (10.200.4.10) by stargate.richardkaestner.com (10.200.254.254) with ESMTP; 03 Jan 2006 18:49:24 -0000 Received: from sv01.rfk.priv (localhost.rfk.priv [127.0.0.1]) by sv01.rfk.priv (8.12.11/8.12.11) with ESMTP id k03InNfS004354; Tue, 3 Jan 2006 19:49:23 +0100 (CET) (envelope-from richard.kaestner@ycn.com) Received: from localhost (localhost [[UNIX: localhost]]) by sv01.rfk.priv (8.12.11/8.12.11/Submit) id k03InMd0004353; Tue, 3 Jan 2006 19:49:22 +0100 (CET) (envelope-from richard.kaestner@ycn.com) X-Authentication-Warning: sv01.rfk.priv: rfk set sender to richard.kaestner@ycn.com using -f From: Richard =?utf-8?q?K=C3=A4stner?= To: freebsd-questions@freebsd.org Date: Tue, 3 Jan 2006 19:49:22 +0100 User-Agent: KMail/1.7 References: <200601021833.59112.richard.kaestner@ycn.com> <43B99B33.5020609@cs.tu-berlin.de> In-Reply-To: <43B99B33.5020609@cs.tu-berlin.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200601031949.22484.richard.kaestner@ycn.com> Cc: freebsd-fs@freebsd.org, =?utf-8?q?Bj=C3=B6rn_K=C3=B6nig?= Subject: Re: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: richard.kaestner@ycn.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2006 18:49:30 -0000 On Monday 02 January 2006 22:29, Bj=C3=B6rn K=C3=B6nig wrote: > > Richard K=C3=A4stner schrieb: > > Hello, > > > > hope to find some help, hints and experience here: > > > > an external device expects commands and command data, > > it produces result-codes and result data. > > Communication is done via HTTP (and working) > > > > The idea is, to allow access via Samba, which requires either > > implementation of Samba - VFS modules or mapping to BSD-Filesystem - > > pseudofs came to my mind. > > [...] > > Hello, > > your description is a little bit vague to me, but it sounds like that > this task can be probably done by using portalfs. See mount_portalfs(8) > for examples. > > Regards Bj=C3=B6rn Bj=C3=B6rn, (sorry for being vague - I seem to be too deep in my problems) thanks for the tip - portalfs was the first thing to try, but it does not w= ork=20 with samba (at least the way, I wanted ): Portalfs does not allow to pass anything besides '/p/tcp/localhost/6666' To be less vague : the external device is a black box, communicates via ???-HTTP server. The idea is: =2D a (windows)user copies a file to a directory (say: .../commands/xyz), =2D there is a "thing", that maps this file to some activity towards extern= al box (similar to: procfs_doprocnote ) =2D as a response, a file appears in another file (.../response/data),=20 which can be read from (windows)client ( similar to: procfs_doproccmdline) =2D the whole stuff should work diskless=20 =2D response data can be from a few bytes up to several megabyte =2D if I can manage, I could export this filesystem via samba _and_ nfs ... =2D if it all was only about acces to the black box, it could be done via=20 HTTP ... unfortunately, I have to deal with windows clients Regards Richard =2D-=20 Mit freundlichen Gr=C3=BC=C3=9Fen Richard K=C3=A4stner EDV-Beratung Woerthgasse 17 2500 Baden Austria