| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH v2 13/20] xfsprogs/repair: account for finobt in ag 0 geometry pre-calculation |
| From: | Brian Foster <bfoster@xxxxxxxxxx> |
| Date: | Wed, 13 Nov 2013 10:56:15 -0500 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1384358182-37967-1-git-send-email-bfoster@xxxxxxxxxx> |
| References: | <1384358182-37967-1-git-send-email-bfoster@xxxxxxxxxx> |
Account for the finobt in calc_mkfs().
Signed-off-by: Brian Foster <bfoster@xxxxxxxxxx>
---
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
|
| Previous by Date: | [PATCH v2 17/20] xfsprogs/repair: helpers for finding in-core inode records w/ free inodes, Brian Foster |
|---|---|
| Next by Date: | [PATCH v2 07/20] xfs: refactor xfs_difree() inobt bits into xfs_difree_inobt() helper, Brian Foster |
| Previous by Thread: | [PATCH v2 17/20] xfsprogs/repair: helpers for finding in-core inode records w/ free inodes, Brian Foster |
| Next by Thread: | [PATCH v2 07/20] xfs: refactor xfs_difree() inobt bits into xfs_difree_inobt() helper, Brian Foster |
| Indexes: | [Date] [Thread] [Top] [All Lists] |