dlang-community / dfuse Goto Github PK
View Code? Open in Web Editor NEWThis project forked from facebookarchive/dfuse
dfuse is a binding for the fuse filesystem library written in D.
License: Other
This project forked from facebookarchive/dfuse
dfuse is a binding for the fuse filesystem library written in D.
License: Other
libfuse provides a fh field in the fuse_file_info struct which is passed to most functions
https://libfuse.github.io/doxygen/structfuse__file__info.html#a45314d0b92a8d4c9de33d996aa59ada8
File handle id. May be filled in by filesystem in create, open, and opendir(). Available in most other file operations on the same file handle.
These are needed if you want to keep data consistent across chunked read()s or write()s where the data might be non-static for the path.
Adding overloads that provide at least the fh and an open() method in the Operations interface, as well as a close() for cleanup, would allow a wider range of applications than just static content per path.
I am attempting to following the directions to build the examples as per: https://github.com/dlang-community/dfuse#examples, however the following initial error is thrown:
(dmd-2.093.1)[alex@centos7full dfuse]$ make examples
make: *** No rule to make target `source/c/fuse/common.d', needed by `simplefs'. Stop.
(dmd-2.093.1)[alex@centos7full dfuse]$
If the Makefile is then updated to read:
sources = source/c/fuse/fuse.d source/c/fuse/fuse_common.d source/dfuse/fuse.d
building the example binary still fails, but goes a little further:
(dmd-2.093.1)[alex@centos7full dfuse]$ make examples
dmd -w -debug -g -L-lfuse -ofsimplefs example/simplefs.d source/c/fuse/fuse.d source/c/fuse/fuse_common.d source/dfuse/fuse.d
source/c/fuse/fuse_common.d(11): Error: module fuse_opt is in file 'c/fuse/fuse_opt.d' which cannot be read
import path[0] = /home/alex/dlang/dmd-2.093.1/linux/bin64/../../src/phobos
import path[1] = /home/alex/dlang/dmd-2.093.1/linux/bin64/../../src/druntime/import
make: *** [simplefs] Error 1
(dmd-2.093.1)[alex@centos7full dfuse]$
Is it possible for you to update the project so that the examples can be built - or is there something else which I am missing?
e.g. I would like to intercept open calls (to track what files are accessed).
Is it also possible to just forward all not implemented functions to "normal" fs functions with the low-level API?.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.