From owner-cvs-all@FreeBSD.ORG Wed Mar 10 23:38:28 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7EE316A4CE; Wed, 10 Mar 2004 23:38:28 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id C91F643D1F; Wed, 10 Mar 2004 23:38:28 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id C228D5C7D4; Wed, 10 Mar 2004 23:38:28 -0800 (PST) Date: Wed, 10 Mar 2004 23:38:28 -0800 From: Alfred Perlstein To: Colin Percival Message-ID: <20040311073828.GU56622@elvis.mu.org> References: <20040311044722.GA93643@regency.nsu.ru> <48203.1078985587@critter.freebsd.dk> <6.0.1.1.1.20040311062306.03f9ade0@imap.sfu.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6.0.1.1.1.20040311062306.03f9ade0@imap.sfu.ca> User-Agent: Mutt/1.4.2.1i cc: cvs-src@FreeBSD.org cc: Poul-Henning Kamp cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys mdioctl.h src/sys/dev/md md.c src/sbin/mdconfig mdconfig.8 mdconfig.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 07:38:29 -0000 * Colin Percival [040310 22:31] wrote: > At 06:13 11/03/2004, Poul-Henning Kamp wrote: > >That is a matter of taste more than anything else. A vnode backed md(4) > >device is technically a layering violation, so either the syncer or > >the md(4) code itself (or both) needs to be aware of the special case. > > > Is it really necessary for vnode-backed memory disks to be > accessed through the filesystem? Why can't md(4) hijack the > disk blocks which constitute the file (telling the filesystem > not to touch them, of course) and translate I/O operations > directly into I/O on the underlying device? > That would be harder and make it only work on filesystems that support VOP_BMAP, unless it fell back to VOP_WRITE when BMAP returned ENOTSUP. (VOP_BMAP returns the disk locations for a range of a vnode) Give it a try. :) -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684