From owner-freebsd-stable@FreeBSD.ORG Fri Apr 16 11:40:12 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4116016A4CF for ; Fri, 16 Apr 2004 11:40:12 -0700 (PDT) Received: from mx-mtaout02.mts.net (wnpgmb0271w.mts.net [142.161.130.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69DFB43D2F for ; Fri, 16 Apr 2004 11:40:11 -0700 (PDT) (envelope-from cbajus@mts.net) Received: from rigel.bajus.ca ([142.161.122.60]) by mx-mtaout02.mts.net with ESMTP id <20040416184010.FMCW8102.mx-mtaout02.mts.net@rigel.bajus.ca>; Fri, 16 Apr 2004 13:40:10 -0500 Received: from rigel.bajus.ca (localhost [127.0.0.1]) by rigel.bajus.ca (8.12.8p2/8.12.8) with ESMTP id i3GIe98m027262; Fri, 16 Apr 2004 13:40:09 -0500 (CDT) (envelope-from cbajus@rigel.bajus.ca) Received: (from cbajus@localhost) by rigel.bajus.ca (8.12.8p2/8.12.8/Submit) id i3GIe8J7027261; Fri, 16 Apr 2004 13:40:08 -0500 (CDT) Date: Fri, 16 Apr 2004 13:40:08 -0500 From: Cory Bajus To: Mipam Message-ID: <20040416184007.GA27067@rigel.bajus.ca> References: <20040414140712.GA62950@rigel.bajus.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-stable@freebsd.org Subject: Re: unable to mount swap backed device X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 18:40:12 -0000 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.