From owner-freebsd-fs@FreeBSD.ORG Mon Jan 2 17:34:06 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 870E216A41F for ; Mon, 2 Jan 2006 17:34:06 +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 5A9B343D58 for ; Mon, 2 Jan 2006 17:34:04 +0000 (GMT) (envelope-from richard.kaestner@ycn.com) Received: (qmail 2219 invoked from network); 2 Jan 2006 17:34:01 -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; 02 Jan 2006 17:34:01 -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 k02HY0bl000911 for ; Mon, 2 Jan 2006 18:34:00 +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 k02HXxu2000910 for freebsd-fs@freebsd.org; Mon, 2 Jan 2006 18:33:59 +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 =?iso-8859-1?q?K=E4stner?= To: freebsd-fs@freebsd.org Date: Mon, 2 Jan 2006 18:33:58 +0100 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200601021833.59112.richard.kaestner@ycn.com> Subject: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: richard.kaestner@ycn.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2006 17:34:06 -0000 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 implementatio= n=20 of Samba - VFS modules or mapping to BSD-Filesystem - pseudofs came to my=20 mind. Currently I try (and err) with a modified version of procfs.=20 So far I can compile, boot the new kernel, mount and access the first few = =20 primitives: 2 directories and a file (read only) Is, what I am trying: =2D useless / stupid =2D better to do with Samba VFS-module =2D error prone due to accessing network in "kernel-land" =2D can I run into troubles because of networking "problems-of-any-kind" =2D simply the wrong way (because something similar exists, ...) (I have to say, I know about C, I experimented with device drivers - but th= is=20 is my first step into the depth of kernel programming ...) Another, more technical question:=20 can I create dynamic directories / files using pseudofs, or do I have to=20 re-init everything? Thanks in advance for every input! regards R.Kaestner =2D-=20 Mit freundlichen Gr=FC=DFen Richard K=E4stner EDV-Beratung Woerthgasse 17 2500 Baden Austria From owner-freebsd-fs@FreeBSD.ORG Mon Jan 2 21:29:28 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 97F2816A41F for ; Mon, 2 Jan 2006 21:29:28 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from efacilitas.de (smtp.efacilitas.de [85.10.196.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0416343D75 for ; Mon, 2 Jan 2006 21:29:21 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-169-24.dynamic.qsc.de [212.202.169.24]) by efacilitas.de (Postfix) with ESMTP id 213304B0BB; Mon, 2 Jan 2006 22:38:02 +0100 (CET) Received: from [192.168.1.2] (muhkuh.local [192.168.1.2]) by eurystheus.local (Postfix) with ESMTP id B40415285B; Mon, 2 Jan 2006 22:28:08 +0100 (CET) Message-ID: <43B99B33.5020609@cs.tu-berlin.de> Date: Mon, 02 Jan 2006 22:29:23 +0100 From: =?UTF-8?B?QmrDtnJuIEvDtm5pZw==?= User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: richard.kaestner@ycn.com References: <200601021833.59112.richard.kaestner@ycn.com> In-Reply-To: <200601021833.59112.richard.kaestner@ycn.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-fs@freebsd.org Subject: Re: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2006 21:29:28 -0000 Richard Kästner 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örn From owner-freebsd-fs@FreeBSD.ORG Tue Jan 3 18:49:30 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 69E6316A420 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 36B8443D4C 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 Subject: Re: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: richard.kaestner@ycn.com List-Id: Filesystems 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 From owner-freebsd-fs@FreeBSD.ORG Tue Jan 3 19:20:42 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 7FC6516A41F; Tue, 3 Jan 2006 19:20:42 +0000 (GMT) (envelope-from gcorcoran@rcn.com) Received: from smtp02.mrf.mail.rcn.net (smtp02.mrf.mail.rcn.net [207.172.4.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 679FF43D76; Tue, 3 Jan 2006 19:20:38 +0000 (GMT) (envelope-from gcorcoran@rcn.com) Received: from 207-172-241-254.c3-0.tlg-ubr1.atw-tlg.pa.cable.rcn.com (HELO [10.56.78.176]) ([207.172.241.254]) by smtp02.mrf.mail.rcn.net with ESMTP; 03 Jan 2006 14:20:37 -0500 X-IronPort-AV: i="3.99,326,1131339600"; d="scan'208"; a="191017514:sNHT25350812" Message-ID: <43BACE81.8020403@rcn.com> Date: Tue, 03 Jan 2006 14:20:33 -0500 From: Gary Corcoran User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: richard.kaestner@ycn.com References: <200601021833.59112.richard.kaestner@ycn.com> <43B99B33.5020609@cs.tu-berlin.de> <200601031949.22484.richard.kaestner@ycn.com> In-Reply-To: <200601031949.22484.richard.kaestner@ycn.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-fs@freebsd.org, freebsd-questions@freebsd.org Subject: Re: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2006 19:20:42 -0000 Richard Kästner wrote: > On Monday 02 January 2006 22:29, Björn König wrote: > >>Richard Kästner 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örn > > Björn, > (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 work > 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: > - 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 I'm just curious: why can't the windows clients just use Firefox (or any other browser) to access the black box? You can download files (e.g. results) with a browser... Gary From owner-freebsd-fs@FreeBSD.ORG Tue Jan 3 20:38:57 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 A2E3A16A420 for ; Tue, 3 Jan 2006 20:38:57 +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 6581243D5A for ; Tue, 3 Jan 2006 20:38:52 +0000 (GMT) (envelope-from richard.kaestner@ycn.com) Received: (qmail 3090 invoked from network); 3 Jan 2006 20:38:47 -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 20:38:47 -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 k03Kck37004651; Tue, 3 Jan 2006 21:38:46 +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 k03Kcj8g004650; Tue, 3 Jan 2006 21:38:45 +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: Gary Corcoran Date: Tue, 3 Jan 2006 21:38:44 +0100 User-Agent: KMail/1.7 References: <200601021833.59112.richard.kaestner@ycn.com> <200601031949.22484.richard.kaestner@ycn.com> <43BACE81.8020403@rcn.com> In-Reply-To: <43BACE81.8020403@rcn.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200601032138.45114.richard.kaestner@ycn.com> Cc: freebsd-fs@freebsd.org, freebsd-questions@freebsd.org Subject: Re: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: richard.kaestner@ycn.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2006 20:38:58 -0000 On Tuesday 03 January 2006 20:20, Gary Corcoran wrote: > > Richard K=C3=A4stner wrote: > > 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 n= ot > > work 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: > > - 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 .= =2E. > > > > - 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 > > I'm just curious: why can't the windows clients just use Firefox (or > any other browser) to access the black box? You can download files > (e.g. results) with a browser... > > Gary As I wrote: it could be done via browser, but=20 1. it is a request=20 2. I became curious, if it is possible ...=20 Richard BTW: I appologize, if I am cross-posting.=20 Originally only posted to freebsd-fs@freebsd.org. Don't realize, how it=20 appeared on freebsd-questions =2D-=20 Mit freundlichen Gr=C3=BC=C3=9Fen Richard K=C3=A4stner EDV-Beratung Woerthgasse 17 2500 Baden Austria From owner-freebsd-fs@FreeBSD.ORG Tue Jan 3 20:46:20 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 3F50E16A425 for ; Tue, 3 Jan 2006 20:46:20 +0000 (GMT) (envelope-from user@dhp.com) Received: from shell.dhp.com (shell.dhp.com [199.245.105.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE32443D8A for ; Tue, 3 Jan 2006 20:46:13 +0000 (GMT) (envelope-from user@dhp.com) Received: by shell.dhp.com (Postfix, from userid 896) id 7222931309; Tue, 3 Jan 2006 15:46:06 -0500 (EST) Date: Tue, 3 Jan 2006 15:46:06 -0500 (EST) From: user To: freebsd-fs@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: permissions for .snap directories - contradictory man page ? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2006 20:46:20 -0000 I am using a 6.0-RELEASE system. On that system, the man page for dump states: This problem can be corrected by creating a .snap directory in the root of the file system to be dumped; its owner should be ``root'', its group should be ``operator'',and its mode should be ``0770''. However, I note that system install produced these .snap directories, by default, in the roots of my partitions: 2 drwxrwxr-x 2 root operator 512 Nov 30 03:27 .snap Is the man page wrong, or should I alter these permissions for my .snap dirs ? thanks. 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 From owner-freebsd-fs@FreeBSD.ORG Wed Jan 4 22:02:58 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 CB83116A41F for ; Wed, 4 Jan 2006 22:02:58 +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 8948843D48 for ; Wed, 4 Jan 2006 22:02:53 +0000 (GMT) (envelope-from richard.kaestner@ycn.com) Received: (qmail 3967 invoked from network); 4 Jan 2006 22:02:46 -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; 04 Jan 2006 22:02:46 -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 k04M2je3006812 for ; Wed, 4 Jan 2006 23:02:45 +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 k04M2hc3006811 for freebsd-fs@freebsd.org; Wed, 4 Jan 2006 23:02:43 +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 =?iso-8859-1?q?K=E4stner?= To: freebsd-fs@freebsd.org Date: Wed, 4 Jan 2006 23:02:43 +0100 User-Agent: KMail/1.7 References: <200601041420.k04EK049049833@lurza.secnetix.de> In-Reply-To: <200601041420.k04EK049049833@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200601042302.43836.richard.kaestner@ycn.com> Subject: Re: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: 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 22:02:58 -0000 On Wednesday 04 January 2006 15:20, Oliver Fromme wrote: > > 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 , thank you for the frank words: ...(ab)using...=20 (which is definitely not what I want) =2D-=20 Mit freundlichen Gr=FC=DFen Richard K=E4stner EDV-Beratung Woerthgasse 17 2500 Baden Austria From owner-freebsd-fs@FreeBSD.ORG Wed Jan 4 22:53:57 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 3E59D16A41F for ; Wed, 4 Jan 2006 22:53:57 +0000 (GMT) (envelope-from loukamenov@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30EE343D8B for ; Wed, 4 Jan 2006 22:53:40 +0000 (GMT) (envelope-from loukamenov@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so3083433nzo for ; Wed, 04 Jan 2006 14:53:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mq6TXWQx2qkhG4OeaYeGG704LpQfMehsVx2MI6IznU6UuoN2kcHGQ+FeMepMZJJRkgBwtDZye6o2NLXsB/9K1i6ezGzEDCLbednXIY35P5jSSIFblDswsudsTMUYHcHPIRpHagXg04mtxjvD7BE/IJ5fX7gWgJ3C7L1yhHRQVhI= Received: by 10.36.153.3 with SMTP id a3mr5664723nze; Wed, 04 Jan 2006 14:53:39 -0800 (PST) Received: by 10.36.153.20 with HTTP; Wed, 4 Jan 2006 14:53:39 -0800 (PST) Message-ID: <76f962c60601041453n1d195cd6s@mail.gmail.com> Date: Wed, 4 Jan 2006 17:53:39 -0500 From: Lou Kamenov To: freebsd-fs@freebsd.org, richard.kaestner@ycn.com In-Reply-To: <200601041420.k04EK049049833@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200601041420.k04EK049049833@lurza.secnetix.de> Cc: Subject: Re: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2006 22:53:57 -0000 On 04/01/06, Oliver Fromme wrote: [..] > 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. representing different resources as files is not a new concept.. but rather an old one. look at plan 9. what Richard wants can be easily done with FUSE which was recently ported to FreeBSD by Csaba Henk [1]. best, l 1. http://fuse4bsd.creo.hu/ From owner-freebsd-fs@FreeBSD.ORG Thu Jan 5 04:37:50 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 4453A16A41F for ; Thu, 5 Jan 2006 04:37:50 +0000 (GMT) (envelope-from v.velox@vvelox.net) Received: from S1.cableone.net (s1.cableone.net [24.116.0.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 770CB43D5F for ; Thu, 5 Jan 2006 04:37:49 +0000 (GMT) (envelope-from v.velox@vvelox.net) Received: from vixen42.vulpes (unverified [24.119.122.41]) by S1.cableone.net (CableOne SMTP Service S1) with ESMTP id 42092093 for ; Wed, 04 Jan 2006 21:38:18 -0700 Date: Wed, 4 Jan 2006 22:45:02 -0600 From: Vulpes Velox To: freebsd-fs@freebsd.org Message-ID: <20060104224502.1e20fd36@vixen42.vulpes> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.8.9; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-NotAscii: charset=us-ascii X-IP-stats: Incoming Last 0, First 231, in=395, out=0, spam=0 X-External-IP: 24.119.122.41 X-Abuse-Info: Send abuse complaints to abuse@cableone.net Subject: Does this pose a danger to the FS on a disk? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2006 04:37:50 -0000 ad10: TIMEOUT - WRITE_DMA retrying (2 retries left) LBA=355277839 ad10: TIMEOUT - WRITE_DMA retrying (2 retries left) LBA=358666287 Smartctl so it as being good when a long self test is done. Because of that I believe the drive is good. The chipset is a Silicon Image 3112, which from my reading across the lists lead me to believe that it could very well be the problem. I am not getting any errors about it not completing it in those other two retries, so I am assuming it will be fine till I have a chance to get a proper sata card next week. Any one have any opinions on if it is save to leave it in rw mode, if it should be kicking into ro mode, or the like? From owner-freebsd-fs@FreeBSD.ORG Thu Jan 5 09:02:51 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 68C0916A41F for ; Thu, 5 Jan 2006 09:02:51 +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 430FF43D5C for ; Thu, 5 Jan 2006 09:02:49 +0000 (GMT) (envelope-from richard.kaestner@ycn.com) Received: (qmail 4405 invoked from network); 5 Jan 2006 09:02:47 -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; 05 Jan 2006 09:02:47 -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 k0592k1D007956; Thu, 5 Jan 2006 10:02:46 +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 k0592jHZ007955; Thu, 5 Jan 2006 10:02:45 +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 =?iso-8859-1?q?K=E4stner?= To: freebsd-fs@freebsd.org Date: Thu, 5 Jan 2006 10:02:45 +0100 User-Agent: KMail/1.7 References: <200601041420.k04EK049049833@lurza.secnetix.de> <76f962c60601041453n1d195cd6s@mail.gmail.com> In-Reply-To: <76f962c60601041453n1d195cd6s@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200601051002.45590.richard.kaestner@ycn.com> Cc: Subject: Re: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: richard.kaestner@ycn.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2006 09:02:51 -0000 On Wednesday 04 January 2006 23:53, Lou Kamenov wrote: > On 04/01/06, Oliver Fromme wrote: > [..] > > > 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. > > representing different resources as files is not a new concept.. but > rather an old one. look at plan 9. > > what Richard wants can be easily done with FUSE which was recently > ported to FreeBSD by Csaba Henk [1]. > > best, > l > > 1. http://fuse4bsd.creo.hu/ Lou, you seem to have experience with fuse, I could imagine, there is any negative impact on system operation, if=20 connection to the black-box is flaky, slow, ... ? The least I want to accomplish, is a 'good idea' which renders the system=20 unstable. regards Richard =2D-=20 Mit freundlichen Gr=FC=DFen Richard K=E4stner EDV-Beratung Woerthgasse 17 2500 Baden Austria From owner-freebsd-fs@FreeBSD.ORG Thu Jan 5 11:08:36 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 411BB16A41F for ; Thu, 5 Jan 2006 11:08:36 +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 6623C43D45 for ; Thu, 5 Jan 2006 11:08:35 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (dgnmrg@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k05B8Xio029206 for ; Thu, 5 Jan 2006 12:08:33 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k05B8XRR029205; Thu, 5 Jan 2006 12:08:33 +0100 (CET) (envelope-from olli) Date: Thu, 5 Jan 2006 12:08:33 +0100 (CET) Message-Id: <200601051108.k05B8XRR029205@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG In-Reply-To: <76f962c60601041453n1d195cd6s@mail.gmail.com> 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 List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2006 11:08:36 -0000 Lou Kamenov wrote: > On 04/01/06, Oliver Fromme wrote: > [..] > > 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. > > representing different resources as files is not a new concept.. but > rather an old one. look at plan 9. Right. Or look at devfs, procfs, fdescfs, portalfs etc. However, being able to represent resources or information via the file system does not necessarily mean that it is a particularly good idea to do so. For example, I think that procfs does not really make much sense. Especially Linux' procfs is a bad example of cramming too many things into the file system which do not belong there; it's just a big mess. It might be "cool", it might be "easy to do, so lets do it", but it's horribly inefficient and does not make sense. Another important point is the common guideline that as few things as possible should be implemented in the kernel. The kernel should provide interfaces to the hardware and to essential kernel facilities, but everything else should happen in userland. Richard is trying to implement a rather simple client-server mechanism to access a certain device on a server machine (I assume that there is already a driver for that device). There is no sane reason to do that on file system level. Handling it in userland is much more robust, easier to recover in case of problems, and easier to debug. However: YMMV, of course. :-) Best regards Oliver PS: By the way, there's also the opposite of the concept "everything is a file": There's a very interesting concept of an OS which is designed to work completely without the conventional notion of files. It only has processes. All data that you work with is owned by processes. Therefore it doesn't have a file system, but only swap -- the whole disk is a swap area that holds the processes and their data (persistent across reboots, of course). -- 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. We're sysadmins. To us, data is a protocol-overhead. From owner-freebsd-fs@FreeBSD.ORG Thu Jan 5 15:31:33 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 9202B16A41F for ; Thu, 5 Jan 2006 15:31:33 +0000 (GMT) (envelope-from loukamenov@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12FD843D48 for ; Thu, 5 Jan 2006 15:31:28 +0000 (GMT) (envelope-from loukamenov@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so3229686nzo for ; Thu, 05 Jan 2006 07:31:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RIXWfpQ1Y5dFyEVuJ+NVHkn0CqWPM38tNzygvDNv0H2g8HNcQogoGJ7c+ocN6B7epGzZHyy4YBb8Rf+2BugDPRpW4rY8XGIWkh5N1E9Lv1IAkWJRiGX+Ga09l+DKTw88O4Cxq5TUymrEnlY7bvimaLzqgvekxB+rB6aJ+TfmbkY= Received: by 10.36.72.8 with SMTP id u8mr7055737nza; Thu, 05 Jan 2006 07:31:27 -0800 (PST) Received: by 10.36.153.20 with HTTP; Thu, 5 Jan 2006 07:31:26 -0800 (PST) Message-ID: <76f962c60601050731x7a81bb57k@mail.gmail.com> Date: Thu, 5 Jan 2006 10:31:26 -0500 From: Lou Kamenov To: richard.kaestner@ycn.com In-Reply-To: <200601051002.45590.richard.kaestner@ycn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200601041420.k04EK049049833@lurza.secnetix.de> <76f962c60601041453n1d195cd6s@mail.gmail.com> <200601051002.45590.richard.kaestner@ycn.com> Cc: freebsd-fs@freebsd.org Subject: Re: mapping [process|socket|...] to Filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2006 15:31:33 -0000 On 05/01/06, Richard K=E4stner wrote: > On Wednesday 04 January 2006 23:53, Lou Kamenov wrote: > > On 04/01/06, Oliver Fromme wrote: [..] > you seem to have experience with fuse, Sorry. I haven't tested fuse4bsd thoroughly and I cannot comment, but I've used the original Linux implementation some time ago. > I could imagine, there is any negative impact on > system operation, if connection to the black-box > is flaky, slow, ... ? That depends entirely on your design. Fuse filesystems run in user land. > The least I want to accomplish, is a 'good idea' which renders > the system unstable. Rigorous tests can show that. Fuse4bsd list is probably a more suitable place to discuss this. best, Lou