This might help diagnose some force shutdown scenarios...
There is now a /proc/sys/fs/xfs/panic_mask sysctl which can be
set with this bitmask:
#define XFS_NO_PTAG 0LL
#define XFS_PTAG_IFLUSH 0x0000000000000001LL
#define XFS_PTAG_LOGRES 0x0000000000000002LL
#define XFS_PTAG_AILDELETE 0x0000000000000004LL
#define XFS_PTAG_AVAILABLE 0x0000000000000008LL
#define XFS_PTAG_SHUTDOWN_CORRUPT 0x0000000000000010LL
#define XFS_PTAG_SHUTDOWN_IOERROR 0x0000000000000020LL
#define XFS_PTAG_SHUTDOWN_LOGERROR 0x0000000000000040LL
this will cause various things that would normally just be errors
to BUG(), from which we can get a backtrace.
Implement xfs_panic_mask
Date: Thu Oct 24 13:18:15 PDT 2002
Workarea:
stout.americas.sgi.com:/localhome/src/sandeen/2.4.x-xfs/workarea-alwaysclean
The following file(s) were checked into:
bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs
Modid: 2.4.x-xfs:slinx:131027a
linux/fs/xfs/xfs_rw.c - 1.368
- hook forced shutdown into panic_mask handling
linux/fs/xfs/xfs_error.c - 1.36
linux/fs/xfs/xfs_error.h - 1.28
- define more panic tags for force shutdown
linux/fs/xfs/linux/xfs_globals.c - 1.39
linux/fs/xfs/linux/xfs_linux.h - 1.91
- #define xfs_panic_mask as a sysctl parameter
linux/fs/xfs/linux/xfs_sysctl.c - 1.12
- set up xfs_panic_mask sysctl
|