49
49
logerror = flags & SHUTDOWN_LOG_IO_ERROR;
51
51
if (!(flags & SHUTDOWN_FORCE_UMOUNT)) {
52
cmn_err(CE_NOTE, "xfs_force_shutdown(%s,0x%x) called from "
53
"line %d of file %s. Return address = 0x%p",
54
mp->m_fsname, flags, lnnum, fname, __return_address);
53
"%s(0x%x) called from line %d of file %s. Return address = 0x%p",
54
__func__, flags, lnnum, fname, __return_address);
57
57
* No need to duplicate efforts.
71
71
if (flags & SHUTDOWN_CORRUPT_INCORE) {
72
xfs_cmn_err(XFS_PTAG_SHUTDOWN_CORRUPT, CE_ALERT, mp,
73
"Corruption of in-memory data detected. Shutting down filesystem: %s",
75
if (XFS_ERRLEVEL_HIGH <= xfs_error_level) {
72
xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_CORRUPT,
73
"Corruption of in-memory data detected. Shutting down filesystem");
74
if (XFS_ERRLEVEL_HIGH <= xfs_error_level)
78
76
} else if (!(flags & SHUTDOWN_FORCE_UMOUNT)) {
80
xfs_cmn_err(XFS_PTAG_SHUTDOWN_LOGERROR, CE_ALERT, mp,
81
"Log I/O Error Detected. Shutting down filesystem: %s",
78
xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_LOGERROR,
79
"Log I/O Error Detected. Shutting down filesystem");
83
80
} else if (flags & SHUTDOWN_DEVICE_REQ) {
84
xfs_cmn_err(XFS_PTAG_SHUTDOWN_IOERROR, CE_ALERT, mp,
85
"All device paths lost. Shutting down filesystem: %s",
81
xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_IOERROR,
82
"All device paths lost. Shutting down filesystem");
87
83
} else if (!(flags & SHUTDOWN_REMOTE_REQ)) {
88
xfs_cmn_err(XFS_PTAG_SHUTDOWN_IOERROR, CE_ALERT, mp,
89
"I/O Error Detected. Shutting down filesystem: %s",
84
xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_IOERROR,
85
"I/O Error Detected. Shutting down filesystem");
93
88
if (!(flags & SHUTDOWN_FORCE_UMOUNT)) {
94
cmn_err(CE_ALERT, "Please umount the filesystem, "
95
"and rectify the problem(s)");
90
"Please umount the filesystem and rectify the problem(s)");
107
102
xfs_daddr_t blkno)
110
"I/O error in filesystem (\"%s\") meta-data dev %s block 0x%llx"
111
" (\"%s\") error %d buf count %zd",
112
(!mp || !mp->m_fsname) ? "(fs name not set)" : mp->m_fsname,
105
"I/O error occurred: meta-data dev %s block 0x%llx"
106
" (\"%s\") error %d buf count %zd",
113
107
XFS_BUFTARG_NAME(XFS_BUF_TARGET(bp)),
114
108
(__uint64_t)blkno, func,
115
109
XFS_BUF_GETERROR(bp), XFS_BUF_COUNT(bp));
173
167
xfs_get_extsz_hint(
174
168
struct xfs_inode *ip)
178
if (unlikely(XFS_IS_REALTIME_INODE(ip))) {
179
extsz = (ip->i_d.di_flags & XFS_DIFLAG_EXTSIZE)
181
: ip->i_mount->m_sb.sb_rextsize;
184
extsz = (ip->i_d.di_flags & XFS_DIFLAG_EXTSIZE)
185
? ip->i_d.di_extsize : 0;
170
if ((ip->i_d.di_flags & XFS_DIFLAG_EXTSIZE) && ip->i_d.di_extsize)
171
return ip->i_d.di_extsize;
172
if (XFS_IS_REALTIME_INODE(ip))
173
return ip->i_mount->m_sb.sb_rextsize;