From: Christoph Hellwig Subject: Re: NFS and non-blkdev-backed FS? Date: Fri, 15 Aug 2008 08:34:43 -0400 Message-ID: <20080815123443.GA18230@infradead.org> References: <48A5449F.7050205@nokia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org To: Artem Bityutskiy Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:51235 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752981AbYHOMeo (ORCPT ); Fri, 15 Aug 2008 08:34:44 -0400 Content-Disposition: inline In-Reply-To: <48A5449F.7050205@nokia.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Aug 15, 2008 at 11:55:59AM +0300, Artem Bityutskiy wrote: > UBIFS (as e.g. XFS) has a 16-byte UUID in superblock which is > supposed to uniquely identify the file-system. I'd like to use > this UUID as NFS FSID instead, however, I failed to find how > to do this. Any hints how could I do this? You would need a new export operations method for initializating the the fsid part of the file handle. This method would be calked from fh_compose or rather the new fsid generating factored out from that. Note that it would be good to use this for block bases filesystems, too so there should be some way to override the default fsids for those, too.