From c83f0b8d34b2356ecf2941845e5ea7d5cc46619c Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Wed, 11 Jan 2006 15:35:32 +1100 Subject: [PATCH] --- yaml --- r: 18161 b: refs/heads/master c: c2cd2550603d847b709035c4c6b666adf560d7b8 h: refs/heads/master i: 18159: 486c9e83e697cd54605c56474c81bcc045c0a365 v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_vfsops.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index fe39a434de5a..532cf8d7a4be 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 42fe2b1f7fe788ed5304a7bfa0a0b0db81bc03a8 +refs/heads/master: c2cd2550603d847b709035c4c6b666adf560d7b8 diff --git a/trunk/fs/xfs/xfs_vfsops.c b/trunk/fs/xfs/xfs_vfsops.c index f22bebf8f513..b6ad370fab3d 100644 --- a/trunk/fs/xfs/xfs_vfsops.c +++ b/trunk/fs/xfs/xfs_vfsops.c @@ -333,10 +333,11 @@ xfs_finish_flags( /* Fail a mount where the logbuf is smaller then the log stripe */ if (XFS_SB_VERSION_HASLOGV2(&mp->m_sb)) { - if ((ap->logbufsize == -1) && + if ((ap->logbufsize <= 0) && (mp->m_sb.sb_logsunit > XLOG_BIG_RECORD_BSIZE)) { mp->m_logbsize = mp->m_sb.sb_logsunit; - } else if (ap->logbufsize < mp->m_sb.sb_logsunit) { + } else if (ap->logbufsize > 0 && + ap->logbufsize < mp->m_sb.sb_logsunit) { cmn_err(CE_WARN, "XFS: logbuf size must be greater than or equal to log stripe size"); return XFS_ERROR(EINVAL);