#!/usr/local/bin/python from fuse import Fuse import stat, os from errno import * class MyFS(Fuse): def __init__(self, *args, **kw): Fuse.__init__(self, *args, **kw) def getattr(self, path): print 'called getattr:', path if (path == '/'): t = [0,]*10 t[0] = stat.S_IFDIR | 0755 t[3] = 2; t[6] = 2048 return t else: return -ENOENT server = MyFS() server.main()