start-u9fs.sh: enable protocol debug with `export U9FS_LOGGING=enable`

This commit is contained in:
Giacomo Tesio 2022-01-06 17:14:03 +00:00
parent 63f39e4245
commit cb38e778ee
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
#!/bin/sh
# U9FS_LOG="-l $JEHANNE/hacking/lib/u9fs.log -z -D"
if [ "$U9FS_LOGGING" = "enable" ]; then
LOGFILE=$JEHANNE/hacking/lib/u9fs.log
date > $LOGFILE
echo Starting U9FS >> $LOGFILE
U9FS_LOG="-l $LOGFILE -z -D"
fi
$JEHANNE/hacking/bin/u9fs $U9FS_LOG -a none -u $USER $JEHANNE