On 01/30/2012 04:59 PM, Alexander Holupirek wrote: > $ python2.7 llfuse-0.37.1/contrib/example.py /var/tmp/mnt > [ ... other shell ... ] > $ touch /var/tmp/mnt/foo > touch: cannot touch `/var/tmp/mnt/foo': Input/output error > Traceback (most recent call last): > File "llfuse-0.37.1/contrib/example.py", line 408, in <module> > llfuse.main(single=True) > File "fuse_api.pxi", line 213, in llfuse.main (src/llfuse.c:18034) > File "handlers.pxi", line 617, in llfuse.fuse_create (src/llfuse.c:13023) > File "handlers.pxi", line 618, in llfuse.fuse_create (src/llfuse.c:12922) > TypeError: create() takes exactly 5 arguments (6 given)
Thanks for the report, will be fixed in the next release. Until then, you can apply the following patch: diff --git a/contrib/example.py b/contrib/example.py --- a/contrib/example.py +++ b/contrib/example.py @@ -328,7 +328,7 @@ #pylint: disable=R0201,W0613 return True - def create(self, inode_parent, name, mode, ctx): + def create(self, inode_parent, name, mode, flags, ctx): entry = self._create(inode_parent, name, mode, ctx) self.inode_open_count[entry.st_ino] += 1 return (entry.st_ino, entry) diff --git a/src/operations.pxi b/src/operations.pxi --- a/src/operations.pxi +++ b/src/operations.pxi @@ -445,8 +445,8 @@ raise FUSEError(errno.ENOSYS) - def create(self, inode_parent, name, mode, ctx): - '''Create a file with permissions *mode* and open it + def create(self, inode_parent, name, mode, flags, ctx): + '''Create a file with permissions *mode* and open it with *flags* *ctx* will be a `RequestContext` instance. Best, -Nikolaus -- »Time flies like an arrow, fruit flies like a Banana.« PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org