| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 53/53] mkfs: hack around not having enough log blocks |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Sat, 19 Dec 2015 01:10:51 -0800 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20151219090450.14255.48364.stgit@xxxxxxxxxxxxxxxx> |
| References: | <20151219090450.14255.48364.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
Under some circumstances I don't yet understand, mkfs underestimates
the minimum log size and the kernel refuses to mount. Put in a crude
hack so that this doesn't happen.
DO NOT APPLY!!!
Singed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
---
mkfs/xfs_mkfs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index a65e2bf..547b9b9 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -2444,6 +2444,7 @@ an AG size that is one stripe unit smaller, for example
%llu.\n"),
logversion, lsunit);
ASSERT(min_logblocks);
min_logblocks = MAX(XFS_MIN_LOG_BLOCKS, min_logblocks);
+if (min_logblocks < 860) min_logblocks = 860;
if (!logsize && dblocks >= (1024*1024*1024) >> blocklog)
min_logblocks = MAX(min_logblocks, XFS_MIN_LOG_BYTES>>blocklog);
if (logsize && xi.logBBsize > 0 && logblocks > DTOBT(xi.logBBsize)) {
|
| Previous by Date: | [PATCH 52/53] libxfs: try to prevent failed rmap btree expansion during cow, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH v4 00/11] xfstests: test the nfs/cifs/btrfs/xfs reflink/dedupe ioctls, Darrick J. Wong |
| Previous by Thread: | [PATCH 52/53] libxfs: try to prevent failed rmap btree expansion during cow, Darrick J. Wong |
| Next by Thread: | [PATCH v4 00/11] xfstests: test the nfs/cifs/btrfs/xfs reflink/dedupe ioctls, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |