/*
* Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
- *
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
- *
+ *
* This program is distributed in the hope that it would be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
+ *
* Further, this software is distributed without any warranty that it is
* free of the rightful claim of any third person regarding infringement
* or the like. Any license provided herein, whether implied or
* otherwise, applies only to this software file. Patent licenses, if
* any, provided herein do not apply to combinations of this program with
* other software, or any other product whatsoever.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write the Free Software Foundation, Inc., 59
* Temple Place - Suite 330, Boston MA 02111-1307, USA.
- *
+ *
* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
* Mountain View, CA 94043, or:
- *
- * http://www.sgi.com
- *
- * For further information regarding this notice, see:
- *
+ *
+ * http://www.sgi.com
+ *
+ * For further information regarding this notice, see:
+ *
* http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
*/
* (vs EXTENTS). Over various fixes, the aformat and forkoff have
* been updated to not show an attribute fork at all, however.
* It could be possible that resetting totsize/count are not needed,
- * but just to be safe, leave it in for now.
+ * but just to be safe, leave it in for now.
*/
if (!no_modify) {
continue;
}
-
+
/*
* regular file data fork or attribute fork
*/
continue;
}
- /* FIX FOR BUG 653709 -- EKN
+ /* FIX FOR BUG 653709 -- EKN
* realtime attribute fork, should be valid block number
- * in regular data space, not realtime partion.
+ * in regular data space, not realtime partion.
*/
- if (type == XR_INO_RTDATA && whichfork == XFS_ATTR_FORK) {
+ if (type == XR_INO_RTDATA && whichfork == XFS_ATTR_FORK) {
if (mp->m_sb.sb_agcount < XFS_FSB_TO_AGNO(mp, b))
return(1);
- }
-
+ }
+
state = get_fsbno_state(mp, b);
switch (state) {
case XR_E_FREE:
if ((irec = find_inode_rec(agno, agino)) == NULL)
return(NULL);
-
+
size = XFS_FSB_TO_BB(mp, MAX(1, XFS_INODES_PER_CHUNK/inodes_per_block));
bp = libxfs_readbuf(mp->m_dev, XFS_AGB_TO_DADDR(mp, agno,
XFS_AGINO_TO_AGBNO(mp, irec->ino_startnum)), size, 0);
fsbno = getfunc_extlist(mp, ino_num, dino_p, bno, whichfork);
break;
case XFS_DINODE_FMT_BTREE:
- fsbno = getfunc_btree(mp, ino_num, dino_p, bno, whichfork);
+ fsbno = getfunc_btree(mp, ino_num, dino_p, bno, whichfork);
break;
case XFS_DINODE_FMT_LOCAL:
do_error(_("get_bmapi() called for local inode %llu\n"),
cursor.level[0].fsbno);
return(1);
}
-
+
return(0);
}
/*
* the max # of extents in a symlink inode is equal to the
- * number of max # of blocks required to store the symlink
+ * number of max # of blocks required to store the symlink
*/
if (numrecs > max_symlink_blocks) {
do_warn(
* you can not enforce all misc types have zero data fork blocks
* by checking dino->di_core.di_nblocks because atotblocks (attribute
* blocks) are part of nblocks. We must check this later when atotblocks
- * has been calculated or by doing a simple check that anExtents == 0.
+ * has been calculated or by doing a simple check that anExtents == 0.
* We must also guarantee that totblocks is 0. Thus nblocks checking
* will be done later in process_dinode_int for misc types.
*/
* because of the lack of any write ordering guarantee, it's
* possible that the core got updated but the forks didn't.
* so rather than be ambitious (and probably incorrect),
- * if there's an inconsistency, we get conservative and
+ * if there's an inconsistency, we get conservative and
* just pitch the file. blow off checking formats of
* free inodes since technically any format is legal
* as we reset the inode when we re-use it.
blkmap_free(ablkmap);
}
return(1);
-
+
} else if (check_dups) {
switch (dinoc->di_aformat) {
case XFS_DINODE_FMT_LOCAL:
_("would clear attr fork\n"));
}
atotblocks = 0;
- anextents = 0;
+ anextents = 0;
}
else {
*dirty = 1; /* it's been repaired */
} else
anextents = 0;
- /*
- * enforce totblocks is 0 for misc types
+ /*
+ * enforce totblocks is 0 for misc types
*/
if (process_misc_ino_types_blocks(totblocks, lino, type)) {
if (!no_modify) {