marook/tagfs

Mishandling of empty tags

Closed this issue · 2 comments

If any of tag-files contains an empty tag (i.e., a tag with empty value, for example:
SomeTag:
), TagFS mounts it fine, but when I try to open it, I get an "Invalid argument" message.

Example:

$ tail -3 db/Sample/tag
composer: Galina Lupandina
poet: Svetlana Kopylova
genre:
$ tagfs dbm -i db -t tag
$ ls dbm
ls: reading directory dbm: Invalid argument
$ fusermount -u dbm
$

Expected result: either ignoring such tag or issuing an error message during mount.

I can reproduce it. Will fix it in the near future.

I think tagfs should issue a warning when mounting items with empty tag values. But mounting with empty tag values should be successful.

This issue should be fixed in the latest version of the master branch.

tagfs will issue a warning into the tagfs log when parsing empty tagging values. Logging is described in the tagfs developer README (https://github.com/marook/tagfs/blob/master/README.dev).