From owner-freebsd-questions@FreeBSD.ORG Tue Jun 13 03:30:06 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 C5B8316A41B for ; Tue, 13 Jun 2006 03:30:06 +0000 (UTC) (envelope-from rodrigc@crodrigues.org) Received: from rwcrmhc15.comcast.net (rwcrmhc15.comcast.net [204.127.192.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4684743D45 for ; Tue, 13 Jun 2006 03:30:06 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from c-71-233-168-2.hsd1.ma.comcast.net ([71.233.168.2]) by comcast.net (rwcrmhc15) with ESMTP id <20060613033005m1500k2t2je>; Tue, 13 Jun 2006 03:30:05 +0000 Received: from c-71-233-168-2.hsd1.ma.comcast.net (localhost [127.0.0.1]) by c-71-233-168-2.hsd1.ma.comcast.net (8.13.6/8.13.1) with ESMTP id k5D3U5uq011562; Mon, 12 Jun 2006 23:30:05 -0400 (EDT) (envelope-from rodrigc@c-71-233-168-2.hsd1.ma.comcast.net) Received: (from rodrigc@localhost) by c-71-233-168-2.hsd1.ma.comcast.net (8.13.6/8.13.1/Submit) id k5D3U4Bx011561; Mon, 12 Jun 2006 23:30:04 -0400 (EDT) (envelope-from rodrigc) Date: Mon, 12 Jun 2006 23:30:04 -0400 From: Craig Rodrigues To: Bob Hepple Message-ID: <20060613033004.GA11496@crodrigues.org> References: <20051027113903.4ff19458.bhepple@freeshell.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051027113903.4ff19458.bhepple@freeshell.org> User-Agent: Mutt/1.4.2.1i Cc: sentory@gmail.com, freebsd-questions@freebsd.org, malcom.kay@internode.on.net Subject: Re: ext2fs and NFS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 03:30:06 -0000 On Wed, Oct 26, 2005 at 10:39:08PM +0000, Bob Hepple wrote: > I need to export an ext2fs file system mounted@/mnt/guest - it's a > removable IDE disc that I carry to & from my linux system@work... > > "mount" shows: > > /dev/ad2s1 on /mnt/guest (ext2fs, local) > > So, I put an entry into /etc/exports: > > /mnt/guest -alldirs -network 192.168.254.0 -mask 255.255.255.0 > > and then: > > kill -s HUP `cat /var/run/mountd.pid` > > "showmount localhost" shows nothing and in /var/log/messages I have: > > Oct 27 11:36:01 raita kernel: ext2fs doesn't support the old mount syscall > Oct 27 11:36:01 raita mountd[417]: can't export /mnt/guest > Oct 27 11:36:01 raita mountd[417]: bad exports list line /mnt/guest -network 192.168.254.0 -mask 255.255.255.0 > > ... so there's really no way to NFS export an ext2fs file system??? Hi, The mountd program in FreeBSD previously had some hard-coded restrictions on which filesystems it could export (ufs, msdosfs, cd9660, and ntfs). I converted the mountd program to use the nmount() syscall, and removed the hardcoded restrictions on what filesystems can be NFS exported. As long as the underlying filesystem supports NFS exporting, it should work. It should now work for ext2fs. If you cvsup to RELENG_6 or HEAD, you can get my changes, and if you can try them out and let me know if you have any problems, I would appreciate it. -- Craig Rodrigues rodrigc@crodrigues.org