|
|
|
|
|
|
| Author |
Message |
J. van der Knaap *nix forums beginner
Joined: 07 Feb 2005
Posts: 2
|
Posted: Mon Feb 07, 2005 7:48 pm Post subject:
mount_nullfs question
|
|
|
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
|
Posted: Tue Feb 08, 2005 12:00 am Post subject:
Re: mount_nullfs question
|
|
|
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
|
Posted: Tue Feb 08, 2005 2:38 am Post subject:
Re: mount_nullfs question
|
|
|
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
|
Posted: Tue Feb 08, 2005 7:14 am Post subject:
Re: mount_nullfs question
|
|
|
| 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
|
Posted: Tue Feb 08, 2005 11:55 am Post subject:
Re: mount_nullfs question
|
|
|
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 |
|
 |
|
|
The time now is Fri Jan 09, 2009 11:00 am | All times are GMT
|
|
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
|
|