From: Scott F. <sf...@br...> - 2012-04-10 16:45:38
|
Are there any requirements for locking when a filesystem is running in multi-threaded mode, or does the FUSE library handle its own synchronization? I ask because I'm faced with a very annoying bug in my filesystem that's causing a segmentation fault only in multi-threaded mode and the issue only manifests itself after about a 60 or so concurrent 'ls' commands have been issued on a directory with 20,000 sub-directories. Also, is there ever a time when you'd need to use the offset parameter of the filler function passed to readdir()? Is it always safe to use 0 as the offset? Thanks, Scott |