-
Notifications
You must be signed in to change notification settings - Fork 72
Initial Fuse 3 support + Support to allow some special options #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Oh wow, thanks! I'll go through the code in detail in a few days. Some questions in the meantime:
|
No, I wasn't aware of this. But I will do this now.
I wrote this myself. With my basic C knowledge
I guess just ignoring the flags should also work. In their (libfuse) own example passthrough.c, they also just ignore the flags |
|
Fixed my Segfault on |
|
Regarding fuse.h comment for readdir_ino:
fuse.h completely for both options: /**
* Honor the st_ino field in the functions getattr() and
* fill_dir(). This value is used to fill in the st_ino field
* in the stat(2), lstat(2), fstat(2) functions and the d_ino
* field in the readdir(2) function. The filesystem does not
* have to guarantee uniqueness, however some applications
* rely on this value being unique for the whole filesystem.
*
* Note that this does *not* affect the inode that libfuse
* and the kernel use internally (also called the "nodeid").
*/
int use_ino;
/**
* If use_ino option is not given, still try to fill in the
* d_ino field in readdir(2). If the name was previously
* looked up, and is still in the cache, the inode number
* found there will be used. Otherwise it will be set to -1.
* If use_ino option is given, this option is ignored.
*/
int readdir_ino;So this way I will never be able to pass the test because always one of the ino tests will fail. When commenting out the |
|
Thanks! I'll merge this to branch |
|
Making progress, but not there yet.
I'll continue when I find a bit of time again. |
|
Released as 1.15.0! |
To be clear in the beginning:
I cannot ensure that I did everything the right way, because I'm not really a C Programmer.
I only have a very basic knowledge in C.
What have I done:
What I havn't done:
You maybe have to finetune. I only did testing CentOS 7 so far.