This fixes a bug in external log replay; it would find an invalid log
but continue on and eventually panic.
Here is some initial remount code that appears to work but definitely
does not do all of the right things, including syncing. I'm testing
some code related to flushing all of the data before actually
completing the remount.
The code that replays logs on readonly mounts seems to work; feedback
or good ways to verify would be appreciated.
The following file(s) were checked into:
linux/fs/xfs/linux/xfs_super.c - 1.60
- added first cut at remount code
linux/fs/xfs/xfs_log_recover.c - 1.170
- check return code of xlog_test_footer() and bail on error
- added code to replay log in readonly situations
linux/fs/xfs/xfs_os_defs.h - 1.3
- added NEED_FS_H #ifdef