Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156681
b: refs/heads/master
c: b89d420
h: refs/heads/master
i:
  156679: af3ad13
v: v3
  • Loading branch information
Christoph Hellwig authored and Felix Blyakher committed Aug 12, 2009
1 parent bfc4a17 commit 9cf611f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0c222c411e22f086e929cd69fdcc89336164ec1
refs/heads/master: b89d4208de3de442c9025919c4261be0b38e79a4
10 changes: 10 additions & 0 deletions trunk/fs/xfs/xfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,16 @@ xfs_iformat(
return XFS_ERROR(EFSCORRUPTED);
}

if (unlikely((ip->i_d.di_flags & XFS_DIFLAG_REALTIME) &&
!ip->i_mount->m_rtdev_targp)) {
xfs_fs_repair_cmn_err(CE_WARN, ip->i_mount,
"corrupt dinode %Lu, has realtime flag set.",
ip->i_ino);
XFS_CORRUPTION_ERROR("xfs_iformat(realtime)",
XFS_ERRLEVEL_LOW, ip->i_mount, dip);
return XFS_ERROR(EFSCORRUPTED);
}

switch (ip->i_d.di_mode & S_IFMT) {
case S_IFIFO:
case S_IFCHR:
Expand Down

0 comments on commit 9cf611f

Please sign in to comment.