Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 20 Feb 2002 14:43:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 20 Feb 2002 14:43:10 -0500 Received: from mons.uio.no ([129.240.130.14]:42888 "EHLO mons.uio.no") by vger.kernel.org with ESMTP id ; Wed, 20 Feb 2002 14:42:56 -0500 To: "Peter J. Braam" Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: tmpfs, NFS, file handles In-Reply-To: <20020220094649.X25738@lustre.cfs> <3C73D548.648C5D64@mandrakesoft.com> <20020220122116.C28913@lustre.cfs> From: Trond Myklebust Date: 20 Feb 2002 20:42:50 +0100 In-Reply-To: <20020220122116.C28913@lustre.cfs> Message-ID: Lines: 19 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org >>>>> " " == Peter J Braam writes: > Would the following also work? > - have a 32 bit counter: set inode->i_ino to count++ That is exactly what iunique() does except that it also checks for uniqueness and allows you to specify a minimum value. Sooner or later your 32-bit counter will wrap round... > - up the generation number each time the counter warps. > Between boot cycles NFS could still get confused, that might be > helped by setting the initial generation to the system time. Yep. That is what the 'fat' filesystem does. Cheers, Trond - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/