diff options
author | Nathan Scott <nathans@sgi.com> | 2005-11-01 19:44:33 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-11-01 19:44:33 -0500 |
commit | fc1f8c1ca373dc88dd6e8c0e8b7de0e6ad95d441 (patch) | |
tree | e49b7a364bf6a6fc18e650b3a6e10b516c1ba547 /fs/xfs/xfs_log_recover.c | |
parent | 4aeb664c2561c0bae18d7a3a141d7d2acf126da1 (diff) |
[XFS] Track external log/realtime device names for correct reporting in
/proc/mounts.
SGI-PV: 942984
SGI-Modid: xfs-linux:xfs-kern:23862a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 14faabaabf29..212c5411595e 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -2226,8 +2226,9 @@ xlog_recover_do_buffer_trans( | |||
2226 | break; | 2226 | break; |
2227 | default: | 2227 | default: |
2228 | xfs_fs_cmn_err(CE_ALERT, log->l_mp, | 2228 | xfs_fs_cmn_err(CE_ALERT, log->l_mp, |
2229 | "xfs_log_recover: unknown buffer type 0x%x, dev %s", | 2229 | "xfs_log_recover: unknown buffer type 0x%x, logdev %s", |
2230 | buf_f->blf_type, XFS_BUFTARG_NAME(log->l_targ)); | 2230 | buf_f->blf_type, log->l_mp->m_logname ? |
2231 | log->l_mp->m_logname : "internal"); | ||
2231 | XFS_ERROR_REPORT("xlog_recover_do_buffer_trans", | 2232 | XFS_ERROR_REPORT("xlog_recover_do_buffer_trans", |
2232 | XFS_ERRLEVEL_LOW, log->l_mp); | 2233 | XFS_ERRLEVEL_LOW, log->l_mp); |
2233 | return XFS_ERROR(EFSCORRUPTED); | 2234 | return XFS_ERROR(EFSCORRUPTED); |
@@ -3938,8 +3939,9 @@ xlog_recover( | |||
3938 | } | 3939 | } |
3939 | 3940 | ||
3940 | cmn_err(CE_NOTE, | 3941 | cmn_err(CE_NOTE, |
3941 | "Starting XFS recovery on filesystem: %s (dev: %s)", | 3942 | "Starting XFS recovery on filesystem: %s (logdev: %s)", |
3942 | log->l_mp->m_fsname, XFS_BUFTARG_NAME(log->l_targ)); | 3943 | log->l_mp->m_fsname, log->l_mp->m_logname ? |
3944 | log->l_mp->m_logname : "internal"); | ||
3943 | 3945 | ||
3944 | error = xlog_do_recover(log, head_blk, tail_blk); | 3946 | error = xlog_do_recover(log, head_blk, tail_blk); |
3945 | log->l_flags |= XLOG_RECOVERY_NEEDED; | 3947 | log->l_flags |= XLOG_RECOVERY_NEEDED; |
@@ -3987,8 +3989,9 @@ xlog_recover_finish( | |||
3987 | xlog_recover_check_summary(log); | 3989 | xlog_recover_check_summary(log); |
3988 | 3990 | ||
3989 | cmn_err(CE_NOTE, | 3991 | cmn_err(CE_NOTE, |
3990 | "Ending XFS recovery on filesystem: %s (dev: %s)", | 3992 | "Ending XFS recovery on filesystem: %s (logdev: %s)", |
3991 | log->l_mp->m_fsname, XFS_BUFTARG_NAME(log->l_targ)); | 3993 | log->l_mp->m_fsname, log->l_mp->m_logname ? |
3994 | log->l_mp->m_logname : "internal"); | ||
3992 | log->l_flags &= ~XLOG_RECOVERY_NEEDED; | 3995 | log->l_flags &= ~XLOG_RECOVERY_NEEDED; |
3993 | } else { | 3996 | } else { |
3994 | cmn_err(CE_DEBUG, | 3997 | cmn_err(CE_DEBUG, |