From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q9MMTxeC161016 for ; Mon, 22 Oct 2012 17:29:59 -0500 Received: from ipmail05.adl6.internode.on.net (ipmail05.adl6.internode.on.net [150.101.137.143]) by cuda.sgi.com with ESMTP id q1L4Fe6Kn0G1JaSa for ; Mon, 22 Oct 2012 15:31:41 -0700 (PDT) Date: Tue, 23 Oct 2012 09:31:39 +1100 From: Dave Chinner Subject: Re: [PATCH] xfsdump: Revert dump version bump for 32bit projid fix Message-ID: <20121022223139.GC4291@dastard> References: <5085AB70.2060904@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5085AB70.2060904@redhat.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Eric Sandeen Cc: xfs-oss On Mon, Oct 22, 2012 at 03:24:16PM -0500, Eric Sandeen wrote: > commit 1e309da7a4f7e2a2f456bf6b7cea4c5f1181cd36 fixed xfsdump to > properly save & restore the top 16 bits of a 32-bit projid, which > otherwise was being dropped (and restored as 0) in older xfsdump. > > The original thought was to bump the dump version, so that we know > whether the dump (may) have the top 16 bits filled in. In practice > this would prevent older restores from restoring newer dumps, and > losing the top 16 bits contained in these newer dumps. > > However, in hindsight this appears to be of limited value. I > propose that the dump version change is unuseful/unwanted for a > couple reasons: > > * There is no actual dump *format* change; the structure size > is the same, and the top 16 bits were properly zeroed before; old > restores will read these fixed dumps without problems and without > restoring garbage. IOW, they will behave exactly as buggily as > they did before. And worst case, if a dump containing the top 16 > bits is mangled by an old restore, this can be easily remedied by > simply re-restoring with updated userspace. > > * We have no reliable method to know whether 32 bit project IDs are > in use; the feature flag was not added to the GEOM call at the time > of implementation. Therefore we cannot reliably bump to V4 only > for projid32bit filesystems, and we cannot restrict V4 restores > only to projid32bit filesystems. So the dump version is not > useful for feature cross-checking purposes. Seems reasonable. Definitely solves most of the nasty problems you've been juggling caused by a version bump and 32bit projid detection. Do we have an xfstest that verifies these assumptions are valid? Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs