billziss-gh / winfuse

FUSE for the Windows kernel
Other
183 stars 21 forks source link

"Unknown option" error with WinFUSE #11

Open RayyanAnsari opened 1 year ago

RayyanAnsari commented 1 year ago

I'm trying to port the pyfuse3 library to Windows using WinFUSE (it can't use WinFSP because it needs the lowlevel API), but upon running the testsuite I get this error from the fuse library:

fuse: unknown option(s): `-o fsname=pyfuse3_testfs,default_permissions'

I'm not sure why this is failing because the options look valid to me, and they work on Linux.

billziss-gh commented 1 year ago

Linux and windows treat command line arguments differently.

Pass it as one option: "-ofsname=…", or as two options: "-o", "fsname=…"

RayyanAnsari commented 1 year ago

I have passed it as one argument this time, but I still get the same error:

f_args.argv[0] = "pyfuse3"
f_args.argv[1] = "-ofsname=pyfuse3_testfs,default_permissions"
fuse: unknown option(s): `-o fsname=pyfuse3_testfs,default_permissions'