Lines Matching refs:error
830 * single bit error could clear the feature bit and unused parts of the
846 int error;
861 error = -EFSBADCRC;
872 error = xfs_validate_sb_common(mp, bp, &sb);
873 if (error)
875 error = xfs_validate_sb_read(mp, &sb);
878 if (error == -EFSCORRUPTED || error == -EFSBADCRC)
879 xfs_verifier_error(bp, error, __this_address);
880 else if (error)
881 xfs_buf_ioerror(bp, error);
913 int error;
920 error = xfs_validate_sb_common(mp, bp, &sb);
921 if (error)
923 error = xfs_validate_sb_write(mp, bp, &sb);
924 if (error)
937 xfs_verifier_error(bp, error, __this_address);
1060 int error;
1062 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_sb, 0, 0,
1064 if (error)
1065 return error;
1090 int error = 0;
1097 error = xfs_buf_get(mp->m_ddev_targp,
1101 * If we get an error reading or writing alternate superblocks,
1107 if (error) {
1109 "error allocating secondary superblock for ag %d",
1112 saved_error = error;
1127 error = xfs_buf_delwri_submit(&buffer_list);
1128 if (error) {
1130 "write error %d updating a secondary superblock near ag %d",
1131 error, pag->pag_agno);
1133 saved_error = error;
1137 error = xfs_buf_delwri_submit(&buffer_list);
1138 if (error) {
1140 "write error %d updating a secondary superblock near ag %d",
1141 error, agno);
1144 return saved_error ? saved_error : error;
1157 int error;
1159 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_sb, 0, 0, 0, &tp);
1160 if (error)
1161 return error;
1167 error = xfs_trans_commit(tp);
1168 if (error)
1173 error = xfs_bwrite(bp);
1176 return error;
1283 int error;
1286 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp,
1289 if (error)
1290 return error;
1305 int error;
1308 error = xfs_trans_get_buf(tp, mp->m_ddev_targp,
1311 if (error)
1312 return error;
1321 * so users won't be confused by values in error messages.