Open seertenedos opened 4 years ago
also in VS2019 debugger next to the fi local variable it says "Unable to read memory"
also your signature looks like it mismatches with fuse doco i think. fuse (https://libfuse.github.io/doxygen/structfuse__operations.html#a92bdd6f43ba390a54ac360541c56b528) says
int(* fuse_operations::fsync)(const char *, int, struct fuse_file_info *)
where are you lib says
unsafe delegate int fsync_delegate(path* path, fuse_file_info* fi);
yours is missing a second argument of int so only ends up with 2 arguments not 3
on my fork the last checkin (https://github.com/seertenedos/Tmds.Fuse/commit/0a3dce1bcbaed0826635693a25177d1b242e57f6) applies the change and it seems to work. sorry my git skill are not good over forks as i could not workout how to create a pull request with just that commit cherry picked
For the FSync call i am doing some basic logging and am just trying to test MMap on the drive from dotnet core.
the above code fails with null reference exception on the fi.fh but it is a struct and can't be null. Exception details below Exception thrown: 'System.NullReferenceException' in Tmds.Fuse.dll An exception of type 'System.NullReferenceException' occurred in Tmds.Fuse.dll but was not handled in user code: 'Object reference not set to an instance of an object.' Stack trace: