From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id 1FEA87F9B for ; Wed, 16 Jul 2014 03:11:12 -0500 (CDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay2.corp.sgi.com (Postfix) with ESMTP id 1431C304043 for ; Wed, 16 Jul 2014 01:11:09 -0700 (PDT) Received: from bombadil.infradead.org ([198.137.202.9]) by cuda.sgi.com with ESMTP id b2zIgiKo4V4PMLb0 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 16 Jul 2014 01:11:08 -0700 (PDT) Date: Wed, 16 Jul 2014 01:11:05 -0700 From: Christoph Hellwig Subject: Re: [PATCH] logprint: Fix printing of AGF buffers Message-ID: <20140716081105.GB29924@infradead.org> References: <1405349100-19734-1-git-send-email-jack@suse.cz> <20140715101931.GC30363@infradead.org> <20140715140938.GA1733@quack.suse.cz> <20140715153922.GB5369@infradead.org> <20140716003851.GO22339@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140716003851.GO22339@dastard> 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 Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: Christoph Hellwig , Jan Kara , xfs@oss.sgi.com On Wed, Jul 16, 2014 at 10:38:51AM +1000, Dave Chinner wrote: > I added this: > > /* > * The addition of spare space and the non-logged CRC format > * fields to the AGF mean that the size that is logged is almost > * always going to be smaller than the structure itself. Hence > * we need to make sure that the buffer contains all the data we > * want to print rather than just check against the structure > * size. > */ > > Cheers, I'd prefer to mention v4 filesystems as well: /* * v4 filesystems only contain the fields before the uuid, and * even v5 filesystems don't usually log any field beneath it. */ note that the AGI case also needs the same treatment. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs