(tagfs)

a semantic filesystem for Linux kernels

written by Tx0 <tx0@StrumentiResistenti.org>

based on libfuse


Using Valgrind on FUSE filesystems

Hunting memory leaks, I've faced the problem of using Valgrind on a FUSE filesysem. Since fusermount is a SUIDed executable, Valgrind somehow interfere with filesystem mounting.

Here is a solution I've found searching on the Net:

# cd /usr/bin
# if [[ -e fusermount ]]; then mv fusermount fusermount.real; fi
# touch fusermount
# chown root.fuse fusermount
# chmod ug+x fusermount
# echo '#!/bin/sh' >> fusermount
# echo 'exec /usr/bin/fusermount.real $@' >> fusermount
[ or depending on the path of fusermount ]
# echo 'exec /bin/fusermount $@' >> fusermount 

The original resource about that is available here

-->

Valid HTML 4.01 Transitional   Valid CSS!   hosted by gna!
Creative Commons License This site is licensed under a
  Creative Commons Attribution-Share Alike 2.5 Italy License.
digg it! send this site to Stumbleupon! post to del.icio.us