From owner-freebsd-current@FreeBSD.ORG Mon May 12 00:14:34 2003 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 A888D37B401 for ; Mon, 12 May 2003 00:14:34 -0700 (PDT) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB0AB43FA3 for ; Mon, 12 May 2003 00:14:32 -0700 (PDT) (envelope-from garrigue@kurims.kyoto-u.ac.jp) Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3p2/3.7W) with ESMTP id QAA22596; Mon, 12 May 2003 16:14:29 +0900 (JST) To: freebsd-current@freebsd.org, stijn@win.tue.nl X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20030512161429F.garrigue@kurims.kyoto-u.ac.jp> Date: Mon, 12 May 2003 16:14:29 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Lines: 28 Subject: Re: mdmfs broken? --> no, but md is broken! 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: Mon, 12 May 2003 07:14:34 -0000 Stijn Hoop wrote: > What's the correct syntax in 5-CURRENT to have a memory disk for /tmp > in your /etc/fstab? Others have answerred as how it can be done. However, I must strongly inform you against using md on 5-CURRENT, particularly for /tmp, has I found it dangerously buggy. You can see the bug report below for details of the problem. http://www.freebsd.org/cgi/query-pr.cgi?pr=47538 Basically, tar doesn't work properly on such a file system. To verify it, you just have to write enough data on the memory file system so as it is actually flushed to the disk. Then you start to see discrepancies appearing. Curiously the problem doesn't appear with pax. I verified this with 5.0-RELEASE, and also with 5.1-BETA on a different machine with 256MB memory. I hope this problem is solved soon, as I am a fan of memory mounted /tmp like you. I enjoyed also mounting file systems inside files on a msdos partition with the vn driver, to avoid repartitioning, but this also seems to be broken with md. Cheers, Jacques Garrigue