From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Chinner Subject: Re: [RFC PATCH 2/3] vfs: Add open by file handle support Date: Mon, 22 Feb 2010 17:31:16 +1100 Message-ID: <20100222063116.GA22370@discord.disaster> References: <1266558149-11460-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1266558149-11460-3-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <87tyt9n6g8.fsf@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andreas Dilger , hch@infradead.org, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org To: "Aneesh Kumar K. V" Return-path: Received: from bld-mail14.adl6.internode.on.net ([150.101.137.99]:56315 "EHLO mail.internode.on.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751739Ab0BVGbU (ORCPT ); Mon, 22 Feb 2010 01:31:20 -0500 Content-Disposition: inline In-Reply-To: <87tyt9n6g8.fsf@linux.vnet.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Feb 22, 2010 at 11:43:43AM +0530, Aneesh Kumar K. V wrote: > On Sat, 20 Feb 2010 11:58:34 -0700, Andreas Dilger wrote: > > Without the handle identifying the filesystem in some way this is > > mostly useless. Encoding the device number would be a simple (though > > non-robust) way to do this, a better way would be with the filesystem > > UUID and adding an in-kernel UUID->sb mapping function (which is > > useful for other things as well). > > > > But i understand this is an good requirement. I will see what best I > can do. For better or worse, the xfs_handle_t contains a fsid derived from the UUID if the filesystem. Cheers, Dave. -- Dave Chinner david@fromorbit.com