Debugging
*********

Arlad
=====

If arlad is run without any arguments arlad will fork(2) and log to syslog(3). To stop forking use the --nofork (-n) switch.

To enable more debuggning run arla with the switch --debug=module1,module2,... One useful combination is

        --debug=all,-cleaner

The cleaner output is usully not that intresting and can be ignored.

To set the debugging with a running arlad use fs arladeb as root.

     datan:~# fs arladeb
     arladebug is: none
     datan:~# fs arladeb almost-all
     datan:~#

When arlad doesn't log to stdout, or a file, it logs to syslog.

xfs
===

XFS debugging does almost look the same on all platforms. They all share same debugging flags, but not all are enabled on all platforms.

Either you edit the file xfs/<your-os>/xfs_deb.c or use fs to set it.

     datan:~# fs xfsdebug
     xfsdebug is: none
     datan:~# fs xfsdebug almost-all
     datan:~#

The logging of xfs ends up in your syslog. Syslog usully logs to /var/log or /var/adm (look in /etc/syslog.conf).