Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 2004 13:40:08 -0500
From:      Cory Bajus <cbajus@mts.net>
To:        Mipam <mipam@ibb.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: unable to mount swap backed device
Message-ID:  <20040416184007.GA27067@rigel.bajus.ca>
In-Reply-To: <Pine.LNX.4.33.0404161055390.30534-100000@ux1.ibb.net>
References:  <20040414140712.GA62950@rigel.bajus.ca> <Pine.LNX.4.33.0404161055390.30534-100000@ux1.ibb.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 16, 2004 at 11:02:45AM +0200, Mipam wrote:
[SNIP]
> >> Only the permissions ans ownership after this are like this:
> >>
> >> drwxrwxrwt   3 root    wheel
> >>
> >> every time after reboot the permissions are the same again.
> >> Anyway, to get around this?
> 
> >Sure - have a look at the -p and -w options in the mdmfs man
> >page.
> 
> I noticed these options there, only, how do i invoke these commands in
> this line in /etc/fstab: (can i do it like this?)
> 
> md    /var/amavis     mfs     rw,-s64m,-p750,-wamavis:amavis   0   0

No, you will not be able to do that.  When you use mdmfs in a
fstab entry, you are actually using the 'compatibiliy mode' for
the old mount_mfs.  As described in the mdmfs man page, you can
only use a subset of the options in compatilibity mode.

The following command should accomplish what you need:

mdmfs -s 64m -p 0750 -w amavis:amavis md /var/amavis


Cory.



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