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 E23BE7F3F for ; Wed, 23 Apr 2014 01:04:01 -0500 (CDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay2.corp.sgi.com (Postfix) with ESMTP id C62C0304043 for ; Tue, 22 Apr 2014 23:03:58 -0700 (PDT) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by cuda.sgi.com with ESMTP id RvA7pvTML2RHQtbh for ; Tue, 22 Apr 2014 23:03:56 -0700 (PDT) Date: Wed, 23 Apr 2014 16:03:53 +1000 From: Dave Chinner Subject: Re: [PATCH v3 11/20] xfsprogs/mkfs: finobt mkfs support Message-ID: <20140423060352.GL15995@dastard> References: <1397146270-42993-1-git-send-email-bfoster@redhat.com> <1397146270-42993-12-git-send-email-bfoster@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1397146270-42993-12-git-send-email-bfoster@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 Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Brian Foster Cc: xfs@oss.sgi.com On Thu, Apr 10, 2014 at 12:11:01PM -0400, Brian Foster wrote: > Add the 'finobt' metadata option to mkfs to format an fs with free > inode btree support. If enabled, initialize the associated AGI > header fields and btree root block. > > Also, do the initialization of the superblock version and feature > bits (including the new finobt flag) a bit earlier. These fields > must now be initialized prior to the use of XFS_PREALLOC_BLOCKS(), > as the latter returns a value that depends on whether a finobt root > btree block is reserved. > > Signed-off-by: Brian Foster $ sudo mkfs.xfs -f -mcrc=1,finobt=1 -m crc=0 -d size=128m /dev/ram1 meta-data=/dev/ram1 isize=256 agcount=4, agsize=8192 blks = sectsz=512 attr=2, projid32bit=1 = crc=0 finobt=1 ^^^^^ ^^^^^^^^ ..... $ mount /dev/ram1 /mnt/scratch [ 4727.269080] XFS (ram1): Mounting Filesystem [ 4727.270077] XFS (ram1): Log inconsistent or not a log (last==0, first!=1) [ 4727.271227] XFS (ram1): empty log check failed [ 4727.271970] XFS (ram1): log mount/recovery failed: error 22 [ 4727.273097] XFS (ram1): log mount failed If "-mcrc=0" is seen on the command line, it needs to turn off finobt.... xfs/001 and xfs/002 trip over this when run like: $ MKFS_OPTIONS="-mcrc=1,finobt=1" ./check xfs/00[12] Otherwise, everything seems to be working ;) Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs