From owner-freebsd-fs@FreeBSD.ORG Tue Feb 6 16:48:31 2007 Return-Path: X-Original-To: fs@freebsd.org Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8864A16A400; Tue, 6 Feb 2007 16:48:31 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5A42213C481; Tue, 6 Feb 2007 16:48:31 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l16GFkXE054869; Tue, 6 Feb 2007 10:15:47 -0600 (CST) (envelope-from anderson@freebsd.org) Message-ID: <45C8A9B2.4090605@freebsd.org> Date: Tue, 06 Feb 2007 10:15:46 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20070204) MIME-Version: 1.0 To: Josef Karthauser References: <20070204023711.GA3393@genius.tao.org.uk> In-Reply-To: <20070204023711.GA3393@genius.tao.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2527/Tue Feb 6 04:14:46 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: hackers@freebsd.org, fs@freebsd.org Subject: Re: nullfs and named pipes. 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, 06 Feb 2007 16:48:31 -0000 On 02/03/07 20:37, Josef Karthauser wrote: > Hey guys, does anyone know off the top of their heads why named pipes > don't appear to work across null_fs mounted partitions? i.e. if I have > a named pipe in a file system, > > # ls -ld /mysql/mysql.sock > srwxrwxrwx 1 mysql wheel 0 Feb 3 19:01 /mysql/mysql.sock > > # mysql --socket=/mysql/mysql.sock > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 6 > Server version: 5.0.33-log FreeBSD port: mysql-server-5.0.33 > > Type 'help;' or '\h' for help. Type '\c' to clear the buffer. > > mysql> > > However if I make this available elsewhere via a null_fs mount: > > # mkdir /foo > # mount_nullfs /mysql /foo > # ls -ld /foo/mysql.sock > srwxrwxrwx 1 mysql wheel 0 Feb 3 19:01 /foo/mysql.sock > > # mysql --socket=/foo/mysql.sock -p > Enter password: > ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/foo/mysql.sock' (61) > > the socket stops working. > > However a hardlink to the socket works: > > # umount /foo > # ln /mysql/mysql.sock /foo/mysql.sock > > # mysql --socket=/foo/mysql.sock > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 10 > Server version: 5.0.33-log FreeBSD port: mysql-server-5.0.33 > > Type 'help;' or '\h' for help. Type '\c' to clear the buffer. > > Is this a fundamental design issue with null_fs or a bug? > > There appears to be a lot of confusion on the lists about this point > as many people are trying to do this so as to make a single mysql > server available from within a number of jails, for instance. However > people appear to think that this is a limitation of the jail code, not a > limitation of the null_fs code. Having named pipes work in null_fs > filesystems would be a very handy thing indeed. > > I'd appreciate any insights into this. Just wanted to say that it seems like this should work, and I'm not yet certain why it doesn't. I've looked into it a bit, but my time is very limited, so I doubt I'll be able to put much more into it.. Eric