Tagsistant icon indicating copy to clipboard operation
Tagsistant copied to clipboard

tagsistant should handle fuse options as if they were from the command line

Open BrainDamage opened this issue 8 years ago • 1 comments

background: Tagsistant FS can be mounted trough fstab using a line such as: mountpoint repodata fuse.tagsistant options the problem is the options array, currrently fstab ( and similar tools ) would pass options such as noauto, noatime, etc to fuse, which in turn would relay them to tagsistant, using the fuse interface, but if one wants to specify tagsistant specific flags such as no-autotagging, they'd still have to be put in such array and they'd be handled as fuse options. by a cursory inspection of the code, Tagsistant seems to parse argv options using g_option_context_parse in tagsistant.c while fuse options are being handled by fuse_opt.c which have non-shared logic, so when trying to pass tagsistant command lines to fstab, one runs into this problem:

$ grep tagsistant /etc/fstab 
/tmp/test  /tmp/testdata   fuse.tagsistant  no-autotagging,noauto,user,auto_unmount 
$ mount /tmp/test
fuse: unknown option `no-autotagging'

since tagsistant isn't exporting its option list to fuse the solution is to export and handle command line options to the fuse interface, it'll end up in redundant specification for options ( either as --flag,or as -o flag ), but at least one should be able to pass them trough fstab

BrainDamage avatar Jan 29 '17 21:01 BrainDamage

Thanks for suggesting. I'll take care of this as soon as possible. I don't think I'll be able to implement this as quickly as I did for your previous issues, but I'll do my best.

StrumentiResistenti avatar Jan 30 '17 20:01 StrumentiResistenti