add support for ioctl on directories. closes #27

This commit is contained in:
Antonio SJ Musumeci 2014-09-26 18:31:22 -04:00
parent cfe7609bcd
commit 075d62d647
12 changed files with 368 additions and 7 deletions

View file

@ -22,8 +22,6 @@
THE SOFTWARE.
*/
#include <fuse.h>
#include <string>
#include <vector>
@ -57,10 +55,16 @@ namespace mergerfs
search = &Policy::ff;
}
const Config&
get(const struct fuse_context *fc)
{
return *((Config*)fc->private_data);
}
const Config&
get(void)
{
return (*((Config*)fuse_get_context()->private_data));
return get(fuse_get_context());
}
Config&