IO.select hangs with fusefs

G

Gabriel Horner

Hi rubyheads,
I read about fusefs on why's page and found a commandline
interface to ActiveRecord very cool. I downloaded the latest
fuse (2.3) and latest fusefs(0.3) but when I run any of the sample
scripts it just hangs. Any of the sample scripts hang at the IO.select
call. I looked for documentation on this method on ruby-doc.org but its
not too clear to me how to use it correctly and thus troubleshoot it.
Any ideas on what's wrong or pointers to IO.select tutorials?
BTW, I'm running ruby 1.8.2.

Thanks,
Gabriel
 
K

Kent Sibilev

Well, it doesn't really hang. When you run a sample it creates a virtual
file system starting from the directory which you specify when you run
it.

Kent.
 
G

Greg Millam

I read about fusefs on why's page and found a commandline
interface to ActiveRecord very cool. I downloaded the latest
fuse (2.3) and latest fusefs(0.3) but when I run any of the sample
scripts it just hangs. Any of the sample scripts hang at the IO.select
call. I looked for documentation on this method on ruby-doc.org but its
not too clear to me how to use it correctly and thus troubleshoot it.
Any ideas on what's wrong or pointers to IO.select tutorials?
BTW, I'm running ruby 1.8.2.

Thanks for this - I'll include some sentences mentioning how this works
(and possibly a method call to daemonize the process) in the next
release of FuseFS.

The IO.select loop is intended to hang the script indefinitely. The
kernel communicates with the script through a socket opened on
/dev/fuse, and that socket is what IO.select is waiting for input on.

The proper method way to do this is either:

1) start the script, then play around with the FS in another terminal

or 2) start the script in the background, then play with it.
ruby sample/yamlfs.rb mountpoint someyamlfile.yaml &

Hope that helps.

- Greg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,226
Latest member
KristanTal

Latest Threads

Top