From: Bernd S. <ber...@gm...> - 2007-02-20 21:15:05
|
Hi, I have found a reliable way how to deadlock fuse. This happens on a recursion of the mount point within the union mount. This is a common situation e.g. on a union of /, as it is used for live CDs. Example (with unionfs-fuse): ./unionfs -s -d -ocow -oallow_other -odefault_permissions -ouse_ino /unionfs/dir1=RW:/=RO /mnt/union/ This makes a union of '/unionfs/dir1' and '/' to '/mnt/union'. Now a simple stat of '/mnt/union/mnt/union' will freeze the stat() call and any further unionfs operations. Within unionfs the freeze happens on the lstat(/mnt/union, &buf) call. With unionfs-fuse this is not difficult to fix, just a bit ugly (http://podgorny.cz/~bernd/hg/hgwebdir.cgi/fuse-workaround). But maybe this should be fixed within fuse itself? Thanks, Bernd |