libfuse/python-fuse

where to and how to specify big_writes option inside python file?

Gorparth opened this issue · 1 comments

I've implemented GDriveFS and OnedriveFS, I've inherited fuse.Fuse in my defined class, and instance is created like this
if name == 'main':
authed_usr = GDrive()
gdrivefs = GoogleDriveFS(version = '%prog ' + '0.0.1',
usage = 'GoogleDrive Filesystem ' + fuse.Fuse.fusage,
dash_s_do = 'setsingle')
gdrivefs.parse(errex = 1)
gdrivefs.flags = 0
gdrivefs.main()

In this what should I add to make read/write speed faster, (big_writes,max_readahed,max_write,etc),
or
how to add these parameters with exact syntax?

I did it like this:

    server.fuse_args.optdict["max_write"] = 131072
    server.fuse_args.optdict["max_read"] = 131072
    server.fuse_args.optdict["max_background"] = 16

before I even added any options.

Notably this allows the user to specify different values to override my values.