Received: with ECARTIS (v1.0.0; list linux-xfs); Sun, 22 Feb 2004 10:22:22 -0800 (PST) Received: from phoenix.infradead.org (phoenix.infradead.org [213.86.99.234]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i1MIMJKO010784 for ; Sun, 22 Feb 2004 10:22:20 -0800 Received: from hch by phoenix.infradead.org with local (Exim 4.30 #5 (Red Hat Linux)) id 1AuyEz-0000As-MT; Sun, 22 Feb 2004 18:22:09 +0000 Date: Sun, 22 Feb 2004 18:22:09 +0000 From: Christoph Hellwig To: Ram Pai Cc: Steve Lord , Dean Roehrich , linux-xfs@oss.sgi.com Subject: Re: DMAPI test suite. Message-ID: <20040222182209.A642@infradead.org> References: <200402181519.i1IFJS9i11055016@clink.americas.sgi.com> <1077265286.7503.37.camel@dyn319009bld.beaverton.ibm.com> <40360FC8.4060405@xfs.org> <1077473812.2822.32.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1077473812.2822.32.camel@localhost.localdomain>; from linuxram@us.ibm.com on Sun, Feb 22, 2004 at 10:16:52AM -0800 X-archive-position: 2184 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: hch@infradead.org Precedence: bulk X-list: linux-xfs On Sun, Feb 22, 2004 at 10:16:52AM -0800, Ram Pai wrote: > Looking through the xfs dmapi code, 2 questions pop up: > 1. How can the pre_unmount event, when generated through the put_super() > code provide the DM_UNMOUNT_FORCE information. There is now way for the > put_super() code to know if the unmount is a forceful one or not. It can't. > 2. And finally I find that all the DMAPI event generators are stubbed > to fs_nosys or fs_noerr or fs_noval . So does XFS ever generate DM > events ? You need to load the xfs_dmapi module to get an implementation. It's in the CVS repository at oss.sgi.com. > > Al Viro is distinctly anti dmapi, so chances are slim to none I would > > say. > > hmm...that makes it difficult. Is he against Dmapi implemented in VFS or > against the overall idea of supporting DMAPI anywhere in linux? I hope > he is just against DMAPI implemented at the VFS level and is ok with > supporting filesystems to implement it. DMAPI is an extremly broken specification, it fits hardly into an unix enviroment and not into Linux at all. SGI tries to provide a best-fit dmapi implementation anyways, but it's just not something that should go into an mainline kernel. If you want to see HSM support in a kernel.org kernel start by designing a saner specification than dmapi.