Filesystem in Userspace
FUSEはファイルシステムを作る仕組み。ハードディスクとかCDドライブとかをマウントしてファイル群として扱うように、自分の好きな何かをファイル群として見せかけさせ、扱わせる。
まずrubyバインディングを。http://rubyforge.org/projects/fusefsからソース持ってきてruby setup.rb実行。
サンプル動かそうとするとfuseがother権限で動かないので動くようにしてしまいます。
以下root。
chmod o+x /bin/fusermount chmod o+rw /dev/fuse chmod o+r /etc/fuse.conf
んでユーザーに戻ってサンプル実行してみる
mkdir hell ruby sample/hello.rb hell & ls hell
適当にruby sample/hello.rbをkillすると中途半端な状態にhellディレクトリがなるので
fusermount -u hell
でアンマウント。