From: Brian W. <bdw...@in...> - 2009-03-03 19:23:29
|
Just to follow up on myself, I figured out the problem. The library configuration has to be called from main() and the login had to be called in init() (since it starts threads). I kept lumping them together...and I was using relative pathnames for some config files which broke after the daemon() call. :) So, nevermind. However, FUSE is pretty cool, and its made my life a lot easier! Brian On Tue, 2009-03-03 at 11:16 -0500, Brian Wheeler wrote: > Hello! > > I've written a filesystem which wraps the HPSS > (http://www.hpss-collaboration.org/hpss/index.jsp) POSIX emulation > calls. > > I've gotten it to work correctly when using -f and -d, but when I run it > as normal it fails in weird ways. > > I know the library uses pthreads so I tried putting the initialization > calls into the *_init callback (per the faq), but the library fails to > initialize. When I leave the initialization code in main, it > initializes ok, but then hangs on the first call to getattr...unless I > use -f or -d. > > Since this filesystem is basically HSM, I really don't care that much > about speed, so can I get fuse to not kill my threads and go into the > background as a single thread? > > Thanks! > Brian > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > fuse-devel mailing list > fus...@li... > https://lists.sourceforge.net/lists/listinfo/fuse-devel |