niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD
mount_nullfs question
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
J. van der Knaap
*nix forums beginner


Joined: 07 Feb 2005
Posts: 2

PostPosted: Mon Feb 07, 2005 7:48 pm    Post subject: mount_nullfs question Reply with quote

I mean to run an ftp server that uses ftpchroot, restricting all users
to the root of their homedirs. However all users should have access to
some dirs that are outside their root. I thought I might get there by
using symbolic links, but that doesn't quite seem to work with an
ftpchroot-ed ftpd, especially when the public dirs are not on the same
slice.

It's been suggested I try mount_nullfs to mount dirs outside user's
root/homedir to points inside their homedir. This does work.

However the manpages of mount_nullfs displays a rather ominous bug warning:

THIS FILE SYSTEM TYPE IS NOT YET FULLY SUPPORTED (READ: IT DOESN'T WORK)
AND USING IT MAY, IN FACT, DESTROY DATA ON YOUR SYSTEM. USE AT YOUR OWN
RISK. BEWARE OF DOG. SLIPPERY WHEN WET.

Does anybody here have experiences with mount_nullfs resulting in loss
of data? Under which conditions did/can that occur? Can there be an
educated guess as to the risk I would be running?

Thank you,
Joost
Back to top
Kris Kennaway
*nix forums Guru


Joined: 28 Apr 2002
Posts: 634

PostPosted: Tue Feb 08, 2005 12:00 am    Post subject: Re: mount_nullfs question Reply with quote

On 2005-02-07, J. van der Knaap <spamzuigt@pastrami.be> wrote:
Quote:
I mean to run an ftp server that uses ftpchroot, restricting all users
to the root of their homedirs. However all users should have access to
some dirs that are outside their root. I thought I might get there by
using symbolic links, but that doesn't quite seem to work with an
ftpchroot-ed ftpd, especially when the public dirs are not on the same
slice.

It's been suggested I try mount_nullfs to mount dirs outside user's
root/homedir to points inside their homedir. This does work.

However the manpages of mount_nullfs displays a rather ominous bug warning:

THIS FILE SYSTEM TYPE IS NOT YET FULLY SUPPORTED (READ: IT DOESN'T WORK)
AND USING IT MAY, IN FACT, DESTROY DATA ON YOUR SYSTEM. USE AT YOUR OWN
RISK. BEWARE OF DOG. SLIPPERY WHEN WET.

Does anybody here have experiences with mount_nullfs resulting in loss
of data? Under which conditions did/can that occur? Can there be an
educated guess as to the risk I would be running?

In 5.3 it seems to work, at least in the situations I've used it in
(r/w file storage). What I haven't tested are exotic things like
using sockets on the nullfs lower level, simultaneously mmapping files
on both upper and lower levels, etc. What may happen if you hit a bug
is that your system will panic, and there will be damage to the
filesystem that needs to be repaired by fsck (i.e. associated loss of
files). Give it a try, but make sure you have backup and recovery
procedures in place.

Kris
Back to top
Mike Packard
*nix forums beginner


Joined: 08 Feb 2005
Posts: 5

PostPosted: Tue Feb 08, 2005 2:38 am    Post subject: Re: mount_nullfs question Reply with quote

Kris Kennaway wrote:
Quote:
On 2005-02-07, J. van der Knaap <spamzuigt@pastrami.be> wrote:

I mean to run an ftp server that uses ftpchroot, restricting all users
to the root of their homedirs. However all users should have access to
some dirs that are outside their root. I thought I might get there by
using symbolic links, but that doesn't quite seem to work with an
ftpchroot-ed ftpd, especially when the public dirs are not on the same
slice.

It's been suggested I try mount_nullfs to mount dirs outside user's
root/homedir to points inside their homedir. This does work.

However the manpages of mount_nullfs displays a rather ominous bug warning:

THIS FILE SYSTEM TYPE IS NOT YET FULLY SUPPORTED (READ: IT DOESN'T WORK)
AND USING IT MAY, IN FACT, DESTROY DATA ON YOUR SYSTEM. USE AT YOUR OWN
RISK. BEWARE OF DOG. SLIPPERY WHEN WET.

Does anybody here have experiences with mount_nullfs resulting in loss
of data? Under which conditions did/can that occur? Can there be an
educated guess as to the risk I would be running?


In 5.3 it seems to work, at least in the situations I've used it in
(r/w file storage). What I haven't tested are exotic things like
using sockets on the nullfs lower level, simultaneously mmapping files
on both upper and lower levels, etc. What may happen if you hit a bug
is that your system will panic, and there will be damage to the
filesystem that needs to be repaired by fsck (i.e. associated loss of
files). Give it a try, but make sure you have backup and recovery
procedures in place.

Kris

Kris,

A while ago I did the same thing. Worked fine, but eventually I got
nervous on the exact same statement you quoted. So instead I switch to
NFS. My home dirs are on their own partition, and I allow only local to
mount them (for NFS). Don't run into any problems this way and don't
expect to. I've got enough horses on my machine to never expect any
slowdowns since I'm going through localhost. I would like to run the
null fs though just not gutsy enough to.

Mike Packard
news@packardshome.net
Back to top
Denis Shaposhnikov
*nix forums beginner


Joined: 08 Feb 2005
Posts: 2

PostPosted: Tue Feb 08, 2005 7:14 am    Post subject: Re: mount_nullfs question Reply with quote

Quote:
"J" == J van der Knaap <spamzuigt@pastrami.be> writes:

J> It's been suggested I try mount_nullfs to mount dirs outside
J> user's root/homedir to points inside their homedir. This does
J> work.

nullfs was very slow in my env (inside jail), try unionfs -r instead.

--
DSS5-RIPE DSS-RIPN 2:550/5068@fidonet 2:550/5069@fidonet
mailto:dsh@vlink.ru http://neva.vlink.ru/~dsh/
Back to top
Kris Kennaway
*nix forums Guru


Joined: 28 Apr 2002
Posts: 634

PostPosted: Tue Feb 08, 2005 11:55 am    Post subject: Re: mount_nullfs question Reply with quote

On 2005-02-08, Denis Shaposhnikov <dsh@vlink.ru> wrote:
Quote:
"J" == J van der Knaap <spamzuigt@pastrami.be> writes:

J> It's been suggested I try mount_nullfs to mount dirs outside
J> user's root/homedir to points inside their homedir. This does
J> work.

nullfs was very slow in my env (inside jail), try unionfs -r instead.

unionfs is more likely to blow up in cases like I mentioned.

Kris
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 11:00 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Newbie question: How to forward a domain to a mailbox? leei Postfix 0 Fri Aug 24, 2007 4:55 pm
No new posts configuration question for httpd Karl Wang Apache 1 Fri Jul 21, 2006 2:10 pm
No new posts nim problem/question Ron AIX 0 Fri Jul 21, 2006 1:57 pm
No new posts question for JAVA developer who r using postgres sql as b... deepak pal PostgreSQL 1 Fri Jul 21, 2006 9:00 am
No new posts Encryption Question dtuttle1@gmail.com Berkeley DB 2 Thu Jul 20, 2006 10:09 pm

Remortgages | Buy Anything On eBay | Encyclopaedia | Online Name | Loan
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2799s ][ Queries: 16 (0.1919s) ][ GZIP on - Debug on ]