@node Debugging, Oddities, Parts of Arla, Top
@section Debugging

@subsection 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 
@example 
   --debug=all,-cleaner 
@end example 
The cleaner output is usully not that intresting and can be ignored.

To set the debugging with a running arlad use @code{fs arladeb} as root.

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

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

@subsection 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 @file{xfs/<your-os>/xfs_deb.c} or use
fs to set it.


@example
datan:~# fs xfsdebug
xfsdebug is: none
datan:~# fs xfsdebug almost-all
datan:~#
@end example

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