From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 98AF67F37 for ; Wed, 13 Nov 2013 09:56:26 -0600 (CST) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay3.corp.sgi.com (Postfix) with ESMTP id 29E80AC009 for ; Wed, 13 Nov 2013 07:56:26 -0800 (PST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id 3enqRDx46utNcFq9 for ; Wed, 13 Nov 2013 07:56:25 -0800 (PST) Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rADFuPt3032373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 13 Nov 2013 10:56:25 -0500 Received: from bfoster.bfoster ([10.18.41.237]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id rADFuOC6001416 for ; Wed, 13 Nov 2013 10:56:24 -0500 From: Brian Foster Subject: [PATCH v2 13/20] xfsprogs/repair: account for finobt in ag 0 geometry pre-calculation Date: Wed, 13 Nov 2013 10:56:15 -0500 Message-Id: <1384358182-37967-14-git-send-email-bfoster@redhat.com> In-Reply-To: <1384358182-37967-1-git-send-email-bfoster@redhat.com> References: <1384358182-37967-1-git-send-email-bfoster@redhat.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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: xfs@oss.sgi.com Account for the finobt in calc_mkfs(). Signed-off-by: Brian Foster --- repair/xfs_repair.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repair/xfs_repair.c b/repair/xfs_repair.c index a863337..fbc2d7d 100644 --- a/repair/xfs_repair.c +++ b/repair/xfs_repair.c @@ -404,6 +404,8 @@ calc_mkfs(xfs_mount_t *mp) bcntbt_root = bnobt_root + 1; inobt_root = bnobt_root + 2; fino_bno = inobt_root + XFS_MIN_FREELIST_RAW(1, 1, mp) + 1; + if (xfs_sb_version_hasfinobt(&mp->m_sb)) + fino_bno++; /* * If the log is allocated in the first allocation group we need to -- 1.8.1.4 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs