From mboxrd@z Thu Jan 1 00:00:00 1970 From: Trond Myklebust Subject: Re: NFS and non-blkdev-backed FS? Date: Fri, 15 Aug 2008 10:18:12 -0400 Message-ID: <1218809892.7037.3.camel@localhost> References: <48A5449F.7050205@nokia.com> <1218808776.3184.89.camel@pmac.infradead.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Artem.Bityutskiy@nokia.com, linux-fsdevel@vger.kernel.org To: David Woodhouse Return-path: Received: from mail-out2.uio.no ([129.240.10.58]:57466 "EHLO mail-out2.uio.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752590AbYHOOhu (ORCPT ); Fri, 15 Aug 2008 10:37:50 -0400 In-Reply-To: <1218808776.3184.89.camel@pmac.infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, 2008-08-15 at 14:59 +0100, David Woodhouse wrote: > On Fri, 2008-08-15 at 11:55 +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? > > By adding a 'get_fsid()' method to the export_ops structure... > If the uuid can be found by libuuid, then it will automatically be used as the default identifier by rpc.mount (man 5 exports). There should be no need for a new export_ops method. Cheers Trond