From owner-freebsd-current@FreeBSD.ORG Tue Nov 30 15:34:06 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB6FE16A4CF for ; Tue, 30 Nov 2004 15:34:06 +0000 (GMT) Received: from ss.eunet.cz (ss.eunet.cz [194.213.218.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5733243D54 for ; Tue, 30 Nov 2004 15:34:06 +0000 (GMT) (envelope-from mime@traveller.cz) Received: from [127.0.0.1] (localhost [127.0.0.1]) by ss.eunet.cz (8.13.1/8.13.1) with ESMTP id iAUFXuFp047803; Tue, 30 Nov 2004 16:33:57 +0100 (CET) (envelope-from mime@traveller.cz) Message-ID: <41AC92DE.8080402@traveller.cz> Date: Tue, 30 Nov 2004 16:33:50 +0100 From: Michal Mertl User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; cs-CZ; rv:1.7.3) Gecko/20041117 X-Accept-Language: cs, en-us, en MIME-Version: 1.0 To: Ruben de Groot References: <41AC57BF.6060604@traveller.cz> <20041130120856.GA44543@ei.bzerk.org> In-Reply-To: <20041130120856.GA44543@ei.bzerk.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: enhacement to mdmfs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 15:34:07 -0000 Ruben de Groot wrote: > On Tue, Nov 30, 2004 at 12:21:35PM +0100, Michal Mertl typed: > >>Hello, >> >>I've recently shot my foot with mdmfs. Of course it was a pilot error but >>the funcioanility I was looking for might be usefull. >> >>I want to mount vnode-backed md(4) on boot without formatting it (e.g. for >>a jail). Is it possible with current boot scripts? >> >>I wrote a simple patch to mdmfs so such md disk can be put in /etc/fstab. >>It adds '-K' option do mdmfs(8) to Keep contents. The line to attach such >>disk in fstab looks like this: >> >>md /jail mfs rw,-K,-F=/var/jailfile 0 0 >> >>Comments welcome. If people find it usefull I'd like to have it commited. I >>can fill the PR with enhancement request. > > > I filed a PR about this allready in October 2003: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=57641 > > Ruben > Indeed. The patch is almost the same. Last update is from today stating it will be commited. Hurray. -- Michal