CVS log for xfs-linux/xfs_log_recover.c

[BACK] Up to [Development] / xfs-linux

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.355 / (download) - annotate - [select for diffs], Fri Oct 17 03:01:13 2008 UTC (9 years ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.354: +7 -1 lines
Diff to previous 1.354 (colored)

XFS: Check for valid transaction headers in recovery

When we are about to add a new item to a transaction in recovery, we
need to check that it is valid first. Currently we just assert that
header magic number matches, but in production systems that is not
present and we add a corrupted transaction to the list to be
processed. This results in a kernel oops later when processing the
corrupted transaction.

Instead, if we detect a corrupted transaction, abort recovery and
leave the user to clean up the mess that has occurred.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Merge of xfs-linux-melb:xfs-kern:32356a by kenmcd.

  check for valid trans headers in recovery

Revision 1.354 / (download) - annotate - [select for diffs], Fri Oct 17 02:58:35 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.353: +5 -8 lines
Diff to previous 1.353 (colored)

Finish removing the mount pointer from the AIL API

Change all the remaining AIL API functions that are passed
struct xfs_mount pointers to pass pointers directly to the
struct xfs_ail being used. With this conversion, all external
access to the AIL is via the struct xfs_ail. Hence the operation
and referencing of the AIL is almost entirely independent of
the xfs_mount that is using it - it is now much more tightly
tied to the log and the items it is tracking in the log than
it is tied to the xfs_mount.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Merge of xfs-linux-melb:xfs-kern:32353a by kenmcd.

  Finish removing the mount pointer from the AIL API

Revision 1.353 / (download) - annotate - [select for diffs], Fri Oct 17 02:56:42 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.352: +21 -21 lines
Diff to previous 1.352 (colored)

Given the log a pointer to the AIL

When we need to go from the log to the AIL, we have
to go via the xfs_mount. Add a xfs_ail pointer to the log
so we can go directly to the AIL associated with the log.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Merge of xfs-linux-melb:xfs-kern:32351a by kenmcd.

  Given the log a pointer to the AIL

Revision 1.352 / (download) - annotate - [select for diffs], Thu Oct 16 05:23:50 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.351: +8 -8 lines
Diff to previous 1.351 (colored)

Move the AIL lock into the struct xfs_ail

Bring the ail lock inside the struct xfs_ail. This means
the AIL can be entirely manipulated via the struct xfs_ail rather
than needing both the struct xfs_mount and the struct xfs_ail.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Merge of xfs-linux-melb:xfs-kern:32350a by kenmcd.

  Move the AIL lock into the struct xfs_ail

Revision 1.351 / (download) - annotate - [select for diffs], Thu Oct 16 05:21:47 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.350: +7 -8 lines
Diff to previous 1.350 (colored)

move the AIl traversal over to a consistent interface

With the new cursor interface, it makes sense to make all the
traversing code use the cursor interface and make the old one go
away. This means more of the AIL interfacing is done by passing
struct xfs_ail pointers around the place instead of struct
xfs_mount pointers.

We can replace the use of xfs_trans_first_ail() in
xfs_log_need_covered() as it is only checking if the AIL is empty.
We can do that with a call to xfs_trans_ail_tail() instead, where a
zero LSN returned indicates and empty AIL...

Signed-off-by: Dave Chinner <david@fromorbit.com>
Merge of xfs-linux-melb:xfs-kern:32348a by kenmcd.

  move the AIl traversal over to a consistent interface

Revision 1.350 / (download) - annotate - [select for diffs], Thu Oct 16 05:20:53 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.349: +21 -40 lines
Diff to previous 1.349 (colored)

Use a cursor for AIL traversal.

To replace the current generation number ensuring sanity of the AIL
traversal, replace it with an external cursor that is linked to the
AIL.

Basically, we store the next item in the cursor whenever we want to
drop the AIL lock to do something to the current item.  When we
regain the lock. the current item may already be free, so we can't
reference it, but the next item in the traversal is already held in
the cursor.

When we move or delete an object, we search all the active cursors
and if there is an item match we clear the cursor(s) that point to
the object. This forces the traversal to restart transparently.

We don't invalidate the cursor on insert because the cursor still
points to a valid item. If the intem is inserted between the current
item and the cursor it does not matter; the traversal is considered
to be past the insertion point so it will be picked up in the next
traversal.

Hence traversal restarts pretty much disappear altogether with this
method of traversal, which should substantially reduce the overhead
of pushing on a busy AIL.

Version 2
o add restart logic
o comment cursor interface
o minor cleanups

Signed-off-by: Dave Chinner <david@fromorbit.com>
Merge of xfs-linux-melb:xfs-kern:32347a by kenmcd.

  Use a cursor for AIL traversal.

Revision 1.349 / (download) - annotate - [select for diffs], Fri Oct 10 15:27:57 2008 UTC (9 years ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.348: +4 -4 lines
Diff to previous 1.348 (colored)

Always use struct xfs_btree_block instead of short / longform structures.

Always use the generic xfs_btree_block type instead of the short / long
structures.  Add XFS_BTREE_SBLOCK_LEN / XFS_BTREE_LBLOCK_LEN defines for
the length of a short / long form block.  The rationale for this is that
we will grow more btree block header variants to support CRCs and other
RAS information, and always accessing them through the same datatype
with unions for the short / long form pointers makes implementing this
much easier.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32300a by kenmcd.

  Always use struct xfs_btree_block instead of short / longform structures.

Revision 1.348 / (download) - annotate - [select for diffs], Fri Oct 10 15:21:38 2008 UTC (9 years ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.347: +2 -2 lines
Diff to previous 1.347 (colored)

Cleanup maxrecs calculation.

Clean up the way the maximum and minimum records for the btree blocks are
calculated.  For the alloc and inobt btrees all the values are pre-calculated
in xfs_mount_common, and we switch the current loop around the ugly generic
macros that use cpp token pasting to generate type names to two small helpers
in normal C code.  For the bmbt and bmdr trees these helpers also exist,
but can be called during runtime, too.  Here we also kill various macros
dealing with them and inline the logic into the get_minrecs / get_maxrecs /
get_dmaxrecs methods in xfs_bmap_btree.c.

Note that all these new helpers take an xfs_mount * argument which will
be needed to determine the size of a btree block once we add support for
extended btree blocks with CRCs and other RAS information.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32292a by kenmcd.

  Cleanup maxrecs calculation.

Revision 1.347 / (download) - annotate - [select for diffs], Wed Aug 6 06:15:15 2008 UTC (9 years, 2 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.346: +2 -5 lines
Diff to previous 1.346 (colored)

cleanup xfs_mountfs

Remove all the useless flags and code keyed off it in xfs_mountfs.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:31831a by kenmcd.

  cleanup xfs_mountfs

Revision 1.346 / (download) - annotate - [select for diffs], Fri Jul 25 06:13:14 2008 UTC (9 years, 3 months ago) by xaiki.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.345: +8 -2 lines
Diff to previous 1.345 (colored)

Undoes mod:     xfs-linux-melb:xfs-kern:31766a
Revert remove mounpoint UUID code

As spotted by dchinner and hch, this touches on-disk format and log format, should be more carefully reviewed.
Merge of xfs-linux-melb:xfs-kern:31773a by kenmcd.

Revision 1.345 / (download) - annotate - [select for diffs], Fri Jul 25 04:21:53 2008 UTC (9 years, 3 months ago) by xaiki.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.344: +2 -8 lines
Diff to previous 1.344 (colored)

remove mounpoint UUID code

It looks like all of the below is unused... and according
to Nathan,

"dont think it even got used/implemented anywhere, but i think it
was meant to be an auto-mount kinda thing... such that when you look
up at that point, it knows to mount the device with that uuid there,
if its not already it was never really written anywhere ... just an
idea in doug doucettes brain i think."

Think it'll ever go anywhere, or should it get pruned?

The below builds; not at all tested, until I get an idea if it's worth
doing.  Need to double check that some structures might not need padding
out to keep things compatible/consistent...
Merge of xfs-linux-melb:xfs-kern:31766a by kenmcd.

Revision 1.344 / (download) - annotate - [select for diffs], Fri May 9 04:27:47 2008 UTC (9 years, 5 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.343: +8 -13 lines
Diff to previous 1.343 (colored)

Remove unused arg from kmem_free()

kmem_free() function takes (ptr, size) arguments but doesn't
actually use second one.

This patch removes size argument from all callsites.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Merge of xfs-linux-melb:xfs-kern:31050a by kenmcd.

  Remove unused arg from kmem_free()

Revision 1.343 / (download) - annotate - [select for diffs], Thu Apr 10 04:33:23 2008 UTC (9 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.342: +24 -11 lines
Diff to previous 1.342 (colored)

Check for errors when changing buffer pointers.

xfs_buf_associate_memory() can fail, but the return is never
checked. Propagate the error through XFS_BUF_SET_PTR() so that
failures are detected.
Merge of xfs-linux-melb:xfs-kern:30831a by kenmcd.

  Check for errors when changing buffer pointers.

Revision 1.342 / (download) - annotate - [select for diffs], Thu Apr 10 04:31:36 2008 UTC (9 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.341: +3 -1 lines
Diff to previous 1.341 (colored)

Catch errors from xfs_imap().

Catch errors from xfs_imap() in log recovery when we might be
trying to map an invalid inode number due to a corrupted log.
Merge of xfs-linux-melb:xfs-kern:30829a by kenmcd.

  Catch errors from xfs_imap().

Revision 1.341 / (download) - annotate - [select for diffs], Thu Apr 10 04:25:55 2008 UTC (9 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.340: +4 -2 lines
Diff to previous 1.340 (colored)

Ensure errors from xfs_bdstrat() are correctly checked.

xfsbdstrat() is declared to return an error. That is never checked
because the error is propagated by the xfs_buf_t that is passed
through the function.

Mark xfsbdstrat() as returning void and comment the prototype
on the methods needed for error checking.
Merge of xfs-linux-melb:xfs-kern:30823a by kenmcd.

  Ensure errors from xfs_bdstrat() are correctly checked.

Revision 1.340 / (download) - annotate - [select for diffs], Wed Apr 9 16:33:49 2008 UTC (9 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.339: +9 -5 lines
Diff to previous 1.339 (colored)

Check for xfs_free_extent() failing.

xfs_free_extent() can fail, but log recovery never bothers to check
if it successfully free the extent it was supposed to. This could
lead to silent corruption during log recovery. Abort log recovery
if we fail to free an extent.
Merge of xfs-linux-melb:xfs-kern:30801a by kenmcd.

  Check for xfs_free_extent() failing.

Revision 1.339 / (download) - annotate - [select for diffs], Wed Apr 9 16:29:46 2008 UTC (9 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.338: +17 -10 lines
Diff to previous 1.338 (colored)

Propagate errors from xfs_trans_commit().

xfs_trans_commit() can return errors when there are problems
in the transaction subsystem. They are indicative that the entire
transaction may be incomplete, and hence the error should be
propagated as there is a good possibility that there is something
fatally wrong in the filesystem. Catch and propagate or warn
about commit errors in the places where they are currently ignored.
Merge of xfs-linux-melb:xfs-kern:30795a by kenmcd.

  Propagate errors from xfs_trans_commit()

Revision 1.338 / (download) - annotate - [select for diffs], Wed Apr 9 16:28:53 2008 UTC (9 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.337: +26 -9 lines
Diff to previous 1.337 (colored)

Propagate xfs_trans_reserve() errors.

xfs_trans_reserve() reports errors that should not be ignored.
For example, a shutdown filesystem will report errors through
xfs_trans_reserve() to prevent further changes from being attempted
on a damaged filesystem. Catch and propagate all error conditions
from xfs_trans_reserve().
Merge of xfs-linux-melb:xfs-kern:30794a by kenmcd.

  Catch xfs_trans_reserve() errors.

Revision 1.337 / (download) - annotate - [select for diffs], Wed Apr 9 06:17:24 2008 UTC (9 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.336: +2 -2 lines
Diff to previous 1.336 (colored)

replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Merge of xfs-linux-melb:xfs-kern:30775a by kenmcd.

  __FUNCTION__ is gcc-specific, use __func__

Revision 1.336 / (download) - annotate - [select for diffs], Wed Mar 26 03:24:14 2008 UTC (9 years, 7 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.335: +2 -1 lines
Diff to previous 1.335 (colored)

remove most calls to VN_RELE

Most VN_RELE calls either directly contain a XFS_ITOV or have the
corresponding xfs_inode already in scope.  Use the IRELE helper instead
of VN_RELE to clarify the code.  With a little more work we can kill
VN_RELE altogether and define IRELE in terms of iput directly.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:30710a by kenmcd.

  remove most calls to VN_RELE

Revision 1.335 / (download) - annotate - [select for diffs], Fri Feb 22 03:05:49 2008 UTC (9 years, 8 months ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.334: +8 -8 lines
Diff to previous 1.334 (colored)

remove shouting-indirection macros from xfs_sb.h

Remove macro-to-small-function indirection from xfs_sb.h,
and remove some which are completely unused.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Merge of xfs-linux-melb:xfs-kern:30528a by kenmcd.

  remove shouting-indirection macros from xfs_sb.h

Revision 1.334 / (download) - annotate - [select for diffs], Fri Feb 15 15:17:21 2008 UTC (9 years, 8 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.333: +2 -1 lines
Diff to previous 1.333 (colored)

Don't block pdflush when writing back inodes

When pdflush is writing back inodes, it can get stuck on inode cluster
buffers that are currently under I/O. This occurs when we write data to
multiple inodes in the same inode cluster at the same time.

Effectively, delayed allocation marks the inode dirty during the data
writeback. Hence if the inode cluster was flushed during the writeback
of the first inode, the writeback of the second inode will block waiting
for the inode cluster write to complete before writing it again for the
newly dirtied inode.

Basically, we want to avoid this from happening so we don't block
pdflush and slow down all of writeback. Hence we introduce a
non-blocking async inode flush flag that pdflush uses. If this flag is
set, we use non-blocking operations (e.g. try locks) whereever we can
to avoid blocking or extra I/O being issued.
Merge of xfs-linux-melb:xfs-kern:30501a by kenmcd.

  Added new buffer flag parameter to xfs_itobp().

Revision 1.333 / (download) - annotate - [select for diffs], Thu Jan 10 14:58:18 2008 UTC (9 years, 9 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.332: +6 -1 lines
Diff to previous 1.332 (colored)

prevent panic during log recovery due to bogus operation header length

A problem was reported where a system panicked in log recovery due
to a corrupt log record.  The cause of the corruption is not known
but this change will at least prevent a crash for this specific
scenario.  Log recovery definitely needs some more work in this area.
Merge of xfs-linux-melb:xfs-kern:30318a by kenmcd.

  prevent panic during log recovery due to bogus operation header length

Revision 1.332 / (download) - annotate - [select for diffs], Fri Nov 2 03:09:58 2007 UTC (9 years, 11 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.331: +3 -11 lines
Diff to previous 1.331 (colored)

Fix sparse warning in xlog_recover_do_efd_trans.

Sparse trips over the locking order in xlog_recover_do_efd_trans()
when xfs_trans_delete_ail() drops the ail lock. Because the unlock
is conditional, we need to either annotate with a "fake unlock" or
change the structure of the code so sparse thinks the function
always unlocks.

Reordering the code makes it simpler, so do that.
Merge of xfs-linux-melb:xfs-kern:30003a by kenmcd.

  Fix sparse warning in xlog_recover_do_efd_trans.

Revision 1.331 / (download) - annotate - [select for diffs], Fri Nov 2 03:09:06 2007 UTC (9 years, 11 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.330: +2 -2 lines
Diff to previous 1.330 (colored)

Fix up sparse warnings.

These are mostly locking annotations, marking things static,
casts where needed and declaring stuff in header files.
Merge of xfs-linux-melb:xfs-kern:30002a by kenmcd.

  Fix up sparse warnings.

Revision 1.330 / (download) - annotate - [select for diffs], Fri Oct 12 04:02:31 2007 UTC (10 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.329: +3 -0 lines
Diff to previous 1.329 (colored)

Turn off XBF_ASYNC flag before re-reading superblock.
Merge of xfs-linux-melb:xfs-kern:29871a by kenmcd.

  Turn off XBF_ASYNC flag before re-reading superblock.

Revision 1.329 / (download) - annotate - [select for diffs], Tue Oct 2 06:15:48 2007 UTC (10 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.328: +56 -64 lines
Diff to previous 1.328 (colored)

xlog_rec_header/xlog_rec_ext_header endianess annotations

Mostly trivial conversion with one exceptions:  h_num_logops was kept
in native endian previously and only converted to big endian in
xlog_sync, but we always keep it big endian now.  With todays cpus
fast byteswap instructions that's not an issue but the new variant
keeps the code clean and maintainable.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:29821a by kenmcd.

  xlog_rec_header/xlog_rec_ext_header endianess annotations

Revision 1.328 / (download) - annotate - [select for diffs], Tue Oct 2 06:14:55 2007 UTC (10 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.327: +5 -7 lines
Diff to previous 1.327 (colored)

clean up some xfs_log_priv.h macros

 - the various assign lsn macros are replaced by a single inline,
   xlog_assign_lsn, which is equivalent to ASSIGN_ANY_LSN_HOST except
   for a more sane calling convention.  ASSIGN_LSN_DISK is replaced
   by xlog_assign_lsn and a manual bytespap, and ASSIGN_LSN by the same,
   except we pass the cycle and block arguments explicitly instead of a
   log paramter.  The latter two variants only had 2, respectively one
   user anyway.
 - the GET_CYCLE is replaced by a xlog_get_cycle inline with exactly the
   same calling conventions.
 - GET_CLIENT_ID is replaced by xlog_get_client_id which leaves away
   the unused arch argument.  Instead of conditional defintions
   depending on host endianess we now do an unconditional swap and shift
   then, which generates equal code.
 - the unused XLOG_SET macro is removed.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:29820a by kenmcd.

  clean up some xfs_log_priv.h macros

Revision 1.327 / (download) - annotate - [select for diffs], Tue Oct 2 06:14:02 2007 UTC (10 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.326: +16 -13 lines
Diff to previous 1.326 (colored)

clean up some xfs_log_priv.h macros

 - the various assign lsn macros are replaced by a single inline,
   xlog_assign_lsn, which is equivalent to ASSIGN_ANY_LSN_HOST except
   for a more sane calling convention.  ASSIGN_LSN_DISK is replaced
   by xlog_assign_lsn and a manual bytespap, and ASSIGN_LSN by the same,
   except we pass the cycle and block arguments explicitly instead of a
   log paramter.  The latter two variants only had 2, respectively one
   user anyway.
 - the GET_CYCLE is replaced by a xlog_get_cycle inline with exactly the
   same calling conventions.
 - GET_CLIENT_ID is replaced by xlog_get_client_id which leaves away
   the unused arch argument.  Instead of conditional defintions
   depending on host endianess we now do an unconditional swap and shift
   then, which generates equal code.
 - the unused XLOG_SET macro is removed.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:29819a by kenmcd.

  clean up some xfs_log_priv.h macros

Revision 1.326 / (download) - annotate - [select for diffs], Mon Oct 1 06:09:11 2007 UTC (10 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.325: +3 -48 lines
Diff to previous 1.325 (colored)

Undoes mod:     xfs-linux-melb:xfs-kern:29676a
Undo changes for inode buffer replay fix.
Merge of xfs-linux-melb:xfs-kern:29804a by kenmcd.

Revision 1.325 / (download) - annotate - [select for diffs], Fri Sep 21 04:09:25 2007 UTC (10 years, 1 month ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.324: +9 -12 lines
Diff to previous 1.324 (colored)

Unwrap AIL_LOCK
Merge of xfs-linux-melb:xfs-kern:29739a by kenmcd.

Revision 1.324 / (download) - annotate - [select for diffs], Tue Sep 18 15:50:42 2007 UTC (10 years, 1 month ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.323: +2 -2 lines
Diff to previous 1.323 (colored)

fix valid but harmless sparse warning

The new xlog_recover_do_reg_buffer checks call be16_to_cpu on di_gen
which is a 32bit value so sparse rightly complains.  Fortunately the
warning is harmless because we don't care for the value, but only
whether it's non-NULL.  Due to that fact we can simply kill the endian
swaps on this and the previous di_mode check entirely.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:29709a by kenmcd.

  fix valid but harmless sparse warning

Revision 1.323 / (download) - annotate - [select for diffs], Thu Sep 13 06:09:41 2007 UTC (10 years, 1 month ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.322: +48 -3 lines
Diff to previous 1.322 (colored)

Avoid replaying inode buffer initialisation log items if on-disk version is newer.
Merge of xfs-linux-melb:xfs-kern:29676a by kenmcd.

  Avoid replaying inode buffer initialisation log items if on-disk version is newer.

Revision 1.322 / (download) - annotate - [select for diffs], Thu Aug 23 15:57:06 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.321: +2 -2 lines
Diff to previous 1.321 (colored)

superblock endianess annotations

Creates a new xfs_dsb_t that is __be annotated and keeps xfs_sb_t for
the incore one.  xfs_xlatesb is renamed to xfs_sb_to_disk and only
handles the incore -> disk conversion.  A new helper xfs_sb_from_disk
handles the other direction and doesn't need the slightly hacky
table-driven approach because we only ever read the full sb from disk.

The handling of shared r/o filesystems has been buggy on little endian
system and fixing this required shuffling around of some code in that
area.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:29477a by kenmcd.

  Add superblock endian notations.

Revision 1.321 / (download) - annotate - [select for diffs], Thu Aug 23 15:56:14 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.320: +11 -14 lines
Diff to previous 1.320 (colored)

dinode endianess annotations

Biggest bit is duplicating the dinode structure so we have one annoted
for native endianess and one for disk endianess.  The other significant
change is that xfs_xlate_dinode_core is split into one helper per
direction to allow for proper annotations, everything else is trivial.

As a sidenode splitting out the incore dinode means we can move it into
xfs_inode.h in a later patch and severly improving on the include hell
in xfs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:29476a by kenmcd.

  add endian notations for the dinode.

Revision 1.320 / (download) - annotate - [select for diffs], Thu Aug 2 15:56:48 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.319: +6 -6 lines
Diff to previous 1.319 (colored)

Fix sparse NULL vs 0 warnings

Sparse now warns about comparing pointers to 0, so change all instance
where that happens to NULL instead.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:29308a by kenmcd.

  Fix sparse NULL vs 0 warnings

Revision 1.319 / (download) - annotate - [select for diffs], Tue May 22 15:50:48 2007 UTC (10 years, 5 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.318: +8 -0 lines
Diff to previous 1.318 (colored)

Lazy Superblock Counters

When we have a couple of hundred transactions on the fly at once,
they all typically modify the on disk superblock in some way.
create/unclink/mkdir/rmdir modify inode counts, allocation/freeing
modify free block counts.

When these counts are modified in a transaction, the must eventually
lock the superblock buffer and apply the mods.  The buffer then
remains locked until the transaction is committed into the incore
log buffer. The result of this is that with enough transactions on
the fly the incore superblock buffer becomes a bottleneck.

The result of contention on the incore superblock buffer is that
transaction rates fall - the more pressure that is put on the
superblock buffer, the slower things go.

The key to removing the contention is to not require the superblock
fields in question to be locked. We do that by not marking the
superblock dirty in the transaction. IOWs, we modify the incore
superblock but do not modify the cached superblock buffer. In short,
we do not log superblock modifications to critical fields in the
superblock on every transaction. In fact we only do it just before
we write the superblock to disk every sync period or just before
unmount.

This creates an interesting problem - if we don't log or write out
the fields in every transaction, then how do the values get
recovered after a crash? the answer is simple - we keep enough
duplicate, logged information in other structures that we can
reconstruct the correct count  after log recovery has been
performed.

It is the AGF and AGI structures that contain the duplicate
information; after recovery, we walk every AGI and AGF and sum their
individual counters to get the correct value, and we do a
transaction into the log to correct them. An optimisation of this is
that if we have a clean unmount record, we know the value in the
superblock is correct, so we can avoid the summation walk under
normal conditions and so mount/recovery times do not change under
normal operation.

One wrinkle that was discovered during development was that the
blocks used in the freespace btrees are never accounted for in the
AGF counters. This was once a valid optimisation to make; when the
filesystem is full, the free space btrees are empty and consume no
space. Hence when it matters, the "accounting" is correct.  But that
means the when we do the AGF summations, we would not have a correct
count and xfs_check would complain.  Hence a new counter was added
to track the number of blocks used by the free space btrees. This is
an *on-disk format change*.

As a result of this, lazy superblock counters are a mkfs option
and at the moment on linux there is no way to convert an old
filesystem. This is possible - xfs_db can be used to twiddle the
right bits and then xfs_repair will do the format conversion
for you. Similarly, you can convert backwards as well. At some point
we'll add functionality to xfs_admin to do the bit twiddling
easily....
Merge of xfs-linux-melb:xfs-kern:28652a by kenmcd.

  Changes to support lazy superblock counters.

Revision 1.318 / (download) - annotate - [select for diffs], Mon Apr 16 06:07:35 2007 UTC (10 years, 6 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.317: +1 -2 lines
Diff to previous 1.317 (colored)

Signed-off-by: Utako Kusaka <utako@tnes.nec.co.jp>
Get rid of redundant "required" in msg.
Merge of xfs-linux-melb:xfs-kern:28416a by kenmcd.

  Signed-off-by: Utako Kusaka <utako@tnes.nec.co.jp>
  Get rid of redundant "required" in msg.

Revision 1.317 / (download) - annotate - [select for diffs], Sat Mar 3 02:57:44 2007 UTC (10 years, 7 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.316: +3 -5 lines
Diff to previous 1.316 (colored)

remove more misc. unused args

Patch provided by Eric Sandeen.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Merge of xfs-linux-melb:xfs-kern:28205a by kenmcd.

  remove more misc. unused args
  Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

Revision 1.316 / (download) - annotate - [select for diffs], Fri Mar 2 02:59:33 2007 UTC (10 years, 7 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.315: +2 -2 lines
Diff to previous 1.315 (colored)

The last argument "lsn" of xfs_trans_commit() is always called with NULL.

Patch provided by Eric Sandeen.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Merge of xfs-linux-melb:xfs-kern:28199a by kenmcd.

  The last argument "lsn" of xfs_trans_commit() is always called with NULL.
  Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

Revision 1.315 / (download) - annotate - [select for diffs], Tue Jan 30 02:56:18 2007 UTC (10 years, 8 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.314: +3 -0 lines
Diff to previous 1.314 (colored)

Re-initialize the per-cpu superblock counters after recovery.

After filesystem recovery the superblock is re-read to bring in
any changes.  If the per-cpu superblock counters are not re-initialized
from the superblock then the next time the per-cpu counters are
disabled they might overwrite the global counter with a bogus value.
Merge of xfs-linux-melb:xfs-kern:27999a by kenmcd.

  Re-initialize the per-cpu superblock counters after recovery.

Revision 1.314 / (download) - annotate - [select for diffs], Fri Dec 1 05:07:33 2006 UTC (10 years, 10 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.313: +2 -56 lines
Diff to previous 1.313 (colored)

Get rid of old 5.3/6.1 v1 log items.
Cleanup patch sent in by Eric Sandeen.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Merge of xfs-linux-melb:xfs-kern:27596a by kenmcd.

  Get rid of old 5.3/6.1 v1 log items.
  Cleanup patch sent in by Eric Sandeen.
  Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

Revision 1.313 / (download) - annotate - [select for diffs], Wed Jun 28 03:49:40 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.312: +2 -0 lines
Diff to previous 1.312 (colored)

Rework code snippets slightly to remove remaining recent-gcc warnings.
Merge of xfs-linux-melb:xfs-kern:26364a by kenmcd.

Revision 1.312 / (download) - annotate - [select for diffs], Thu Jun 15 03:58:11 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.311: +0 -2 lines
Diff to previous 1.311 (colored)

Remove version 1 directory code.  Never functioned on Linux, just pure bloat.
Merge of xfs-linux-melb:xfs-kern:26251a by kenmcd.

Revision 1.311 / (download) - annotate - [select for diffs], Tue May 30 15:53:25 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.310: +9 -9 lines
Diff to previous 1.310 (colored)

Portability changes: remove prdev, stick to one diagnostic interface.
Merge of xfs-linux-melb:xfs-kern:26103a by kenmcd.

Revision 1.310 / (download) - annotate - [select for diffs], Tue May 30 15:48:50 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.309: +1 -1 lines
Diff to previous 1.309 (colored)

Shutdown the filesystem if all device paths have gone.  Made shutdown vop flags consistent with sync vop flags declarations too.
Merge of xfs-linux-melb:xfs-kern:26096a by kenmcd.

Revision 1.309 / (download) - annotate - [select for diffs], Fri May 26 06:18:49 2006 UTC (11 years, 5 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.308: +2 -2 lines
Diff to previous 1.308 (colored)

Over zealous with doing endian conversions.
We endian converted the logged version of di_next_unlinked which
is actually always stored in the correct ondisk format.
This was pointed out to us by Shailendra Tripathi.
And is evident in the xfs qa test of 121.
Merge of xfs-linux-melb:xfs-kern:26044a by kenmcd.

  We endian converted the logged version of di_next_unlinked which
  is actually always stored in the correct ondisk format.
  Bug and solution reported by stripathi@agami.com.
  Go back to original IRIX line for this.

Revision 1.308 / (download) - annotate - [select for diffs], Wed May 24 06:05:09 2006 UTC (11 years, 5 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.307: +56 -31 lines
Diff to previous 1.307 (colored)

inode items and EFI/EFDs have different ondisk format for 32bit and 64bit kernels
allow recovery to handle both versions and do the necessary decoding
Merge of xfs-linux-melb:xfs-kern:26011a by kenmcd.

  Decode the inode log format structs for recovery.
  Decode the EFI log format structs for recovery.

Revision 1.307 / (download) - annotate - [select for diffs], Thu Mar 23 02:48:21 2006 UTC (11 years, 7 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.306: +2 -2 lines
Diff to previous 1.306 (colored)

We really suck at spulling.  Thanks to Chris Pascoe for fixing all these typos.
Merge of xfs-linux-melb:xfs-kern:25539a by kenmcd.

Revision 1.306 / (download) - annotate - [select for diffs], Fri Mar 17 14:29:39 2006 UTC (11 years, 7 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.305: +1 -1 lines
Diff to previous 1.305 (colored)

Fix an infinite loop issue in bulkstat when a corrupt inode is detected.  Thanks to Roger Willcocks.
Merge of xfs-linux-melb:xfs-kern:25477a by kenmcd.

Revision 1.305 / (download) - annotate - [select for diffs], Fri Dec 9 05:05:13 2005 UTC (11 years, 10 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.304: +3 -1 lines
Diff to previous 1.304 (colored)

Fix quotaoff logitem for project quota, affects log recovery only.
Merge of xfs-linux-melb:xfs-kern:24768a by kenmcd.

Revision 1.304 / (download) - annotate - [select for diffs], Tue Dec 6 21:29:47 2005 UTC (11 years, 10 months ago) by sandeen
Branch: MAIN
Changes since 1.303: +3 -5 lines
Diff to previous 1.303 (colored)

remove unused "readonly" arg from xlog_find_tail and xlog_recover
remove unused "readonly" arg from xlog_find_tail and xlog_recover

Revision 1.303 / (download) - annotate - [select for diffs], Fri Oct 21 18:08:47 2005 UTC (12 years ago) by hch
Branch: MAIN
Changes since 1.302: +16 -22 lines
Diff to previous 1.302 (colored)

Endianess annotations for various allocator data structures

Revision 1.302 / (download) - annotate - [select for diffs], Mon Sep 26 16:35:34 2005 UTC (12 years, 1 month ago) by hch
Branch: MAIN
Changes since 1.301: +27 -31 lines
Diff to previous 1.301 (colored)

endianess annotations and cleanup for the quota code

Revision 1.301 / (download) - annotate - [select for diffs], Fri Sep 23 03:51:28 2005 UTC (12 years, 1 month ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.300: +12 -26 lines
Diff to previous 1.300 (colored)

Update license/copyright notices to match the prefered SGI boilerplate.
Merge of xfs-linux-melb:xfs-kern:23903a by kenmcd.

Revision 1.300 / (download) - annotate - [select for diffs], Fri Sep 23 03:48:50 2005 UTC (12 years, 1 month ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.299: +11 -12 lines
Diff to previous 1.299 (colored)

Remove xfs_macros.c, xfs_macros.h, rework headers a whole lot.
Merge of xfs-linux-melb:xfs-kern:23901a by kenmcd.

Revision 1.299 / (download) - annotate - [select for diffs], Tue Sep 20 15:27:03 2005 UTC (12 years, 1 month ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.298: +9 -6 lines
Diff to previous 1.298 (colored)

Track external log/realtime device names for correct reporting in /proc/mounts.
Merge of xfs-linux-melb:xfs-kern:23862a by kenmcd.

Revision 1.298 / (download) - annotate - [select for diffs], Mon Aug 1 10:18:54 2005 UTC (12 years, 2 months ago) by hch
Branch: MAIN
Changes since 1.297: +1 -1 lines
Diff to previous 1.297 (colored)

Fix sparse warnings in kmem_* functions

Patch from Victor Fusco <victor@cetuc.puc-rio.br>

Revision 1.297 / (download) - annotate - [select for diffs], Fri Jun 17 14:01:39 2005 UTC (12 years, 4 months ago) by hch
Branch: MAIN
Changes since 1.296: +3 -11 lines
Diff to previous 1.296 (colored)

consolidate extent item freeing
consolidate extent item freeing

Revision 1.296 / (download) - annotate - [select for diffs], Fri Jun 3 06:03:33 2005 UTC (12 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.295: +8 -3 lines
Diff to previous 1.295 (colored)

Add support for project quota, based on Dan Knappes earlier work.
Merge of xfs-linux-melb:xfs-kern:22805a by kenmcd.

Revision 1.295 / (download) - annotate - [select for diffs], Wed May 18 09:29:33 2005 UTC (12 years, 5 months ago) by hch
Branch: MAIN
Changes since 1.294: +3 -3 lines
Diff to previous 1.294 (colored)

mark various symbols static

Patch from Adrian Bunk

Revision 1.294 / (download) - annotate - [select for diffs], Fri Jan 14 11:57:33 2005 UTC (12 years, 9 months ago) by hch
Branch: MAIN
Changes since 1.293: +6 -6 lines
Diff to previous 1.293 (colored)

Remove INT_ZERO and INT_ISZERO
0 is 0 in all endianess variant.  No need for INT_ZERO and INT_ISZERO

Revision 1.293 / (download) - annotate - [select for diffs], Wed Jan 12 22:38:29 2005 UTC (12 years, 9 months ago) by hch
Branch: MAIN
Changes since 1.292: +14 -14 lines
Diff to previous 1.292 (colored)

Stop passing ARCH_CONVERT/ARCH_NOCONVERT around everywhere
stop passing ARCH_CONVERT/ARCH_NOCONVERT around everywhere

Revision 1.292 / (download) - annotate - [select for diffs], Fri Nov 19 04:52:49 2004 UTC (12 years, 11 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.291: +3 -2 lines
Diff to previous 1.291 (colored)

xfs reservation issues with xlog_sync roundoff
Merge of xfs-linux-melb:xfs-kern:20222a by kenmcd.

  Add extra roundoff param to xlog_pack_data().

Revision 1.291 / (download) - annotate - [select for diffs], Wed Oct 27 12:06:24 2004 UTC (13 years ago) by hch
Branch: MAIN
Changes since 1.290: +1 -1 lines
Diff to previous 1.290 (colored)

handle inode creating race
xfs_iget gained another parameter

Revision 1.290 / (download) - annotate - [select for diffs], Wed Oct 27 11:56:15 2004 UTC (13 years ago) by hch
Branch: MAIN
Changes since 1.289: +0 -0 lines
Diff to previous 1.289 (colored)

Handle inode creating race
xfs_iget gained another parameter

Revision 1.289 / (download) - annotate - [select for diffs], Tue Aug 24 04:25:29 2004 UTC (13 years, 2 months ago) by nathans
Branch: MAIN
Changes since 1.288: +16 -5 lines
Diff to previous 1.288 (colored)

Support for default quota limits via the zero dquot (ala grace times).

Revision 1.288 / (download) - annotate - [select for diffs], Thu Jul 8 07:42:57 2004 UTC (13 years, 3 months ago) by nathans
Branch: MAIN
Changes since 1.287: +1 -1 lines
Diff to previous 1.287 (colored)

sparse: fix uses of null in place of zero and vice versa.  From Chris Wedgwood.

Revision 1.287 / (download) - annotate - [select for diffs], Thu May 20 03:27:56 2004 UTC (13 years, 5 months ago) by tes
Branch: MAIN
Changes since 1.286: +2 -0 lines
Diff to previous 1.286 (colored)

Change xfs_contig_bits to work on 32/64 and both endian styles.
This change was contributed by nboullis@debian.org based
on xfs_next_bit which exists in the xfs code.
Add asserts to ensure that the bit routine worked.

Revision 1.286 / (download) - annotate - [select for diffs], Fri Feb 27 05:15:53 2004 UTC (13 years, 8 months ago) by tes
Branch: MAIN
Changes since 1.285: +7 -5 lines
Diff to previous 1.285 (colored)

fix up some code for when XFS_LOUD_RECOVERY is turned on.
Missing definition of variable i :) Needed to compile xlog_unpack_data_checksum.
hlen is in bytes and not BBs so give better name to local variable.
Fixes to xlog_recover_check_summary() to do endian conversion on
superblock.

Revision 1.285 / (download) - annotate - [select for diffs], Fri Feb 20 07:04:35 2004 UTC (13 years, 8 months ago) by tes
Branch: MAIN
Changes since 1.284: +2 -3 lines
Diff to previous 1.284 (colored)

Fix log recovery case when have v2 log with size >32K and we have a
Log Record wrapping around the physical log end. Need to reset
the pb size back to what we were using and NOT just 32K.
Fix log recovery case when have v2 log with size >32K and we have a
Log Record wrapping around the physical log end. Need to reset
the pb size back to what we were using and NOT just 32K.

Revision 1.284 / (download) - annotate - [select for diffs], Thu Jan 29 06:49:48 2004 UTC (13 years, 9 months ago) by nathans
Branch: MAIN
Changes since 1.283: +1 -1 lines
Diff to previous 1.283 (colored)

Fix a warning from some gcc variants after recent flags botch.

Revision 1.283 / (download) - annotate - [select for diffs], Fri Jan 23 19:02:27 2004 UTC (13 years, 9 months ago) by overby
Branch: MAIN
Changes since 1.282: +1 -1 lines
Diff to previous 1.282 (colored)

fix a logic error in xlog_recover_reorder_trans()
fix a logic error in xlog_recover_reorder_trans()

Revision 1.282 / (download) - annotate - [select for diffs], Sat Nov 22 22:22:46 2003 UTC (13 years, 11 months ago) by nathans
Branch: MAIN
Changes since 1.281: +6 -9 lines
Diff to previous 1.281 (colored)

Switch from using dev_t to xfs_buftarg_t for representing the devices underneath XFS

Revision 1.281 / (download) - annotate - [select for diffs], Wed Oct 8 05:50:22 2003 UTC (14 years ago) by nathans
Branch: MAIN
Changes since 1.280: +3 -3 lines
Diff to previous 1.280 (colored)

Fix up pointers in diagnostics, print using %p not %x for 64 bit platforms

Revision 1.280 / (download) - annotate - [select for diffs], Tue Oct 7 21:21:22 2003 UTC (14 years ago) by lord
Branch: MAIN
CVS Tags: DELETE-570
Changes since 1.279: +2 -2 lines
Diff to previous 1.279 (colored)

switch xfs to use linux imode flags internally

Revision 1.279 / (download) - annotate - [select for diffs], Mon Oct 6 18:11:55 2003 UTC (14 years ago) by lord
Branch: MAIN
Changes since 1.278: +59 -21 lines
Diff to previous 1.278 (colored)

Implement deletion of inode clusters in XFS.
During log recovery, take into acount the fact that an inode write 
in the log may be cancelled by a subsequent stale of the inode buffer.
We need to prevent the inode log record from being replayed to disk
in this case.

Revision 1.278 / (download) - annotate - [select for diffs], Mon Sep 8 03:47:34 2003 UTC (14 years, 1 month ago) by sandeen
Branch: MAIN
Changes since 1.277: +0 -1 lines
Diff to previous 1.277 (colored)

remove doubly-included header files

Revision 1.277 / (download) - annotate - [select for diffs], Thu Sep 4 06:14:21 2003 UTC (14 years, 1 month ago) by cattelan
Branch: MAIN
Changes since 1.276: +2 -2 lines
Diff to previous 1.276 (colored)

IRIX sets KM_SLEEP to 0 but the support routines sets KM_SLEEP to 1.
So somebodys shortcut on irix is incorrect on linux and results in the sleep
behaviour not being set.

Revision 1.276 / (download) - annotate - [select for diffs], Wed Aug 6 21:17:05 2003 UTC (14 years, 2 months ago) by lord
Branch: MAIN
Changes since 1.275: +20 -0 lines
Diff to previous 1.275 (colored)

Add versioning to the on disk inode which we increment on each
flush call. This is used during recovery to avoid replaying an
older copy of the inode from the log. We can do this without
versioning the filesystem as the pad space we borrowed was
always zero and will be ignored by old kernels.
During recovery, do not replay an inode log record which is older 
than the on disk copy. Check for wrapping in the counter.

Revision 1.275 / (download) - annotate - [select for diffs], Tue Jul 29 00:04:41 2003 UTC (14 years, 3 months ago) by nathans
Branch: MAIN
Changes since 1.274: +3 -3 lines
Diff to previous 1.274 (colored)

Change any references to legal/illegal into valid/invalid - apparently this was bad, mkaay?

Revision 1.274 / (download) - annotate - [select for diffs], Mon Jul 14 05:05:04 2003 UTC (14 years, 3 months ago) by nathans
Branch: MAIN
Changes since 1.273: +2 -2 lines
Diff to previous 1.273 (colored)

Cleanup empty/noaddr pagebuf initialisation; particularly for buffers used for log IO - no longer allocate buffers for data device then reset target, gets it right from the start.

Revision 1.273 / (download) - annotate - [select for diffs], Fri Jun 27 18:04:26 2003 UTC (14 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.272: +4029 -0 lines
Diff to previous 1.272 (colored)

The Big Move
linux/fs/xfs/xfs_log_recover.c 1.271 Renamed to xfs_log_recover.c

Revision 1.272 / (download) - annotate - [select for diffs], Fri Jun 27 17:57:21 2003 UTC (14 years, 4 months ago) by cattelan
Branch: MAIN
CVS Tags: DENUKE
Changes since 1.271: +0 -4029 lines
Diff to previous 1.271 (colored)

Nuke

Revision 1.271 / (download) - annotate - [select for diffs], Wed Jun 18 02:50:02 2003 UTC (14 years, 4 months ago) by nathans
Branch: MAIN
Changes since 1.270: +1 -2 lines
Diff to previous 1.270 (colored)

Turn log head/tail check into an assert - this condition should never be true here

Revision 1.270 / (download) - annotate - [select for diffs], Mon Jun 2 02:59:30 2003 UTC (14 years, 4 months ago) by nathans
Branch: MAIN
Changes since 1.269: +85 -94 lines
Diff to previous 1.269 (colored)

Version 2 log code fixes in recovery.
Several recovery fixes, particularly for version 2 logs.  Do a better job
at sanity checking log headers as we read them in, fix the version check
for v2 log records, and if the log head==tail do not do any of the special
case v2 log header buffer-resizing code as doing so is invalid.

Revision 1.269 / (download) - annotate - [select for diffs], Fri May 30 04:55:52 2003 UTC (14 years, 5 months ago) by nathans
Branch: MAIN
Changes since 1.268: +10 -6 lines
Diff to previous 1.268 (colored)

V2 log update - tighten checks for corrupt log during recovery

Revision 1.268 / (download) - annotate - [select for diffs], Mon May 19 01:31:43 2003 UTC (14 years, 5 months ago) by nathans
Branch: MAIN
CVS Tags: XFS-1_3_0pre1
Changes since 1.267: +507 -464 lines
Diff to previous 1.267 (colored)

Fix two remaining indentation inconsistencies.

Revision 1.267 / (download) - annotate - [select for diffs], Mon May 19 00:25:11 2003 UTC (14 years, 5 months ago) by nathans
Branch: MAIN
Changes since 1.266: +478 -474 lines
Diff to previous 1.266 (colored)

Make log recovery code style consistent with a/ itself and b/ much of
the rest of XFS.  Fix numerous crimes against whitespace.

Revision 1.266 / (download) - annotate - [select for diffs], Mon May 19 00:07:42 2003 UTC (14 years, 5 months ago) by nathans
Branch: MAIN
Changes since 1.265: +73 -92 lines
Diff to previous 1.265 (colored)

Rationalise xlog_in_core2 definition, remove some ifdef __KERNEL__ code
which is unnecessary in log recovery, clarify some recovery debug code.

Revision 1.265 / (download) - annotate - [select for diffs], Fri May 16 06:24:13 2003 UTC (14 years, 5 months ago) by nathans
Branch: MAIN
Changes since 1.264: +1 -1 lines
Diff to previous 1.264 (colored)

Second part buftarg cleanup, don't poke inside a buftarg here anymore

Revision 1.264 / (download) - annotate - [select for diffs], Fri May 16 05:37:09 2003 UTC (14 years, 5 months ago) by nathans
Branch: MAIN
Changes since 1.263: +239 -114 lines
Diff to previous 1.263 (colored)

Large sector changes - fixup definition of xfs_agfl_t, and numerous
changes to make log recovery respect the log device sector size.
Numerous changes to the log recovery code to make it work for larger
sector sizes.

Revision 1.263 / (download) - annotate - [select for diffs], Tue May 13 23:52:11 2003 UTC (14 years, 5 months ago) by nathans
Branch: MAIN
Changes since 1.262: +1 -1 lines
Diff to previous 1.262 (colored)

V1 log tweak - fix log record length used when checking for a partial log
record write during log recovery head/tail calculations.

Revision 1.262 / (download) - annotate - [select for diffs], Thu May 1 16:22:06 2003 UTC (14 years, 5 months ago) by cattelan
Branch: MAIN
Changes since 1.261: +34 -2 lines
Diff to previous 1.261 (colored)

Rework the way xfs includes xfs_<blah>.h headers.
This reduces a lot of the compile dependenciesÂ,
and should reduce some of the "recompile all" situations.

Revision 1.261 / (download) - annotate - [select for diffs], Tue Apr 15 23:16:46 2003 UTC (14 years, 6 months ago) by cattelan
Branch: MAIN
Changes since 1.260: +91 -91 lines
Diff to previous 1.260 (colored)

Whitespace cleanup
Clean up some whitespace... revert some whitespace changes from previous whitespace cleanup (incorrect tabs)

Revision 1.260 / (download) - annotate - [select for diffs], Mon Mar 17 06:02:57 2003 UTC (14 years, 7 months ago) by nathans
Branch: MAIN
Changes since 1.259: +121 -16 lines
Diff to previous 1.259 (colored)

Separate the quota source into its own subdirectory ala dmapi.
Push a bunch of quota- and dmapi-specific code down into these
subdirs which previously was compiled into the core XFS code,
and don't descend into these subdirs if options config'd off.
Separate the quota source into its own subdirectory ala dmapi.
Push a bunch of quota- and dmapi-specific code down into these
subdirs which previously was compiled into the core XFS code,
and don't descend into these subdirs if options config'd off.

Revision 1.259 / (download) - annotate - [select for diffs], Fri Mar 14 16:38:44 2003 UTC (14 years, 7 months ago) by sandeen
Branch: MAIN
Changes since 1.258: +3 -3 lines
Diff to previous 1.258 (colored)

Bump the reporting threshold on calls to XFS_ERROR_REPORT
which are most likely due to a simple user error.

Revision 1.258 / (download) - annotate - [select for diffs], Tue Mar 4 20:15:43 2003 UTC (14 years, 7 months ago) by overby
Branch: MAIN
Changes since 1.257: +51 -18 lines
Diff to previous 1.257 (colored)

Add error reporting calls in error paths that return EFSCORRUPTED
Merge of irix6.5f:irix:136445a by sandeen.

  Merge of grove2-6520stage:irix:136445a by roehrich.
  Merge of grove2:irix:136445a by roehrich.
  Add error reporting calls in error paths that return EFSCORRUPTED

Revision 1.257 / (download) - annotate - [select for diffs], Mon Mar 3 17:54:29 2003 UTC (14 years, 7 months ago) by lord
Branch: MAIN
Changes since 1.256: +1 -1 lines
Diff to previous 1.256 (colored)

reduce byte swapping and spinlock usage in log write path
drop second argument from xlog_assign_tail_lsn

Revision 1.256 / (download) - annotate - [select for diffs], Wed Feb 26 17:49:07 2003 UTC (14 years, 8 months ago) by lord
Branch: MAIN
Changes since 1.255: +1 -1 lines
Diff to previous 1.255 (colored)

always look at what the merge tools do to the code, fix up the
result of the merge from irix, it replaced the wrong line
in here.
put back error=0 and remove the xfs_inobp_check()

Revision 1.255 / (download) - annotate - [select for diffs], Tue Feb 25 17:56:10 2003 UTC (14 years, 8 months ago) by lord
Branch: MAIN
Changes since 1.254: +0 -9 lines
Diff to previous 1.254 (colored)

remove incorrect debug check from log recovery
Merge of grove2:irix:140267a by lord.

  remove the xfs_inobp_check calls in recovery

Revision 1.254 / (download) - annotate - [select for diffs], Thu Feb 6 18:13:04 2003 UTC (14 years, 8 months ago) by lord
Branch: MAIN
Changes since 1.253: +5 -4 lines
Diff to previous 1.253 (colored)

fix a couple of memory leaks found by stanford checker
during log recovery, delay allocating a chunk of memory until
we know we are actually going to need it. Removes a leak in
xlog_recover_add_to_trans().

Revision 1.253 / (download) - annotate - [select for diffs], Fri Jan 10 17:08:14 2003 UTC (14 years, 9 months ago) by sandeen
Branch: MAIN
Changes since 1.252: +7 -3 lines
Diff to previous 1.252 (colored)

Handle mode 0 inodes that find their way onto the unlinked list
These shouldn't be there, probably the result of corruption.
However, if we find one, handle it specially so that we don't
deadlock during unlinked list processing in recovery.  Without
xfs_iput_new, we'd be waiting on an inode lock we already hold.

Revision 1.252 / (download) - annotate - [select for diffs], Mon Dec 2 05:53:26 2002 UTC (14 years, 10 months ago) by nathans
Branch: MAIN
Changes since 1.251: +67 -62 lines
Diff to previous 1.251 (colored)

Sector size updates - macros for calculating address/size of sector-sized
data structures (sb,agf,agi,agfl) are now sector size aware.  Cleaned up
the early mount code dealing with log devices and logsectsize.
Macros for calculating address/size of sector-sized data structures     
(sb,agf,agi,agfl) are now sector size aware.

Revision 1.251 / (download) - annotate - [select for diffs], Tue Nov 12 20:11:48 2002 UTC (14 years, 11 months ago) by hch
Branch: MAIN
Changes since 1.250: +12 -15 lines
Diff to previous 1.250 (colored)

Remove rootfs special-casing in the quota code
treat the rootfs like any other filesystem

Revision 1.250 / (download) - annotate - [select for diffs], Sat Oct 26 19:27:38 2002 UTC (15 years ago) by sandeen
Branch: MAIN
Changes since 1.249: +1 -1 lines
Diff to previous 1.249 (colored)

Remove tabs from printk's

Revision 1.249 / (download) - annotate - [select for diffs], Wed Oct 23 04:21:07 2002 UTC (15 years ago) by kaos
Branch: MAIN
Changes since 1.248: +46 -46 lines
Diff to previous 1.248 (colored)

Undoes mod:     2.4.x-xfs:slinx:130826a
Revert STATIC->static change

Revision 1.248 / (download) - annotate - [select for diffs], Wed Oct 23 03:54:05 2002 UTC (15 years ago) by kaos
Branch: MAIN
Changes since 1.247: +46 -46 lines
Diff to previous 1.247 (colored)

Replace STATIC with static in xfs code

Revision 1.247 / (download) - annotate - [select for diffs], Mon Oct 21 14:40:44 2002 UTC (15 years ago) by hch
Branch: MAIN
Changes since 1.246: +3 -3 lines
Diff to previous 1.246 (colored)

remove nopkg() alias for ENOSYS
use ENOSYS instead of nopkg()

Revision 1.246 / (download) - annotate - [select for diffs], Fri Oct 11 19:22:58 2002 UTC (15 years ago) by sandeen
Branch: MAIN
Changes since 1.245: +3 -3 lines
Diff to previous 1.245 (colored)

Clean up xfs' log message printing
Remove extra newline from end of cmn_error messages

Revision 1.245 / (download) - annotate - [select for diffs], Wed Oct 9 03:06:48 2002 UTC (15 years ago) by nathans
Branch: MAIN
Changes since 1.244: +16 -15 lines
Diff to previous 1.244 (colored)

Global search and replace of the b* memory routines to their mem* equivalents.
(bcopy->memcopy, ovbcopy->memmove, bzero->memset, bcmp->memcmp).

Revision 1.244 / (download) - annotate - [select for diffs], Sat Oct 5 16:57:40 2002 UTC (15 years ago) by sandeen
Branch: MAIN
Changes since 1.243: +1 -1 lines
Diff to previous 1.243 (colored)

Check rtdev as well when testing for read-only devices
Fix device that we check prior to xlog_clear_stale_blocks (2.4 only)
Fix device that we check prior to xlog_clear_stale_blocks (2.4 only)

Revision 1.243 / (download) - annotate - [select for diffs], Fri Oct 4 21:09:39 2002 UTC (15 years ago) by sandeen
Branch: MAIN
Changes since 1.242: +20 -9 lines
Diff to previous 1.242 (colored)

Rearrange how xfs deals with read-only mounts vs. read-only devices.
Check device for read-only (rather than mount flag)
before doing xlog_clear_stale_blocks().  We were skipping
this on read-only mounts, which was not a good thing.
Don't change VFS readonly flag to do recovery, only
check for ro status of underlying device.

Revision 1.242 / (download) - annotate - [select for diffs], Sat Sep 7 10:11:28 2002 UTC (15 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.241: +13 -9 lines
Diff to previous 1.241 (colored)

Fixed a typo bug (& != &&) in the v2 log recovery code - found by inspection,
not sure it caused any problems in the wild.  tidied some code around it to
be 80char wide.

Revision 1.241 / (download) - annotate - [select for diffs], Thu Sep 5 16:43:35 2002 UTC (15 years, 1 month ago) by sandeen
Branch: MAIN
Changes since 1.240: +2 -8 lines
Diff to previous 1.240 (colored)

Remove mrquota/QUOTAMAYBE mount option

Revision 1.240 / (download) - annotate - [select for diffs], Thu Aug 29 21:26:29 2002 UTC (15 years, 2 months ago) by lord
Branch: MAIN
Changes since 1.239: +2 -1 lines
Diff to previous 1.239 (colored)

when processing unlinked inodes and dealing with the di_next_unlinked
field, endian flip it.

Revision 1.239 / (download) - annotate - [select for diffs], Tue Aug 13 16:09:38 2002 UTC (15 years, 2 months ago) by lord
Branch: MAIN
Changes since 1.238: +3 -3 lines
Diff to previous 1.238 (colored)

rationalize xfs <-> pagebuf interface

Revision 1.238 / (download) - annotate - [select for diffs], Mon Jul 22 18:34:31 2002 UTC (15 years, 3 months ago) by sandeen
Branch: MAIN
Changes since 1.237: +3 -3 lines
Diff to previous 1.237 (colored)

remove kdev_t abuse from XFS

Revision 1.237 / (download) - annotate - [select for diffs], Wed Jul 10 19:00:42 2002 UTC (15 years, 3 months ago) by sandeen
Branch: MAIN
Changes since 1.236: +278 -278 lines
Diff to previous 1.236 (colored)

whitespace cleanup

Revision 1.236 / (download) - annotate - [select for diffs], Tue Jul 9 20:03:38 2002 UTC (15 years, 3 months ago) by lord
Branch: MAIN
Changes since 1.235: +6 -3 lines
Diff to previous 1.235 (colored)

when allocating a buffer for recovery reading the log, use a power of 2

Revision 1.235 / (download) - annotate - [select for diffs], Thu Jun 20 20:31:36 2002 UTC (15 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.234: +12 -9 lines
Diff to previous 1.234 (colored)

unifdef some dmapi calls, and add a recovery check which was missing

Revision 1.234 / (download) - annotate - [select for diffs], Tue Jun 18 20:32:24 2002 UTC (15 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.233: +213 -76 lines
Diff to previous 1.233 (colored)

Support for recovering v2 logs

Revision 1.233 / (download) - annotate - [select for diffs], Wed Jun 5 19:11:07 2002 UTC (15 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.232: +4 -4 lines
Diff to previous 1.232 (colored)

optimize bit manipulation functions

Revision 1.232 / (download) - annotate - [select for diffs], Tue Jun 4 16:30:46 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.231: +1 -1 lines
Diff to previous 1.231 (colored)

Update copyright dates

Revision 1.231 / (download) - annotate - [select for diffs], Fri May 31 18:05:18 2002 UTC (15 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.230: +1 -1 lines
Diff to previous 1.230 (colored)

Fix a recovery bug - miscalculation of which block is the end of the log

Revision 1.230 / (download) - annotate - [select for diffs], Fri May 31 00:44:20 2002 UTC (15 years, 5 months ago) by nathans
Branch: MAIN
Changes since 1.229: +4 -5 lines
Diff to previous 1.229 (colored)

kdev_t changes to sync up the 2.4 code base with the 2.5 code (incl.
use of the kdev compat macros, removed pb_dev from page_buf_t, made
XFS_BUF_TARGET use match up with current 2.5, removed unused q_dev
field from xfs_dquot).

Revision 1.229 / (download) - annotate - [select for diffs], Sat May 25 12:04:36 2002 UTC (15 years, 5 months ago) by lord
Branch: MAIN
Changes since 1.228: +4 -4 lines
Diff to previous 1.228 (colored)

Undoes mod:     2.4.x-xfs:slinx:120155a
back out bitmap changes - it breaks recovery

Revision 1.228 / (download) - annotate - [select for diffs], Fri May 24 14:39:39 2002 UTC (15 years, 5 months ago) by lord
Branch: MAIN
Changes since 1.227: +4 -4 lines
Diff to previous 1.227 (colored)

optimize xfs bitmap operations

Revision 1.227 / (download) - annotate - [select for diffs], Wed May 15 21:23:32 2002 UTC (15 years, 5 months ago) by sandeen
Branch: MAIN
Changes since 1.226: +4 -1 lines
Diff to previous 1.226 (colored)

Return EIO from xlog_find_zeroed if xlog_find_verify_log_record
can't find the header.  Otherwise the block number from 
xlog_find_zeroed will be used uninitialized.

Revision 1.226 / (download) - annotate - [select for diffs], Wed May 8 18:56:57 2002 UTC (15 years, 5 months ago) by sandeen
Branch: MAIN
Changes since 1.225: +32 -41 lines
Diff to previous 1.225 (colored)

Return errors from xlog_find_verify_cycle in such a way
that we can distinguish them from normal returns.
Fix sign of -ENOMEM returns; should be (+) returns.

Revision 1.225 / (download) - annotate - [select for diffs], Fri Apr 26 01:35:51 2002 UTC (15 years, 6 months ago) by nathans
Branch: MAIN
Changes since 1.224: +0 -2 lines
Diff to previous 1.224 (colored)

remove a now-redundant ifdef __KERNEL__ conditional.

Revision 1.224 / (download) - annotate - [select for diffs], Thu Apr 18 04:38:30 2002 UTC (15 years, 6 months ago) by sandeen
Branch: MAIN
Changes since 1.223: +1 -1 lines
Diff to previous 1.223 (colored)

Cut and paste error - s/last_blk/new_blk

Revision 1.223 / (download) - annotate - [select for diffs], Wed Apr 17 18:48:15 2002 UTC (15 years, 6 months ago) by sandeen
Branch: MAIN
Changes since 1.222: +23 -4 lines
Diff to previous 1.222 (colored)

Various points in this file return -ENOMEM on linux, this was
not being handled correctly in some spots.  Either error returns were
not checked, or -ENOMEM treated the same as a return of -1, which
is actually a "normal" return from xlog_find_verify_cycle.

Revision 1.222 / (download) - annotate - [select for diffs], Wed Apr 3 20:18:24 2002 UTC (15 years, 6 months ago) by sandeen
Branch: MAIN
Changes since 1.221: +7 -3 lines
Diff to previous 1.221 (colored)

Remove double endian flipping
Move CYCLE_LSN assignment outside of loop

Revision 1.221 / (download) - annotate - [select for diffs], Thu Mar 28 19:45:15 2002 UTC (15 years, 7 months ago) by lord
Branch: MAIN
Changes since 1.220: +2 -0 lines
Diff to previous 1.220 (colored)

correct locking on iclog buffers

Revision 1.220 / (download) - annotate - [select for diffs], Thu Mar 28 03:18:22 2002 UTC (15 years, 7 months ago) by lord
Branch: MAIN
Changes since 1.219: +12 -12 lines
Diff to previous 1.219 (colored)

ensure unsigned long used to store irq state

Revision 1.219 / (download) - annotate - [select for diffs], Wed Feb 27 21:15:13 2002 UTC (15 years, 8 months ago) by lord
Branch: MAIN
Changes since 1.218: +1 -1 lines
Diff to previous 1.218 (colored)

minor cleanup

Revision 1.218 / (download) - annotate - [select for diffs], Tue Feb 12 20:57:22 2002 UTC (15 years, 8 months ago) by sandeen
Branch: MAIN
Changes since 1.217: +3 -4 lines
Diff to previous 1.217 (colored)

Merge irix6.5f:irix:110411a
No need to look at UUID and DEV cases in the inode recovery case statement,
they are already handled. This was breaking debug kernel.s

Revision 1.217 / (download) - annotate - [select for diffs], Fri Jan 11 22:31:20 2002 UTC (15 years, 9 months ago) by sandeen
Branch: MAIN
Changes since 1.216: +79 -78 lines
Diff to previous 1.216 (colored)

Merge irix6.5f:irix:103241a
In xlog_recover_process_iunlinks(), use the on disk inode to explicitly
find the next inode in the unlinked list instead of relying on
VN_RELE() to remove the current inode from the head of the agi_unlinked
bucket.  The VN_RELE() method does not work in CXFS recovery because
zero link count files will show up in the unlink list, but have more
than one reference.  Fix for bug 826858.

Revision 1.216 / (download) - annotate - [select for diffs], Mon Dec 17 18:40:18 2001 UTC (15 years, 10 months ago) by lord
Branch: MAIN
Changes since 1.215: +11 -9 lines
Diff to previous 1.215 (colored)

Fix log recovery for device special inodes

Revision 1.215 / (download) - annotate - [select for diffs], Tue Dec 4 20:02:50 2001 UTC (15 years, 10 months ago) by roehrich
Branch: MAIN
Changes since 1.214: +8 -8 lines
Diff to previous 1.214 (colored)

If I build dmapi as a module then CONFIG_XFS_DMAPI won't be set--it'll
be CONFIG_XFS_DMAPI_MODULE instead.  So switch to using CONFIG_HAVE_XFS_DMAPI
to see if DMAPI is being used, whether dmapi is a module or not.
No Message Supplied

Revision 1.214 / (download) - annotate - [select for diffs], Thu Nov 8 01:49:09 2001 UTC (15 years, 11 months ago) by kaos
Branch: MAIN
Changes since 1.213: +2 -2 lines
Diff to previous 1.213 (colored)

Make references to CONFIG_XFS_DMAPI consistent

Revision 1.213 / (download) - annotate - [select for diffs], Tue Oct 2 08:24:32 2001 UTC (16 years ago) by kaos
Branch: MAIN
Changes since 1.212: +1 -1 lines
Diff to previous 1.212 (colored)

Sync with current kdb, correct xfs warnings

Revision 1.212 / (download) - annotate - [select for diffs], Fri Sep 28 17:40:46 2001 UTC (16 years, 1 month ago) by lord
Branch: MAIN
Changes since 1.211: +4 -2 lines
Diff to previous 1.211 (colored)

Avoid scanning off the end of the log when looking for the head and
tail.

Revision 1.211 / (download) - annotate - [select for diffs], Tue Sep 11 19:25:00 2001 UTC (16 years, 1 month ago) by lord
Branch: MAIN
Changes since 1.210: +1 -1 lines
Diff to previous 1.210 (colored)

fix min max typing issues

Revision 1.210 / (download) - annotate - [select for diffs], Mon Sep 10 04:25:47 2001 UTC (16 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.209: +1 -1 lines
Diff to previous 1.209 (colored)

need an \n terminator for DEBUG now (changed from CE_NOTE).  grr.

Revision 1.209 / (download) - annotate - [select for diffs], Tue Sep 4 11:36:44 2001 UTC (16 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.208: +1 -1 lines
Diff to previous 1.208 (colored)

only report clean log mounts in debug mode.

Revision 1.208 / (download) - annotate - [select for diffs], Tue Aug 14 13:35:18 2001 UTC (16 years, 2 months ago) by eric
Branch: MAIN
Changes since 1.207: +28 -8 lines
Diff to previous 1.207 (colored)

Merge of irix6.5f:irix:99901a
Add xfs_ioerror_alert calls on I/O errors

Revision 1.207 / (download) - annotate - [select for diffs], Fri Apr 13 16:34:37 2001 UTC (16 years, 6 months ago) by lord
Branch: MAIN
CVS Tags: Linux-2_4_5-merge
Changes since 1.206: +3 -1 lines
Diff to previous 1.206 (colored)

Merge Irix bug fix - will only hit if dmapi is enabled on linux

Revision 1.206 / (download) - annotate - [select for diffs], Wed Apr 11 16:27:03 2001 UTC (16 years, 6 months ago) by lord
Branch: MAIN
Changes since 1.205: +0 -7 lines
Diff to previous 1.205 (colored)

Kill gratuitous prototypes

Revision 1.205 / (download) - annotate - [select for diffs], Wed Apr 11 01:44:54 2001 UTC (16 years, 6 months ago) by cattelan
Branch: MAIN
Changes since 1.204: +61 -61 lines
Diff to previous 1.204 (colored)

Get rid of the last compiler warning OFF flags

Revision 1.204 / (download) - annotate - [select for diffs], Tue Apr 3 02:52:38 2001 UTC (16 years, 6 months ago) by nathans
Branch: MAIN
CVS Tags: Release-1_0_0
Changes since 1.203: +12 -13 lines
Diff to previous 1.203 (colored)

support group quotas in Linux/XFS.

Revision 1.203 / (download) - annotate - [select for diffs], Mon Mar 12 19:32:25 2001 UTC (16 years, 7 months ago) by sandeen
Branch: MAIN
CVS Tags: PreRelease-0_10
Changes since 1.202: +28 -0 lines
Diff to previous 1.202 (colored)

     In xlog_recover_process_iunlinks(), always clear the inode DMAPI event
     mask to prevent any DMAPI events from being sent.  This is not a problem
     for XFS since the file system is not mounted during recovery, but it is
     a problem for CXFS which does recovery on mounted (but quiescent) file
     systems.  Fix for bug 810492.

Revision 1.202 / (download) - annotate - [select for diffs], Tue Feb 27 04:39:16 2001 UTC (16 years, 8 months ago) by dxm
Branch: MAIN
Changes since 1.201: +0 -2 lines
Diff to previous 1.201 (colored)

remove unused variable

Revision 1.201 / (download) - annotate - [select for diffs], Tue Feb 27 02:43:46 2001 UTC (16 years, 8 months ago) by nathans
Branch: MAIN
Changes since 1.200: +4 -6 lines
Diff to previous 1.200 (colored)

use updated ro test function name, fix spacing.

Revision 1.200 / (download) - annotate - [select for diffs], Fri Feb 23 19:08:48 2001 UTC (16 years, 8 months ago) by lord
Branch: MAIN
Changes since 1.199: +15 -15 lines
Diff to previous 1.199 (colored)

Deal with too large a log buffer during mount/recovery better. The current
code for falling back to a small buffer will get hit more often now, this
fixes up the common case (clean mount) to ask for decreasing powers of 2
sized buffers rather than dropping down to 1 block immediately.

Revision 1.199 / (download) - annotate - [select for diffs], Sun Jan 14 23:51:57 2001 UTC (16 years, 9 months ago) by nathans
Branch: MAIN
Changes since 1.198: +1 -1 lines
Diff to previous 1.198 (colored)

fix uninit'd variable warning.

Revision 1.198 / (download) - annotate - [select for diffs], Sun Dec 3 22:08:19 2000 UTC (16 years, 10 months ago) by dxm
Branch: MAIN
Changes since 1.197: +2 -1 lines
Diff to previous 1.197 (colored)

OUCH - put back in accidently removed line

Revision 1.197 / (download) - annotate - [select for diffs], Fri Dec 1 01:52:45 2000 UTC (16 years, 10 months ago) by nathans
Branch: MAIN
Changes since 1.196: +7 -7 lines
Diff to previous 1.196 (colored)

ondisk dquots are now big-endian only.

Revision 1.196 / (download) - annotate - [select for diffs], Thu Nov 16 00:17:05 2000 UTC (16 years, 11 months ago) by dxm
Branch: MAIN
Changes since 1.195: +1 -5 lines
Diff to previous 1.195 (colored)

drop XFS_kmem_realloc alias

Revision 1.195 / (download) - annotate - [select for diffs], Tue Oct 24 00:25:26 2000 UTC (17 years ago) by nathans
Branch: MAIN
Changes since 1.194: +3 -3 lines
Diff to previous 1.194 (colored)

use ENOSYS in preference to ENOPKG.

Revision 1.194 / (download) - annotate - [select for diffs], Wed Oct 4 06:17:04 2000 UTC (17 years ago) by dxm
Branch: MAIN
Changes since 1.193: +86 -32 lines
Diff to previous 1.193 (colored)

pv 802017 add fast path - most of the time we'll get the full buffers
we want, so try to do single large buffer reads/writes first.

Revision 1.193 / (download) - annotate - [select for diffs], Mon Oct 2 23:35:37 2000 UTC (17 years ago) by dxm
Branch: MAIN
Changes since 1.192: +111 -88 lines
Diff to previous 1.192 (colored)

pv 801613 - remove log footer add new uuid and format fields

Revision 1.192 / (download) - annotate - [select for diffs], Thu Sep 28 04:14:43 2000 UTC (17 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.191: +0 -2 lines
Diff to previous 1.191 (colored)

remove explicit externs - get these from headers.

Revision 1.191 / (download) - annotate - [select for diffs], Tue Sep 26 00:59:23 2000 UTC (17 years, 1 month ago) by dxm
Branch: MAIN
Changes since 1.190: +108 -129 lines
Diff to previous 1.190 (colored)

pv 802017 Remove need for large buffers during log recovery

Revision 1.190 / (download) - annotate - [select for diffs], Mon Sep 25 05:42:07 2000 UTC (17 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.189: +37 -269 lines
Diff to previous 1.189 (colored)

use xfs.h, remove all traces of SIM, push extern declarations into headers,
dead code removal.

Revision 1.189 / (download) - annotate - [select for diffs], Tue Sep 19 22:17:29 2000 UTC (17 years, 1 month ago) by dxm
Branch: MAIN
Changes since 1.188: +28 -4 lines
Diff to previous 1.188 (colored)

pv 802017 rv lord remove ASSERT in xlog_get_bp and check for NULL
return instead. Not a solution to the problem, but at least we don't
panic.

Revision 1.188 / (download) - annotate - [select for diffs], Wed Sep 6 19:47:00 2000 UTC (17 years, 1 month ago) by lord
Branch: MAIN
Changes since 1.187: +1 -2 lines
Diff to previous 1.187 (colored)

When removing the block containing the log footer from the external log
size, do not remove the size of the iclog, this is the size of an internal
memory buffer, not a disk structure.

Revision 1.187 / (download) - annotate - [select for diffs], Wed Aug 30 00:37:21 2000 UTC (17 years, 2 months ago) by dxm
Branch: MAIN
Changes since 1.186: +42 -50 lines
Diff to previous 1.186 (colored)

use new XFS_EXTERNAL_LOG_* defines & make version endian safe

Revision 1.186 / (download) - annotate - [select for diffs], Tue Aug 29 22:56:17 2000 UTC (17 years, 2 months ago) by dxm
Branch: MAIN
Changes since 1.185: +7 -5 lines
Diff to previous 1.185 (colored)

call xlog_test_footer from xlog_recover not xlog_find_tail

Revision 1.185 / (download) - annotate - [select for diffs], Thu Aug 24 05:43:08 2000 UTC (17 years, 2 months ago) by dxm
Branch: MAIN
Changes since 1.184: +5 -3 lines
Diff to previous 1.184 (colored)

compare footer against original uuid not potentially new one

Revision 1.184 / (download) - annotate - [select for diffs], Wed Aug 23 04:52:01 2000 UTC (17 years, 2 months ago) by dxm
Branch: MAIN
Changes since 1.183: +56 -59 lines
Diff to previous 1.183 (colored)

remove surplus \ns, tidy up footer check, make xlog_test_footer non-static

Revision 1.183 / (download) - annotate - [select for diffs], Wed Aug 2 19:55:27 2000 UTC (17 years, 2 months ago) by cattelan
Branch: MAIN
Changes since 1.182: +2 -3 lines
Diff to previous 1.182 (colored)

Fix readonly recovery.
XFS will mount as a root file system again.

Revision 1.182 / (download) - annotate - [select for diffs], Wed Aug 2 17:58:46 2000 UTC (17 years, 2 months ago) by lord
Branch: MAIN
Changes since 1.181: +35 -22 lines
Diff to previous 1.181 (colored)

Do log recovery on inodes without mapping the buffers. Turn off some
range checking asserts which are based on buffers being mapped.

Revision 1.181 / (download) - annotate - [select for diffs], Fri Jun 9 06:40:03 2000 UTC (17 years, 4 months ago) by ananth
Branch: MAIN
Changes since 1.180: +72 -71 lines
Diff to previous 1.180 (colored)

Merge of 2.3.99pre2-xfs:slinx:62680a originally by jtk on 05/24/00
  Minor fix in a console message.

Merge of 2.3.99pre2-xfs:slinx:62865a originally by dxm on 05/25/00
  fix type warnings

Merge of 2.3.99pre2-xfs:slinx:63026a originally by cattelan on 05/30/00
  Masive type update 
  all daddr_t -> xfs_daddr_t
  caddr_t -> xfs_caddr_t
  off_t   -> xfs_off_t
  ino_t   -> xfs_ino_t
  off64_t -> xfs_off_t 
  Removed need for file xfs_to_linux.h and lunux_to_xfs.h

Merge of 2.3.99pre2-xfs:slinx:63664a originally by nathans on 06/08/00
  more housekeeping - remove unused headers & dead code.

Revision 1.180 / (download) - annotate - [select for diffs], Fri Jun 9 04:41:38 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.179: +7 -5 lines
Diff to previous 1.179 (colored)

Merge of 2.3.99pre2-xfs:slinx:62475a by ananth.

  minor tweaks to daniels changes for log playback byte ordering fixes

Revision 1.179 / (download) - annotate - [select for diffs], Fri Jun 9 04:41:00 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.178: +13 -4 lines
Diff to previous 1.178 (colored)

Merge of 2.3.99pre2-xfs:slinx:62421a by ananth.

  temporary recovery fix

Revision 1.178 / (download) - annotate - [select for diffs], Fri Jun 9 04:39:57 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.177: +77 -80 lines
Diff to previous 1.177 (colored)

ARCH: Support big-endian ONLY
Merge of 2.3.99pre2-xfs:slinx:62350a by ananth.

Revision 1.177 / (download) - annotate - [select for diffs], Fri Jun 9 04:19:01 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.176: +16 -3 lines
Diff to previous 1.176 (colored)

add mount failure diagnostics
Merge of 2.3.99pre2-xfs:slinx:60970a by ananth.

Revision 1.176 / (download) - annotate - [select for diffs], Fri Jun 9 04:13:34 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.175: +82 -73 lines
Diff to previous 1.175 (colored)

arch work for clean log mount
Merge of 2.3.99pre2-xfs:slinx:60311a by ananth.

Revision 1.175 / (download) - annotate - [select for diffs], Fri Jun 9 03:49:36 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.174: +4 -1 lines
Diff to previous 1.174 (colored)

Merge of 2.3.99pre2-xfs:slinx:58584a by ananth.

  Changed kmem_realloc to include oldsize.

Revision 1.174 / (download) - annotate - [select for diffs], Fri Jun 9 03:48:35 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.173: +2 -0 lines
Diff to previous 1.173 (colored)

Merge of 2.3.99pre2-xfs:slinx:58519a by ananth.

  Added prototype for xfs_is_read_only.. ya it's a hack but...

Revision 1.173 / (download) - annotate - [select for diffs], Fri Jun 9 03:47:51 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.172: +6 -12 lines
Diff to previous 1.172 (colored)

Merge of 2.3.99pre2-xfs:slinx:58501a by ananth.

  moved linux specific is_read_only to border file -> xfs_lrw.c

Revision 1.172 / (download) - annotate - [select for diffs], Fri Jun 9 03:39:11 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.171: +1 -1 lines
Diff to previous 1.171 (colored)

Merge of 2.3.99pre2-xfs:slinx:58067a by ananth.

  Make xlog_test_footer() work in the internal log case where there is no
  footer to check. It was returning a random value as an error and causing
  mount to fail.

Revision 1.171 / (download) - annotate - [select for diffs], Fri Jun 9 03:38:31 2000 UTC (17 years, 4 months ago) by nn100003
Branch: MAIN
Changes since 1.170: +29 -5 lines
Diff to previous 1.170 (colored)

Merge of 2.3.99pre2-xfs:slinx:58037a by ananth.

  No Message Supplied

Revision 1.170 / (download) - annotate - [select for diffs], Fri Jun 9 03:26:27 2000 UTC (17 years, 4 months ago) by nathans
Branch: MAIN
Changes since 1.169: +16 -18 lines
Diff to previous 1.169 (colored)

Merge of 2.3.99pre2-xfs:slinx:56978a by ananth.

  architecture independence for the agi structure.

Revision 1.169 / (download) - annotate - [select for diffs], Fri Jun 9 03:25:57 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.168: +68 -36 lines
Diff to previous 1.168 (colored)

Merge of 2.3.99pre2-xfs:slinx:56911a by ananth.

  Defined XFS_BUF_SET_TARGET macro for pagebuf metadata. Fixes external
  logs (and probably other non-data devices) when using pagebuf
  metadata.
  Moved log footer checking code to run earlier in the log recovery
  process.  Fixes the "xfs_find_verify_log_record: need to backup"
  message when mounting external logs.

Revision 1.168 / (download) - annotate - [select for diffs], Fri Jun 9 03:23:07 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.167: +1 -1 lines
Diff to previous 1.167 (colored)

Merge of 2.3.99pre2-xfs:slinx:56497a by ananth.

  Fix debug builds

Revision 1.167 / (download) - annotate - [select for diffs], Fri Jun 9 03:22:44 2000 UTC (17 years, 4 months ago) by nathans
Branch: MAIN
Changes since 1.166: +10 -7 lines
Diff to previous 1.166 (colored)

Merge of 2.3.99pre2-xfs:slinx:56466a by ananth.

  architecture independence for the allocation group freespace structure.

Revision 1.166 / (download) - annotate - [select for diffs], Fri Jun 9 02:50:02 2000 UTC (17 years, 4 months ago) by kenmcd
Branch: MAIN
CVS Tags: GPL-ENCUMBRANCE
Changes since 1.165: +25 -12 lines
Diff to previous 1.165 (colored)

Updated copyright and license notices, ready for open source release
Merge of 2.3.99pre2-xfs:slinx:55821a by ananth.

Revision 1.165 / (download) - annotate - [select for diffs], Fri Jun 9 02:29:42 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
CVS Tags: DELETE
Changes since 1.164: +8 -20 lines
Diff to previous 1.164 (colored)

cleanup XFS use of device types
Merge of 2.3.99pre2-xfs:slinx:55615a by ananth.

  Merge of 2.3.42-xfs:slinx:55615a by lord.

Revision 1.164 / (download) - annotate - [select for diffs], Fri Jun 9 02:19:55 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.163: +0 -0 lines
Diff to previous 1.163 (colored)

Merge of 2.3.99pre2-xfs:slinx:46994a by ananth.

  Merge of 2.3.42-xfs:slinx:46994a by ananth.
  Removed the need for links in the pseudo-inc directory.
  changed all includes of xfs_linux.h -> xfs_os_defs.h

Revision 1.163 / (download) - annotate - [select for diffs], Fri Jun 9 02:15:58 2000 UTC (17 years, 4 months ago) by nn100003
Branch: MAIN
Changes since 1.162: +36 -0 lines
Diff to previous 1.162 (colored)

Merge of 2.3.99pre2-xfs:slinx:46735a by ananth.

  Merge of 2.3.42-xfs:slinx:46735a by ananth.
  Added code to xlog_find_tail() that, if operating on an external log, validates
  the magic field and UUID.

Revision 1.162 / (download) - annotate - [select for diffs], Fri Jun 9 02:10:31 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.161: +0 -39 lines
Diff to previous 1.161 (colored)

Merge of 2.3.99pre2-xfs:slinx:46545a by ananth.

  Merge of 2.3.42-xfs:slinx:46545a by ananth.

Revision 1.161 / (download) - annotate - [select for diffs], Fri Jun 9 02:10:00 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.160: +40 -1 lines
Diff to previous 1.160 (colored)

Merge of 2.3.99pre2-xfs:slinx:46541a by ananth.

  Merge of 2.3.42-xfs:slinx:46541a by ananth.
  Header file cleanup
  removed the last of the
  #if defined(__linux__)
  #include <xfs_linux>
  #endif
  All os specific include file switches should now done
  in xfs_os_defs.h

Revision 1.160 / (download) - annotate - [select for diffs], Fri Jun 9 01:50:04 2000 UTC (17 years, 4 months ago) by nathans
Branch: MAIN
Changes since 1.159: +2 -8 lines
Diff to previous 1.159 (colored)

Merge of 2.3.99pre2-xfs:slinx:46428a by ananth.

  Merge of 2.3.42-xfs:slinx:46428a by ananth.
  remove unused include files.

Revision 1.159 / (download) - annotate - [select for diffs], Fri Jun 9 01:12:46 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.158: +0 -3 lines
Diff to previous 1.158 (colored)

Merge of 2.3.99pre2-xfs:slinx:46057a by ananth.

  Merge of 2.3.42-xfs:slinx:46057a by ananth.
  remove call to bp_dcache_wbinval()

Revision 1.158 / (download) - annotate - [select for diffs], Fri Jun 9 01:07:43 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.157: +6 -6 lines
Diff to previous 1.157 (colored)

Merge of 2.3.99pre2-xfs:slinx:46007a by ananth.

  Merge of 2.3.42-xfs:slinx:46007a by ananth.
  use XFS_BUF_SET_PTR and flush buffers during recovery

Revision 1.157 / (download) - annotate - [select for diffs], Fri Jun 9 00:48:29 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.156: +1 -1 lines
Diff to previous 1.156 (colored)

Merge of 2.3.99pre2-xfs:slinx:44392a by ananth.

  Merge of 2.3.42-xfs:slinx:44392a by ananth.
  add explicit setting of write flag on pagebuf

Revision 1.156 / (download) - annotate - [select for diffs], Thu Jun 8 23:59:59 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.155: +12 -10 lines
Diff to previous 1.155 (colored)

Bring XFS upto 2.3.42
Merge of 2.3.99pre2-xfs:slinx:43458a by ananth.

  Merge of 2.3.42-xfs:slinx:43458a by ananth.

Revision 1.155 / (download) - annotate - [select for diffs], Sat Feb 12 01:03:17 2000 UTC (17 years, 8 months ago) by cattelan
Branch: MAIN
Changes since 1.154: +11 -11 lines
Diff to previous 1.154 (colored)

Macros for special buffer gets.

Revision 1.154 / (download) - annotate - [select for diffs], Tue Feb 8 04:47:02 2000 UTC (17 years, 8 months ago) by mostek
Branch: MAIN
Changes since 1.153: +4 -4 lines
Diff to previous 1.153 (colored)

Fix compile problems with DEBUG turned on.

Revision 1.153 / (download) - annotate - [select for diffs], Sun Jan 30 09:59:06 2000 UTC (17 years, 9 months ago) by kenmcd
Branch: MAIN
Changes since 1.152: +12 -17 lines
Diff to previous 1.152 (colored)

Encumbrance review done.
Add copyright and license words consistent with GPL.
Refer to http://fsg.melbourne.sgi.com/reviews/ for details.

There is a slight change in the license terms and conditions words
to go with the copyrights, so most of the files are not getting
new GPL's, just updated versions ... but there are 20-30 more files
here as well.

Revision 1.152 / (download) - annotate - [select for diffs], Thu Jan 13 00:29:10 2000 UTC (17 years, 9 months ago) by cattelan
Branch: MAIN
Changes since 1.151: +5 -3 lines
Diff to previous 1.151 (colored)

XFS_* macro additions

Revision 1.151 / (download) - annotate - [select for diffs], Tue Dec 21 04:22:06 1999 UTC (17 years, 10 months ago) by kenmcd
Branch: MAIN
Changes since 1.150: +24 -1 lines
Diff to previous 1.150 (colored)

Encumbrance review done.  Add copyright and license words consistent with GPL.

Revision 1.150 / (download) - annotate - [select for diffs], Fri Dec 10 20:20:52 1999 UTC (17 years, 10 months ago) by cattelan
Branch: MAIN
Changes since 1.149: +4 -4 lines
Diff to previous 1.149 (colored)

More macros
bwrite -> XFS_bwrite
bawrite -> XFS_bawrite
biodone -> xfs_biodone
bwait -> xfs_bwait
incore -> xfs_incore
incore_relse -> xfs_incore_relse
incore_match -> xfs_incore_match
baread -> xfs_baread

Revision 1.149 / (download) - annotate - [select for diffs], Wed Dec 1 22:57:21 1999 UTC (17 years, 10 months ago) by lord
Branch: MAIN
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored)

remove b_bufsize references

Revision 1.148 / (download) - annotate - [select for diffs], Thu Nov 25 06:29:10 1999 UTC (17 years, 11 months ago) by cattelan
Branch: MAIN
Changes since 1.147: +3 -3 lines
Diff to previous 1.147 (colored)

Last of the b_flags abstraction.

Revision 1.147 / (download) - annotate - [select for diffs], Wed Nov 24 21:48:45 1999 UTC (17 years, 11 months ago) by lord
Branch: MAIN
Changes since 1.146: +6 -6 lines
Diff to previous 1.146 (colored)

hide read_buf and get_buf calls

Revision 1.146 / (download) - annotate - [select for diffs], Tue Nov 23 20:52:36 1999 UTC (17 years, 11 months ago) by lord
Branch: MAIN
Changes since 1.145: +8 -9 lines
Diff to previous 1.145 (colored)

make all xfs buffer access be buftarg_t based

Revision 1.145 / (download) - annotate - [select for diffs], Tue Nov 23 20:09:20 1999 UTC (17 years, 11 months ago) by cattelan
Branch: MAIN
Changes since 1.144: +6 -4 lines
Diff to previous 1.144 (colored)

More b_flags abstractions

Revision 1.144 / (download) - annotate - [select for diffs], Tue Nov 23 16:21:39 1999 UTC (17 years, 11 months ago) by lord
Branch: MAIN
Changes since 1.143: +16 -14 lines
Diff to previous 1.143 (colored)

hide b_bcount and b_blkno

Revision 1.143 / (download) - annotate - [select for diffs], Mon Nov 22 22:58:48 1999 UTC (17 years, 11 months ago) by lord
Branch: MAIN
Changes since 1.142: +19 -19 lines
Diff to previous 1.142 (colored)

virtualize brelse() call

Revision 1.142 / (download) - annotate - [select for diffs], Mon Nov 22 19:39:07 1999 UTC (17 years, 11 months ago) by lord
Branch: MAIN
Changes since 1.141: +40 -40 lines
Diff to previous 1.141 (colored)

virtualize interface to buffer data

Revision 1.141 / (download) - annotate - [select for diffs], Fri Nov 19 21:43:49 1999 UTC (17 years, 11 months ago) by cattelan
Branch: MAIN
Changes since 1.140: +10 -9 lines
Diff to previous 1.140 (colored)

Start of b_flags virtualization 

Revision 1.140 / (download) - annotate - [select for diffs], Thu Nov 18 22:45:37 1999 UTC (17 years, 11 months ago) by lord
Branch: MAIN
Changes since 1.139: +16 -13 lines
Diff to previous 1.139 (colored)

Add macros to virtualize iodone and fsprivate fields.

Revision 1.139 / (download) - annotate - [select for diffs], Wed Nov 17 19:22:23 1999 UTC (17 years, 11 months ago) by lord
Branch: MAIN
Changes since 1.138: +27 -27 lines
Diff to previous 1.138 (colored)

replace struct buf and buf_t references with xfs_buf and xfs_buf_t

Revision 1.138 / (download) - annotate - [select for diffs], Wed Oct 20 22:05:26 1999 UTC (18 years ago) by lord
Branch: MAIN
Changes since 1.137: +19 -7 lines
Diff to previous 1.137 (colored)

Fix recovery print statements for linux, fix an assignment
to an lsn which was not endian independent.

Revision 1.137 / (download) - annotate - [select for diffs], Fri Aug 27 22:00:32 1999 UTC (18 years, 2 months ago) by cattelan
Branch: MAIN
Changes since 1.136: +4 -1 lines
Diff to previous 1.136 (colored)

Header file checkpoint... libsim mkfs xfsdb build\n as well as most of the kernel files

Revision 1.136 / (download) - annotate - [select for diffs], Fri May 14 20:13:13 1999 UTC (18 years, 5 months ago) by lord
Branch: MAIN
Changes since 1.135: +17 -7 lines
Diff to previous 1.135 (colored)

Merge from irix/cxfs-f to irix/irix6.5f
Merge of cxfs-f:irix:15011b created by lord on 05/11/99
  Merge from irix/cxfs to irix/cxfs-f
  Merge of cxfs:irix:13423a created by lord on 04/19/99
  CXFS infrastructure checkin

Revision 1.135 / (download) - annotate - [select for diffs], Sat May 8 13:02:22 1999 UTC (18 years, 5 months ago) by nayak
Branch: MAIN
Changes since 1.134: +1 -1 lines
Diff to previous 1.134 (colored)

Undid my previous change, essentially revert back to version 1.133

Revision 1.134 / (download) - annotate - [select for diffs], Sat May 8 12:27:13 1999 UTC (18 years, 5 months ago) by nayak
Branch: MAIN
Changes since 1.133: +1 -1 lines
Diff to previous 1.133 (colored)

changed a few cmn_err calls to cmn_err_tag with unique sequence numbers.

Revision 1.133 / (download) - annotate - [select for diffs], Thu Feb 4 01:28:30 1999 UTC (18 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.132: +6 -3 lines
Diff to previous 1.132 (colored)

Change includes for v2 directory support.
Vector out v1/v2 directory operations.

Revision 1.132 / (download) - annotate - [select for diffs], Sun Jan 18 08:55:04 1998 UTC (19 years, 9 months ago) by rcc
Branch: MAIN
Changes since 1.131: +3 -3 lines
Diff to previous 1.131 (colored)

added extra argument to xfs_trans_commit for IO_DSYNC speedup.
pv: 555963  rv: lord@cray.com

Revision 1.131 / (download) - annotate - [select for diffs], Mon Jan 12 18:51:00 1998 UTC (19 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.130: +2 -2 lines
Diff to previous 1.130 (colored)

Fix error message in inode recovery (printed one value
incorrectly due to bad format).
rv: rcc@engr
pv: 556403

Revision 1.130 / (download) - annotate - [select for diffs], Thu Dec 18 16:16:56 1997 UTC (19 years, 10 months ago) by lord
Branch: MAIN
Changes since 1.129: +26 -25 lines
Diff to previous 1.129 (colored)

pv: 276922 rv: rcc@engr
Use new xfs error reporting function which prints filesystem name

Revision 1.129 / (download) - annotate - [select for diffs], Thu Oct 16 01:48:05 1997 UTC (20 years ago) by rcc
Branch: MAIN
Changes since 1.128: +5 -5 lines
Diff to previous 1.128 (colored)

526521 - change asserts in log recovery code to return EFSCORRUPTED
instead.  rv: kayuri@engr, pv: 526521

Revision 1.128 / (download) - annotate - [select for diffs], Fri Sep 19 09:37:02 1997 UTC (20 years, 1 month ago) by rcc
Branch: MAIN
Changes since 1.127: +24 -13 lines
Diff to previous 1.127 (colored)

522678 - allow read-only mounts to succeed only if we don't have to
run log recovery (fs was cleanly unmounted).  Throw away unnecessary
*clean parameters

Revision 1.127 / (download) - annotate - [select for diffs], Fri Sep 12 17:45:52 1997 UTC (20 years, 1 month ago) by lord
Branch: MAIN
Changes since 1.126: +11 -8 lines
Diff to previous 1.126 (colored)

Add buffer targeting stuff

Revision 1.126 / (download) - annotate - [select for diffs], Sat Sep 6 00:52:46 1997 UTC (20 years, 1 month ago) by rcc
Branch: MAIN
Changes since 1.125: +4 -1 lines
Diff to previous 1.125 (colored)

383270 - fix was lost in ficus->kudzu merge (keep logprint from
trashing the log)

Revision 1.125 / (download) - annotate - [select for diffs], Wed Aug 20 01:27:20 1997 UTC (20 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.124: +5 -3 lines
Diff to previous 1.124 (colored)

Cast daddr_t blkno to uint64, turning % operator into a masking operation
from a division.

Revision 1.124 / (download) - annotate - [select for diffs], Tue Aug 12 23:26:21 1997 UTC (20 years, 2 months ago) by rcc
Branch: MAIN
Changes since 1.123: +58 -34 lines
Diff to previous 1.123 (colored)

513540 - make sure we check for the same corruptions on the inode read path
that we do on the inode flush path.  Also turn deliberate panics into
force-unmounts and make printf's more useful

Revision 1.123 / (download) - annotate - [select for diffs], Wed Jun 25 00:36:15 1997 UTC (20 years, 4 months ago) by sup
Branch: MAIN
Changes since 1.122: +7 -1 lines
Diff to previous 1.122 (colored)

502702 xfs_qm_dqcheck can get ENOPKG. Don't abort mount when
that happens!

Revision 1.122 / (download) - annotate - [select for diffs], Wed Apr 30 22:25:49 1997 UTC (20 years, 6 months ago) by sup
Branch: MAIN
Changes since 1.121: +1 -27 lines
Diff to previous 1.121 (colored)

minor error handling change.

Revision 1.121 / (download) - annotate - [select for diffs], Sat Mar 29 03:16:01 1997 UTC (20 years, 7 months ago) by sup
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored)

Call xfs_trans_cancel with correct flags

Revision 1.120 / (download) - annotate - [select for diffs], Fri Mar 28 01:54:49 1997 UTC (20 years, 7 months ago) by sup
Branch: MAIN
Changes since 1.119: +34 -2 lines
Diff to previous 1.119 (colored)

disk error handling changes

Revision 1.119 / (download) - annotate - [select for diffs], Thu Mar 13 05:57:07 1997 UTC (20 years, 7 months ago) by sup
Branch: MAIN
Changes since 1.118: +15 -14 lines
Diff to previous 1.118 (colored)

xlog_debug global variable is a DEBUG/SIM only now.
This was an old debugging stuff that we forgot to clean up.
Also made XLOG_NOLOG to build again so that we can
actually disable the log to measure its performance impact.
xlog_debug __is__ still being used by the simulation code.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Feb 1 01:50:52 1997 UTC (20 years, 8 months ago) by rcc
Branch: MAIN
Changes since 1.117: +8 -9 lines
Diff to previous 1.117 (colored)

460982 - keep recovery code from going beyond the beginning of
a large buffer looking for log header records

Revision 1.117 / (download) - annotate - [select for diffs], Mon Jan 27 22:05:03 1997 UTC (20 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.116: +3 -1 lines
Diff to previous 1.116 (colored)

Ifdef out xlog_recover_iodone (error recovery code) for simulation.

Revision 1.116 / (download) - annotate - [select for diffs], Sat Jan 25 02:55:24 1997 UTC (20 years, 9 months ago) by sup
Branch: MAIN
Changes since 1.115: +77 -85 lines
Diff to previous 1.115 (colored)

First cut of XFS I/O error handling changes.

Revision 1.115 / (download) - annotate - [select for diffs], Mon Jan 6 03:55:29 1997 UTC (20 years, 9 months ago) by montep
Branch: MAIN
Changes since 1.114: +2 -1 lines
Diff to previous 1.114 (colored)

merge ficus into kudzu (1.111 ... 1.111.1.2)
> ----------------------------
> revision 1.111.1.2
> date: 1996/12/16 23:24:17;  author: rcc;  state: Exp;  lines: +18 -3
> 383270 - keep logprint from executing the kernel recovery log
> zeroing code
> ----------------------------
> revision 1.111.1.1
> date: 1996/12/14 01:44:31;  author: rcc;  state: Exp;  lines: +17 -8
> 446511 - choke off all disk I/O for read-only mounts of cleanly
> unmounted filesystems
> =============================================================================

Revision 1.114 / (download) - annotate - [select for diffs], Mon Dec 16 23:37:14 1996 UTC (20 years, 10 months ago) by rcc
Branch: MAIN
Changes since 1.113: +17 -2 lines
Diff to previous 1.113 (colored)

383270 - keep logprint from executing the kernel-side log recovery
log zeroing code

Revision 1.113 / (download) - annotate - [select for diffs], Sat Dec 14 01:44:32 1996 UTC (20 years, 10 months ago) by rcc
Branch: MAIN
Changes since 1.112: +16 -8 lines
Diff to previous 1.112 (colored)

446511 - choke off all disk I/O for read-only mounts of cleanly
unmounted filesystems

Revision 1.112 / (download) - annotate - [select for diffs], Fri Dec 13 00:34:25 1996 UTC (20 years, 10 months ago) by sup
Branch: MAIN
Changes since 1.111: +133 -600 lines
Diff to previous 1.111 (colored)

Put all the logprint specific code into xfs_log_print.c to be used only by
cmd/xfs/logprint and not the kernel
(RFE 422609)

Revision 1.111 / (download) - annotate - [select for diffs], Wed Nov 6 01:47:56 1996 UTC (20 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.110: +7 -1 lines
Diff to previous 1.110 (colored)

Ifdef out for now the call to xfs_dir_shortform_validate_ondisk in
xlog_recover_do_inode_trans: there are transactions where we just log
the new inode core and not the fork data, since the inode is now free,
and these checks will fail if the inode is no longer a directory.
(bug 441063)

Revision 1.110 / (download) - annotate - [select for diffs], Tue Nov 5 02:39:16 1996 UTC (20 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.109: +2 -10 lines
Diff to previous 1.109 (colored)

Missed part of this change for the ficus tree version.

Revision 1.109 / (download) - annotate - [select for diffs], Mon Nov 4 01:05:01 1996 UTC (20 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.108: +12 -3 lines
Diff to previous 1.108 (colored)

Print buf log item flags (xfs_logprint only).  For buf log items
match on blkno and len, instead of matching on blkno and asserting
that len matches, since it's legal to invalidate on two different
lengths in the same recovery.  Bug 440477.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Oct 25 02:16:27 1996 UTC (21 years ago) by rcc
Branch: MAIN
Changes since 1.107: +6 -1 lines
Diff to previous 1.107 (colored)

add inode buffer checking - check to make sure we aren't replaying
a zero onto the agi unlinked field of an inode.  panic if we are.

Revision 1.107 / (download) - annotate - [select for diffs], Sat Aug 17 02:52:24 1996 UTC (21 years, 2 months ago) by sup
Branch: MAIN
Changes since 1.106: +44 -22 lines
Diff to previous 1.106 (colored)

414414 Fix rootfs quota bug.
We won't have the qflags set when recovering quota records, so
we have to be more careful. We can't look at the SB either,
because we haven't recovered it yet. So be a bit more clever...

Revision 1.106 / (download) - annotate - [select for diffs], Tue Aug 13 03:26:31 1996 UTC (21 years, 2 months ago) by ajs
Branch: MAIN
Changes since 1.105: +6 -1 lines
Diff to previous 1.105 (colored)

Add code to print where log records occur in xfs_logprint
during transaction mode log printing.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Aug 2 20:40:05 1996 UTC (21 years, 2 months ago) by sup
Branch: MAIN
Changes since 1.104: +68 -1 lines
Diff to previous 1.104 (colored)

Added dquot logprint functions.

Revision 1.104 / (download) - annotate - [select for diffs], Thu Aug 1 21:19:49 1996 UTC (21 years, 2 months ago) by jeffs
Branch: MAIN
Changes since 1.103: +5 -6 lines
Diff to previous 1.103 (colored)

Use new %V option to print dev_t w/o local dev_to_name and buffer.

Revision 1.103 / (download) - annotate - [select for diffs], Wed Jul 31 22:13:12 1996 UTC (21 years, 3 months ago) by jasonh
Branch: MAIN
Changes since 1.102: +5 -5 lines
Diff to previous 1.102 (colored)

change relevant cmn_err() calls with argument CE_WARN to CE_ALERT
	  after discussion with doucette.  this allows these messages to be
	  passed up to the desktop so the user can be notified about these
	  errors.

Revision 1.102 / (download) - annotate - [select for diffs], Fri Jul 26 21:19:52 1996 UTC (21 years, 3 months ago) by alexp
Branch: MAIN
Changes since 1.101: +8 -8 lines
Diff to previous 1.101 (colored)

Convert AIL_LOCK from mutex_spinlock to mutex under "ifdef INTR_KTHREADS"

Revision 1.101 / (download) - annotate - [select for diffs], Tue Jul 23 23:01:45 1996 UTC (21 years, 3 months ago) by limes
Branch: MAIN
Changes since 1.100: +5 -3 lines
Diff to previous 1.100 (colored)

fix compiler warning

Revision 1.100 / (download) - annotate - [select for diffs], Tue Jul 16 22:14:15 1996 UTC (21 years, 3 months ago) by ajs
Branch: MAIN
Changes since 1.99: +13 -15 lines
Diff to previous 1.99 (colored)

399204 Dynamically size the buffer pointing to log iovecs rather than
going with the very large maximum size all the time.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Jul 11 05:10:13 1996 UTC (21 years, 3 months ago) by sup
Branch: MAIN
Changes since 1.98: +20 -5 lines
Diff to previous 1.98 (colored)

dqcheck flags changed again.
Also do a simple sanity check before copying in a dquot buffer.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Jun 25 17:57:21 1996 UTC (21 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.97: +2 -1 lines
Diff to previous 1.97 (colored)

Add shortform directory validation code.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Jun 23 11:36:46 1996 UTC (21 years, 4 months ago) by sup
Branch: MAIN
Changes since 1.96: +5 -3 lines
Diff to previous 1.96 (colored)

args to xfs_qm_check changed.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Jun 14 08:32:11 1996 UTC (21 years, 4 months ago) by sup
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

quota flags XFS_MOUNT_*DQ_* renamed XFS_*QUOTA_*.

Revision 1.95 / (download) - annotate - [select for diffs], Wed Jun 12 01:25:08 1996 UTC (21 years, 4 months ago) by sup
Branch: MAIN
Changes since 1.94: +5 -12 lines
Diff to previous 1.94 (colored)

qlf_boffset is the actuall byte offset now.
Also took out some leftover DEBUG messages from quota code.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Jun 4 21:26:28 1996 UTC (21 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored)

Use new superblock version macros (bug 385316).

Revision 1.93 / (download) - annotate - [select for diffs], Wed May 29 17:10:56 1996 UTC (21 years, 5 months ago) by sup
Branch: MAIN
Changes since 1.92: +8 -9 lines
Diff to previous 1.92 (colored)

Cleaned up some quota debugging messages, added new trans types to
xlog_recover_print_trans_head().

Revision 1.92 / (download) - annotate - [select for diffs], Thu May 16 03:58:03 1996 UTC (21 years, 5 months ago) by sup
Branch: MAIN
Changes since 1.91: +8 -9 lines
Diff to previous 1.91 (colored)

Took out  debug messages inadvertently left behind, that caused non-DEBUG builds to fail

Revision 1.91 / (download) - annotate - [select for diffs], Wed May 15 22:05:24 1996 UTC (21 years, 5 months ago) by sup
Branch: MAIN
Changes since 1.90: +198 -6 lines
Diff to previous 1.90 (colored)

quota changes.
Added code to handle DQUOT and QUOTAOFF log items.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Apr 12 21:57:52 1996 UTC (21 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

Fix a printf (of agf structures in logprint) to have the right field;
we were printing agf_roots twice and agf_levels not at all.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Apr 12 21:14:31 1996 UTC (21 years, 6 months ago) by huy
Branch: MAIN
Changes since 1.88: +4 -4 lines
Diff to previous 1.88 (colored)

changes to allow stacking of different vfs behaviors on the same mount point.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Feb 21 05:00:32 1996 UTC (21 years, 8 months ago) by ack
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

auto-merge of changes from /proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.91
> date: 1996/02/20 23:40:06;  author: ajs;  state: Exp;  lines: +2 -2
> 350478 Make the inode cluster size variable.
> =============================================================================

Revision 1.87 / (download) - annotate - [select for diffs], Fri Feb 16 21:37:35 1996 UTC (21 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

Use XFS_ERROR macro where it was missing in several places.

Revision 1.86 / (download) - annotate - [select for diffs], Wed Feb 14 05:51:31 1996 UTC (21 years, 8 months ago) by ack
Branch: MAIN
Changes since 1.85: +48 -1 lines
Diff to previous 1.85 (colored)

auto-merge of changes from /proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.90
> date: 1996/02/09 02:26:01;  author: ajs;  state: Exp;  lines: +48 -1
> 344625 Add non-debug checks to find file system
> corruption bug.
> =============================================================================

Revision 1.85 / (download) - annotate - [select for diffs], Fri Feb 9 01:14:23 1996 UTC (21 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

Move the include of sys/debug.h under #define _KERNEL for compile errors.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Dec 30 03:12:05 1995 UTC (21 years, 10 months ago) by ack
Branch: MAIN
Changes since 1.83: +10 -4 lines
Diff to previous 1.83 (colored)

auto-merge of changes from /proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.89
> date: 1995/12/15 00:54:44;  author: yohn;  state: Exp;  lines: +10 -4
> changed debug recover-log warnings to notices
> =============================================================================

Revision 1.83 / (download) - annotate - [select for diffs], Thu Nov 9 04:15:07 1995 UTC (21 years, 11 months ago) by jwag
Branch: MAIN
Changes since 1.82: +1 -2 lines
Diff to previous 1.82 (colored)

cleaned out useless headers.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Oct 17 10:11:57 1995 UTC (22 years ago) by ack
Branch: MAIN
Changes since 1.81: +21 -1 lines
Diff to previous 1.81 (colored)

auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.88
> date: 1995/10/13 16:54:21;  author: ajs;  state: Exp;  lines: +22 -2
> Make mount messages go only to the syslog on non-DEBUG kernels.
> ----------------------------
> revision 1.87
> date: 1995/10/13 00:28:34;  author: doucette;  state: Exp;  lines: +2 -1
> Include sys/uuid.h since the uuid_t definition has been moved out
> of sys/types.h for DCE.
> =============================================================================

Revision 1.81 / (download) - annotate - [select for diffs], Tue Oct 10 10:45:46 1995 UTC (22 years ago) by ack
Branch: MAIN
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored)

auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.86
> date: 1995/10/05 01:04:52;  author: ajs;  state: Exp;  lines: +4 -4
> 310776 Remove references to the old uuid inode field.
> ----------------------------
> revision 1.85
> date: 1995/10/04 00:47:31;  author: ajs;  state: Exp;  lines: +4 -4
> 310776 Back out last change.
> ----------------------------
> revision 1.84
> date: 1995/10/03 23:06:25;  author: ajs;  state: Exp;  lines: +5 -5
> 310776 Remove references to the old uuid inode field.
> =============================================================================

Revision 1.80 / (download) - annotate - [select for diffs], Tue Oct 3 04:19:39 1995 UTC (22 years ago) by ack
Branch: MAIN
Changes since 1.79: +31 -6 lines
Diff to previous 1.79 (colored)

auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.83
> date: 1995/09/30 03:18:20;  author: curtis;  state: Exp;  lines: +2 -2
> The amount of data logged for an in-inode attribute fork can be equal to
> the entire in-inode attribute fork.
> ----------------------------
> revision 1.82
> date: 1995/09/29 20:48:36;  author: ajs;  state: Exp;  lines: +2 -2
> Fix typo which worked but looked funny from last checkin.
> ----------------------------
> revision 1.81
> date: 1995/09/29 20:06:57;  author: ajs;  state: Exp;  lines: +32 -7
> 253058 - Don't clear over unmount records, and set the last sync
> lsn to be past the unmount record on recovering a clean unmount.
> =============================================================================

Revision 1.79 / (download) - annotate - [select for diffs], Fri Sep 22 09:47:45 1995 UTC (22 years, 1 month ago) by ack
Branch: MAIN
Changes since 1.78: +232 -9 lines
Diff to previous 1.78 (colored)

auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.80
> date: 1995/09/20 00:55:45;  author: ajs;  state: Exp;  lines: +232 -9
> 253058 - Add code to handle when the unmount record is
> split around the end of the log.  Also add code to clobber
> any partial log writes beyond the head of the log when
> recovering the file system.
> =============================================================================

Revision 1.78 / (download) - annotate - [select for diffs], Thu Sep 14 07:09:01 1995 UTC (22 years, 1 month ago) by ack
Branch: MAIN
Changes since 1.77: +97 -35 lines
Diff to previous 1.77 (colored)

auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.79
> date: 1995/09/09 03:40:26;  author: ajs;  state: Exp;  lines: +96 -34
> 253058 Fix a bug in the recovery code that shows up with
> small logs.  We now look backwards for specific cycle
> numbers to validate where we are in the log.  I've also
> added many comments in that section explaining exactly what
> we're looking for.
> =============================================================================

Revision 1.77 / (download) - annotate - [select for diffs], Tue Sep 5 17:35:27 1995 UTC (22 years, 1 month ago) by len
Branch: MAIN
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored)

Use new dev_to_name function to display canonical device name.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Aug 28 06:50:30 1995 UTC (22 years, 2 months ago) by ack
Branch: MAIN
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.78
> date: 1995/08/24 21:44:38;  author: ajs;  state: Exp;  lines: +3 -2
> Fix use of last_ino in xlog_recover_process_iunlinks.
> =============================================================================

Revision 1.75 / (download) - annotate - [select for diffs], Wed Aug 16 23:21:16 1995 UTC (22 years, 2 months ago) by nawaf
Branch: MAIN
Changes since 1.74: +114 -66 lines
Diff to previous 1.74 (colored)

auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.77
> date: 1995/08/16 05:46:31;  author: doucette;  state: Exp;  lines: +4 -1
> Add includes of xfs_macros.h, xfs_bit.h, xfs_ialloc_btree.h.
> ----------------------------
> revision 1.76
> date: 1995/08/16 00:38:59;  author: rcc;  state: Exp;  lines: +87 -66
> more fullwarn cleanup, change XFS_LI_OBUF to XFS_LI_5_3_BUF, make
> print format of old items consistent
> ----------------------------
> revision 1.75
> date: 1995/08/15 18:29:49;  author: rcc;  state: Exp;  lines: +13 -0
> make it build -DDEBUG again
> ----------------------------
> revision 1.74
> date: 1995/08/15 02:24:32;  author: rcc;  state: Exp;  lines: +27 -16
> -fullwarn cleanup (mostly for sim code) and added range-checking
> asserts
> =============================================================================

Revision 1.74 / (download) - annotate - [select for diffs], Thu Aug 10 06:20:17 1995 UTC (22 years, 2 months ago) by sshong
Branch: MAIN
Changes since 1.73: +106 -71 lines
Diff to previous 1.73 (colored)

auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_log_recover.c,v
> ----------------------------
> revision 1.73
> date: 1995/08/08 01:04:49;  author: rcc;  state: Exp;  lines: +104 -69
> 284911 - handle the rev'ed inode and buffer log item formats.  change
> the recovery code to handle odd-sized inode buffers which allows changing
> the inode cluster size in the future without having to rev the inode
> log format again.  also fixed up an error handling case when detecting
> a log with unknown log items in it.
> =============================================================================

Revision 1.73 / (download) - annotate - [select for diffs], Mon Jul 10 17:12:58 1995 UTC (22 years, 3 months ago) by len
Branch: MAIN
Changes since 1.72: +10 -3 lines
Diff to previous 1.72 (colored)

Reflect changes in [bc]devsw handling.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jun 22 23:23:44 1995 UTC (22 years, 4 months ago) by rcc
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

changed to use new agi header good version macros

Revision 1.71 / (download) - annotate - [select for diffs], Thu Jun 22 18:41:13 1995 UTC (22 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.70: +12 -6 lines
Diff to previous 1.70 (colored)

Fix inode recovery for the case where it is a dev node
and attributes have been logged.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Jun 21 23:12:41 1995 UTC (22 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.69: +69 -8 lines
Diff to previous 1.69 (colored)

261533 Add some code to detect and deal with bogus entries
in the unlinked inode lists.  We now just blow away the
list if we find a bad entry.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Jun 14 18:36:09 1995 UTC (22 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.68: +1 -1 lines
Diff to previous 1.68 (colored)

Fix bug in xlog_recover_print_buffer (which generated a compiler warning),
in the support for 64-bit block numbers.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Jun 8 18:35:53 1995 UTC (22 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.67: +3 -2 lines
Diff to previous 1.67 (colored)

Add btree block and inode readahead for bulkstat.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jun 7 21:47:19 1995 UTC (22 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.66: +1 -1 lines
Diff to previous 1.66 (colored)

Fix the #if in the check for rejecting large filesystems
in small kernels.  It has to be #if !XFS_BIG_FILESYSTEMS.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Jun 7 21:41:07 1995 UTC (22 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.65: +128 -48 lines
Diff to previous 1.65 (colored)

Add support for new buf log item with a 64 bit blkno.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Jun 7 00:24:50 1995 UTC (22 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.64: +23 -0 lines
Diff to previous 1.64 (colored)

270466 Look for bogus EFIs in the log and ignore them.

Revision 1.64 / (download) - annotate - [select for diffs], Thu May 25 23:22:55 1995 UTC (22 years, 5 months ago) by ajs
Branch: MAIN
Changes since 1.63: +9 -9 lines
Diff to previous 1.63 (colored)

Fix the code for handling the attribute fork now
that it can actually be tested.

Revision 1.63 / (download) - annotate - [select for diffs], Thu May 25 18:07:49 1995 UTC (22 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

Add macros XFS_DFORK_DPTR, XFS_DFORK_APTR for when whichfork is constant,
and use them in a few places.  This makes the compiler happier.

Revision 1.62 / (download) - annotate - [select for diffs], Thu May 11 01:23:18 1995 UTC (22 years, 5 months ago) by ajs
Branch: MAIN
Changes since 1.61: +17 -17 lines
Diff to previous 1.61 (colored)

272139 - Change xFS to XFS

Revision 1.61 / (download) - annotate - [select for diffs], Thu May 11 00:42:40 1995 UTC (22 years, 5 months ago) by ajs
Branch: MAIN
Changes since 1.60: +120 -32 lines
Diff to previous 1.60 (colored)

Add support for recovering the inode attribute fork.

Revision 1.60 / (download) - annotate - [select for diffs], Tue May 9 21:21:47 1995 UTC (22 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.59: +12 -11 lines
Diff to previous 1.59 (colored)

Add support for in-core and on-disk inodes with both data and
attribute forks, or just a data fork.  Change all the data structures
and macros used to manipulate the variable portion of the inode, to
support this feature.

Revision 1.59 / (download) - annotate - [select for diffs], Mon May 8 19:59:13 1995 UTC (22 years, 5 months ago) by curtis
Branch: MAIN
Changes since 1.58: +3 -2 lines
Diff to previous 1.58 (colored)

Change include sequence as a result of directory/attribute code restructuring.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Apr 26 22:49:50 1995 UTC (22 years, 6 months ago) by ajs
Branch: MAIN
Changes since 1.57: +1 -0 lines
Diff to previous 1.57 (colored)

Fixing up recovery from disk errors.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Apr 13 03:15:19 1995 UTC (22 years, 6 months ago) by ajs
Branch: MAIN
Changes since 1.56: +34 -16 lines
Diff to previous 1.56 (colored)

First cut at disk error handling

Revision 1.56 / (download) - annotate - [select for diffs], Fri Apr 7 04:50:45 1995 UTC (22 years, 6 months ago) by miken
Branch: MAIN
Changes since 1.55: +97 -58 lines
Diff to previous 1.55 (colored)

Fix boundary condition problem by fixing xlog_find_verify_cycle().  It needs
to be able to test for both == and != depending on whether a search is
coming from the middle or end of the log vs. the beginning.
Also make logprint not print out transactions twice

Revision 1.55 / (download) - annotate - [select for diffs], Fri Mar 31 20:05:41 1995 UTC (22 years, 7 months ago) by doucette
Branch: MAIN
Changes since 1.54: +23 -22 lines
Diff to previous 1.54 (colored)

Include xfs header files through sys/fs/xfs_... so logprint is
a little easier to compile.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Mar 21 23:52:18 1995 UTC (22 years, 7 months ago) by miken
Branch: MAIN
Changes since 1.53: +8 -10 lines
Diff to previous 1.53 (colored)

1.  Rearrange include files to get correct sizes of structures
2. Eliminate warnings

Revision 1.53 / (download) - annotate - [select for diffs], Thu Mar 9 04:02:14 1995 UTC (22 years, 7 months ago) by ajs
Branch: MAIN
Changes since 1.52: +20 -7 lines
Diff to previous 1.52 (colored)

Change to deal with new AIL locking scheme,
and also with efi's being zone allocated.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Feb 23 01:06:12 1995 UTC (22 years, 8 months ago) by ajs
Branch: MAIN
Changes since 1.51: +4 -0 lines
Diff to previous 1.51 (colored)

Make xfs_logprint compile again by putting ifndef SIM
around the new calls to bp_dcache_wbinval().

Revision 1.51 / (download) - annotate - [select for diffs], Wed Feb 22 01:45:40 1995 UTC (22 years, 8 months ago) by ajs
Branch: MAIN
Changes since 1.50: +2 -0 lines
Diff to previous 1.50 (colored)

259982 - Add cache flushing calls for when we re-read buffers
during recovery.  This is necessary now that the buffer cache
uses cached memory.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Feb 18 00:05:33 1995 UTC (22 years, 8 months ago) by ajs
Branch: MAIN
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored)

Fix the printf of some of the fields in the inode.
It was using the wrong %XXX for the size of a few
of the fields.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Feb 9 03:16:09 1995 UTC (22 years, 8 months ago) by ajs
Branch: MAIN
Changes since 1.48: +57 -13 lines
Diff to previous 1.48 (colored)

259540 - Change log recovery to deal with the new minimum inode
buffer size.  This requires dealing with the new inode log item
type, and properly disposing of buffers needed to recover the old
ones.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Jan 31 18:59:28 1995 UTC (22 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.47: +17 -21 lines
Diff to previous 1.47 (colored)

Warning elimination: remove unused variables, tag some routines ARGSUSED,
add return statements, ifdef out some code.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Dec 22 00:38:54 1994 UTC (22 years, 10 months ago) by tap
Branch: MAIN
Changes since 1.46: +7 -4 lines
Diff to previous 1.46 (colored)

cleanup code so file will compile without warnings.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Dec 14 23:17:48 1994 UTC (22 years, 10 months ago) by miken
Branch: MAIN
Changes since 1.45: +1 -1 lines
Diff to previous 1.45 (colored)

wrap cmn_err(CE_NOTE) with defined(_KERNEL)

Revision 1.45 / (download) - annotate - [select for diffs], Wed Dec 14 21:53:53 1994 UTC (22 years, 10 months ago) by miken
Branch: MAIN
Changes since 1.44: +38 -23 lines
Diff to previous 1.44 (colored)

1.  Fix bug where cycle number needs to get bumped when the last good log
	record starts at the end of the physical log.  It ends at the end
	of the physical log or spans the end.
2.  The second bug shows up when a log record spans the end of the log.
	Fix 1.37 wasn't correct; it broke 1.36.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Dec 13 00:59:04 1994 UTC (22 years, 10 months ago) by miken
Branch: MAIN
Changes since 1.43: +27 -8 lines
Diff to previous 1.43 (colored)

When the head block is 0, checking code in xlog_find_head() needs
to use logBBsize instead.  In a circular file, block zero is the same
as block N, where N is the number of blocks in the log.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Dec 5 18:25:01 1994 UTC (22 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

Add assert that xfs_iget doesn't return null.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Nov 26 23:41:59 1994 UTC (22 years, 11 months ago) by miken
Branch: MAIN
Changes since 1.41: +20 -5 lines
Diff to previous 1.41 (colored)

1.  Refuse to mount volume when someone has mkfs'ed the log
2.  Revise mount messages from kernel.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Nov 15 04:21:39 1994 UTC (22 years, 11 months ago) by miken
Branch: MAIN
Changes since 1.40: +13 -8 lines
Diff to previous 1.40 (colored)

Move "ending" recovery statement to correctly print out after all
recovery has completed.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Nov 9 01:00:40 1994 UTC (22 years, 11 months ago) by ajs
Branch: MAIN
Changes since 1.39: +31 -13 lines
Diff to previous 1.39 (colored)

Separate out the processing of the incomplete extent free items
and the iunlink lists into a separate routine from the rest of
recovery.  This is necessary so that we can return to the mount
code after replaying the log and read in the real-time bitmap
inodes before processing the efis and iunlinks.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Nov 3 02:42:15 1994 UTC (22 years, 11 months ago) by ajs
Branch: MAIN
Changes since 1.38: +390 -77 lines
Diff to previous 1.38 (colored)

Implement 2 pass recovery and buffer cancel record handling.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Oct 29 02:00:18 1994 UTC (23 years ago) by miken
Branch: MAIN
Changes since 1.37: +1 -1 lines
Diff to previous 1.37 (colored)

change xlog_recover_print-data to non-static

Revision 1.37 / (download) - annotate - [select for diffs], Mon Oct 24 22:11:59 1994 UTC (23 years ago) by miken
Branch: MAIN
Changes since 1.36: +6 -1 lines
Diff to previous 1.36 (colored)

If a log had very little in it, recovery scanned too much data.  This hurts
when the log is enormous.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Oct 14 19:12:56 1994 UTC (23 years ago) by miken
Branch: MAIN
Changes since 1.35: +159 -86 lines
Diff to previous 1.35 (colored)

1.  Fix xlog_find_verify_log_record and xlog_find_head to search past
	the beginning of the log when the last valid LR wrapped.
2.  Another KERNEL -> _KERNEL change.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Oct 13 18:21:07 1994 UTC (23 years ago) by ajs
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

Use #ifdef _KERNEL rather than #ifdef KERNEL.
KERNEL is not defined in the kernel.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Oct 11 22:06:27 1994 UTC (23 years ago) by doucette
Branch: MAIN
Changes since 1.33: +5 -1 lines
Diff to previous 1.33 (colored)

#ifndef SIM code not needed for programs linking with libsim.a, to
make them smaller.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Oct 7 21:14:43 1994 UTC (23 years ago) by miken
Branch: MAIN
Changes since 1.32: +305 -22 lines
Diff to previous 1.32 (colored)

Implement transaction types

Revision 1.32 / (download) - annotate - [select for diffs], Wed Sep 28 23:04:48 1994 UTC (23 years, 1 month ago) by miken
Branch: MAIN
Changes since 1.31: +12 -2 lines
Diff to previous 1.31 (colored)

Changes to allow for better log performance and expandability.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Sep 28 15:11:08 1994 UTC (23 years, 1 month ago) by ajs
Branch: MAIN
Changes since 1.30: +154 -26 lines
Diff to previous 1.30 (colored)

Change xlog_recover_do_buffer_trans() to differentiate between
logged buffers containing inodes and those not and to handle hte
inode buffers differently.  We now only recover the di_next_unlinked
fields from buffers full of inodes.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Sep 28 03:28:36 1994 UTC (23 years, 1 month ago) by miken
Branch: MAIN
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

pointer was not getting incremented in xlog_recover_unlink_tid

Revision 1.29 / (download) - annotate - [select for diffs], Fri Sep 23 16:45:34 1994 UTC (23 years, 1 month ago) by ajs
Branch: MAIN
Changes since 1.28: +2 -4 lines
Diff to previous 1.28 (colored)

Use new log reservation count in iunlink recovery.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Sep 9 23:42:19 1994 UTC (23 years, 1 month ago) by miken
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

Recovery needs to use max block size not NBPP

Revision 1.27 / (download) - annotate - [select for diffs], Thu Sep 1 23:37:39 1994 UTC (23 years, 1 month ago) by doucette
Branch: MAIN
Changes since 1.26: +3 -1 lines
Diff to previous 1.26 (colored)

Remove stuff that's only needed in real kernels or real filesystem
simulation to make the library (and mkfs) smaller.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Aug 27 02:25:06 1994 UTC (23 years, 2 months ago) by miken
Branch: MAIN
Changes since 1.25: +265 -124 lines
Diff to previous 1.25 (colored)

1.  Handle read errors from the log on recovery.  We will now refuse to
	mount the filesystem rather than panicing.
2.  Many of the routines will still panic when built DEBUG
3.  Checksumming code will only print out one warning message now.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Aug 25 03:27:12 1994 UTC (23 years, 2 months ago) by ajs
Branch: MAIN
Changes since 1.24: +2 -0 lines
Diff to previous 1.24 (colored)

Add call to di_next_unlinked checking code during inode recovery.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Aug 11 19:53:25 1994 UTC (23 years, 2 months ago) by ajs
Branch: MAIN
Changes since 1.23: +50 -10 lines
Diff to previous 1.23 (colored)

Fix the loop in xlog_recover_process_efis()
to stop when it finds something other than
an efi in the AIL.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 1 23:14:51 1994 UTC (23 years, 2 months ago) by miken
Branch: MAIN
Changes since 1.22: +18 -2 lines
Diff to previous 1.22 (colored)

Add checksumming to verify log recovery hasn't lost any bits.  This
is done only when compiling DEBUG.  Log records are checksummed,
not regions.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jul 29 02:50:59 1994 UTC (23 years, 3 months ago) by miken
Branch: MAIN
Changes since 1.21: +1 -0 lines
Diff to previous 1.21 (colored)

Correct finish re-setting tail_blk

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 28 21:56:40 1994 UTC (23 years, 3 months ago) by miken
Branch: MAIN
Changes since 1.20: +39 -7 lines
Diff to previous 1.20 (colored)

1.  log->l_last_sync_lsn gets inited to the lsn of the last valid
	LR on disk rather than the tail lsn.  Once recovery has
	passed the parsing stage and we sync the buffers and inodes
	to disk, we can update the tail to be either the tail in the
	AIL or the last_sync_lsn.
2.  Call xlog_assign_tail_lsn() after bflush() during recovery

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jul 27 23:56:29 1994 UTC (23 years, 3 months ago) by miken
Branch: MAIN
Changes since 1.19: +29 -20 lines
Diff to previous 1.19 (colored)

Fix last problems created by last checkin.  Repeat recovery wasn't
working properly.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jul 26 05:14:19 1994 UTC (23 years, 3 months ago) by miken
Branch: MAIN
Changes since 1.18: +109 -37 lines
Diff to previous 1.18 (colored)

1.  xlog_bread() now returns errors rather than panicing
2.  functions now return errors rather than being voids
3.  some checksumming code.  not used yet

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jul 23 01:27:56 1994 UTC (23 years, 3 months ago) by miken
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Off by one error in verifying the last good block in the log

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 27 23:53:09 1994 UTC (23 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.16: +6 -0 lines
Diff to previous 1.16 (colored)

Remove the ASSERTs about superblock vs agf counters
until we add the code to account for the agf btree blocks.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jun 15 23:48:20 1994 UTC (23 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (colored)

Make sure to flush the right device during recovery.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jun 14 22:34:48 1994 UTC (23 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.14: +71 -1 lines
Diff to previous 1.14 (colored)

Add xlog_recover_check_summary() debugging function to
check that summary counters are consistent with agf and agi
counters after recovery.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 14 22:00:40 1994 UTC (23 years, 4 months ago) by miken
Branch: MAIN
Changes since 1.13: +0 -1 lines
Diff to previous 1.13 (colored)

Eliminate uuid.h again

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 13 23:29:14 1994 UTC (23 years, 4 months ago) by miken
Branch: MAIN
Changes since 1.12: +0 -9 lines
Diff to previous 1.12 (colored)

Eliminate print messages

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jun 13 07:31:21 1994 UTC (23 years, 4 months ago) by miken
Branch: MAIN
Changes since 1.11: +444 -100 lines
Diff to previous 1.11 (colored)

1.  Add lsn to recovery trans structure
2.  Remove code to handle iunlinks in the log; they are now elsewhere on disk.
	iunlink transactions are no longer in the log.  The iunlink Q has
	been removed earlier.  Special code now handles iunlinks.  They are
	handled after buffers, inodes and extents are done.
3.  Fix bug in buffer recovery.  Need to call new function xfs_buf_item_
3.  Fix bug in buffer recovery.  Need to call new function xfs_buf_item_
	xfs_buf_item_contig_bits() rather than xfs_buf_item_bits().
4.  Re-do extent recovery items.  Rather than putting them in their own Q,
	extents are put in the same Q as buffers and inodes.  They are still
	placed in the back with inodes.  Initial processing places EFIs
	back in the AIL, so EFDs can remove them.  EFIs without EFDs need
	to be redone after buffers and inodes.
5.  Fix recovery which does a log wrap.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 9 22:32:12 1994 UTC (23 years, 4 months ago) by miken
Branch: MAIN
Changes since 1.10: +1 -9 lines
Diff to previous 1.10 (colored)

remove iunlink items

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 9 19:38:55 1994 UTC (23 years, 4 months ago) by wei_hu
Branch: MAIN
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored)

Eliminate include of <sys/uuid.h>.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jun 9 01:38:08 1994 UTC (23 years, 4 months ago) by miken
Branch: MAIN
Changes since 1.8: +77 -44 lines
Diff to previous 1.8 (colored)

1.  Call bdwrite() instead of bwrite();  things are much faster!
2.  Add code to perform recovery when the log wraps around the end
	of the physical end.

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 19 04:31:30 1994 UTC (23 years, 5 months ago) by miken
Branch: MAIN
Changes since 1.7: +6 -4 lines
Diff to previous 1.7 (colored)

If both XLOG_WAS_CONT_TRANS is set and XLOG_CONTINUE_TRANS, we don't
really care about XLOG_CONTINUE_TRANS.  Therefore, mask it off.  This
needs to be done when logging regions larger than a log record.

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 12 22:42:49 1994 UTC (23 years, 5 months ago) by miken
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

Add code for reservation lsn head of log

Revision 1.6 / (download) - annotate - [select for diffs], Thu May 12 18:58:00 1994 UTC (23 years, 5 months ago) by miken
Branch: MAIN
Changes since 1.5: +115 -12 lines
Diff to previous 1.5 (colored)

1. If length of data is zero, skip the region
2. Implement code which recovers buffers and inodes

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 11 01:04:54 1994 UTC (23 years, 5 months ago) by miken
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

include ktrace.h

Revision 1.4 / (download) - annotate - [select for diffs], Mon May 9 04:49:33 1994 UTC (23 years, 5 months ago) by miken
Branch: MAIN
Changes since 1.3: +186 -53 lines
Diff to previous 1.3 (colored)

1.  Add more item Q manipulation routines
2.  Fix bad bug where transaction header was split across LRs
3.  Fix bad bug where continued transactions weren't getting stored properly
4.  Fix initialization bug.  Call kmem_zalloc instead.
5.  Add routines to reorder a transaction's item Q.  Buffer and inode Qs
	get stuck on a new Q with buffers coming before inodes.  Extent and
	iunlink items are placed on the log's global Q for later processing.

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 7 01:45:49 1994 UTC (23 years, 5 months ago) by miken
Branch: MAIN
Changes since 1.2: +20 -28 lines
Diff to previous 1.2 (colored)

clean up code

Revision 1.2 / (download) - annotate - [select for diffs], Fri May 6 01:00:48 1994 UTC (23 years, 5 months ago) by miken
Branch: MAIN
Changes since 1.1: +67 -28 lines
Diff to previous 1.1 (colored)

Add support for items with #regs <= (NBPP / XFS_BLI_CHUNK / 2 + 1).  Also fix
a few bugs in the recovery code

Revision 1.1 / (download) - annotate - [select for diffs], Thu May 5 17:21:45 1994 UTC (23 years, 5 months ago) by miken
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>