Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2006 23:30:04 -0400
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Bob Hepple <bhepple@freeshell.org>
Cc:        sentory@gmail.com, freebsd-questions@freebsd.org, malcom.kay@internode.on.net
Subject:   Re: ext2fs and NFS
Message-ID:  <20060613033004.GA11496@crodrigues.org>
In-Reply-To: <20051027113903.4ff19458.bhepple@freeshell.org>
References:  <20051027113903.4ff19458.bhepple@freeshell.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060613033004.GA11496>