vi / execfuse

Turn a bunch of scripts into a FUSE filesystem
Other
29 stars 11 forks source link

Yazzy/open #5

Closed bAndie91 closed 6 years ago

bAndie91 commented 6 years ago
vi commented 6 years ago

Is it backwards-compatible with old (pre-open/create) scripts?

Maybe the new feature should be documented in the xmp example? Or maybe better a new example added: xmp_proxy.

bAndie91 commented 6 years ago

@vi, ye I want to keep the compatibility. open and create scripts are kept invoked.

the main extension here is that when open (create) script prints out something, then execfuse takes it a physical path and open()s that "real" file (real open() stil can be resulted in error case). further fuse operations againts this kind of file descriptor will be forwarded to the system, not to user scripts. eg: execfuse_write -> pwrite(), execfuse_ftruncate -> ftruncate().

this extension does not only resolves the 64K limit of virtual files managed by chunked_buffer, but also speeds up a little bit in cases when user does not want to alter certain files' content.

vi commented 6 years ago

What's the 64K limit? execfuse is supposed to work with files that can be fit in memory.

bAndie91 commented 6 years ago

@vi, sorry i loosely interpreted the code and got the intention chunk size to be the max file size. take my fix PR as an apology. :) anyway thanks accepting feature.