[PATCH 12/12] xfsprogs/repair: account for finobt in ag 0 geometry pre-calculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 820e7a2..b14d805 100644
--- a/repair/xfs_repair.c
+++ b/repair/xfs_repair.c
@@ -405,6 +405,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@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux