Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18161
b: refs/heads/master
c: c2cd255
h: refs/heads/master
i:
  18159: 486c9e8
v: v3
  • Loading branch information
Nathan Scott committed Jan 11, 2006
1 parent 747fe95 commit c83f0b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42fe2b1f7fe788ed5304a7bfa0a0b0db81bc03a8
refs/heads/master: c2cd2550603d847b709035c4c6b666adf560d7b8
5 changes: 3 additions & 2 deletions trunk/fs/xfs/xfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c83f0b8

Please sign in to comment.