[Haskell-cafe] HFuse: ls fails in HelloFS

Georg Neis gn at oglaroon.de
Fri Mar 14 07:38:02 EDT 2008


Hello,

I've installed the HFuse package from hackage and am playing with the
HelloFS example in the System/Posix/HFuse directory.

The problem that I encounter is that listing the directory doesn't work:

% ghc --make HelloFS.hs
[1 of 1] Compiling Main             ( HelloFS.hs, HelloFS.o )
Linking HelloFS ...
% mkdir bla
% ./HelloFS bla
% cd bla
% cat hello
Hello World, HFuse!
% ls
ls: cannot open directory .: Function not implemented


Here's the relevant output from strace:

open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOSYS
(Function not implemented)
write(2, "ls: ", 4ls: )                     = 4
write(2, "cannot open directory .", 23cannot open directory .) = 23
write(2, ": Function not implemented", 26: Function not implemented) = 26


Some system information:
- Debian unstable
- Linux 2.6.24
- Fuse 2.7.3
- GHC 6.8.2
- HFuse 0.1

Any ideas?

Thanks,
 Georg



More information about the Haskell-Cafe mailing list