Comments (2)
Thanks for the feedback and sorry for the huge delay. My comments concerning
your patch:
1) I try to keep the structures as small as possible for portability reasons.
Is there a specific field that you want access to?
2) In which cases would you need to instantiate FUSE with help=True?
3) It is not just for portability, but also for more flexibility in the
implementation of the filesystems. I see your rationale but I'll leave it as
is, as this change could break existing filesystems too.
4) I was concerned about using OSError too, I agree that using an OSError
subclass is better, committed.
5) I think EROFS is a better default, as it could be left as is for small toy
filesystems (like context.py). For anything more sophisticated it is going to
be overriden anyway.
6) Committed.
Original comment by verigak
on 26 Aug 2010 at 2:21
from fusepy.
1) Yes, I need to return f_namemax
2) The canonical usage of FUSE flags is to add your own options, and then parse
them all, and request FUSE to dump it's FUSE specific options. It's been a
while, and I've since ported to C, but this is how it's done:
http://code.google.com/p/cpfs/source/browse/mount.cpfs.c#24 Also note that wrt
to the original usage of help in the patch, it's very difficult to find a
complete listing of the available FUSE options, passing -h is the only way.
Perhaps instead you could provide a function doing the FUSE opt dump as I've
done from C.
3) Yes I can understand this. This is me trying to push type safety onto
Python. Bad practice but a few bugs were masked by me passing the wrong fields
back.
4) It's awful and a PITA that the strerror field is not generated by default in
OSError anyway. From the changes in r57 (I can't comment on that you might have
disabled it or something), I don't think you need to change the docstring to
say "throw a FuseOSError", as OSError is still handled. FuseOSError here just
generates cleaner errors for the default handlers.
5) Maybe you could consider ENOSYS as well. This might impact portability, I'm
not really fussed about this.
6) Awesome, thanks.
Original comment by [email protected]
on 27 Aug 2010 at 6:55
from fusepy.
Related Issues (20)
- Patch - support for Linux PPC HOT 1
- Errors generated by fuse_main_real are ignored HOT 1
- uid and gid can be negative for chown() HOT 1
- Unicode support HOT 1
- Allow examples to handle SIGINT (Ctrl-C) gracefully HOT 4
- Allow importing fusepy as a package HOT 1
- Import in python 3 is not relative
- Stat handling is bug prone
- Fuse paths should be encoded to UTF-8 HOT 5
- statfs returns incorrect data on Mac HOT 1
- No tutorial/documentation on how to use the software
- FusePy doesn't support 64 bit inodes? HOT 4
- str<->bytes conversion not automatic with python version >=3.2 HOT 4
- Patch for /trunk/fuse.py HOT 1
- Update the package in PyPI HOT 1
- look into merging https://github.com/terencehonles/fusepy HOT 2
- Remove the source tree from Google Code
- Error import fuse on OS X HOT 1
- Invalid string type conversion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fusepy.