From owner-freebsd-fs@FreeBSD.ORG Wed Jan 4 14:20:07 2006 Return-Path: X-Original-To: freebsd-fs@FreeBSD.ORG Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AB0F16A41F for ; Wed, 4 Jan 2006 14:20:07 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id F27D743D60 for ; Wed, 4 Jan 2006 14:20:03 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (xydilc@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k04EK13e049837; Wed, 4 Jan 2006 15:20:01 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k04EK049049833; Wed, 4 Jan 2006 15:20:00 +0100 (CET) (envelope-from olli) Date: Wed, 4 Jan 2006 15:20:00 +0100 (CET) Message-Id: <200601041420.k04EK049049833@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG, richard.kaestner@ycn.com In-Reply-To: X-Newsgroups: list.freebsd-fs User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.11-STABLE (i386)) Cc: Subject: Re: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@FreeBSD.ORG, richard.kaestner@ycn.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2006 14:20:07 -0000 Richard Kaestner wrote: > the external device is a black box, communicates via ???-HTTP server. > > The idea is: > - a (windows)user copies a file to a directory (say: .../commands/xyz), > - there is a "thing", that maps this file to some activity towards external > box (similar to: procfs_doprocnote ) > - as a response, a file appears in another file (.../response/data), > which can be read from (windows)client ( similar to: procfs_doproccmdline) > - the whole stuff should work diskless > - response data can be from a few bytes up to several megabyte > > > - if I can manage, I could export this filesystem via samba _and_ nfs ... > > - if it all was only about acces to the black box, it could be done via > HTTP ... unfortunately, I have to deal with windows clients It would be much easier to use HTTP instead of (ab)using file system operations. Just install an Apache web server on your server machine and write a small CGI. The Windows clients can simply use a web browser to upload their data to your CGI. Then your CGI does whatever is necessary to communicate with your black box, and sends the result back to the client's web browser. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. C++: "an octopus made by nailing extra legs onto a dog" -- Steve Taylor, 1998