frogfs icon indicating copy to clipboard operation
frogfs copied to clipboard

Options out-of-phase or not supported

Open BrucePerens opened this issue 10 months ago • 3 comments

Hi,

Thanks for FrogFS.

The example configuration file doesn't work any longer, at least when I build it (on Debian 12.9). If I give it:

filter: '*': - compress zlib level: 9

The yaml parser complains that mapping values aren't allowed there. If I take away the colon after "level", it works. Or at least doesn't complain.

Thanks

Bruce

BrucePerens avatar Feb 17 '25 21:02 BrucePerens

Also, it's important to note in the docs that collect directories should be entered with a trailing slash, or their name will become part of the pathname in the compiled filesystem.

BrucePerens avatar Feb 17 '25 21:02 BrucePerens

The example configuration file doesn't work any longer, at least when I build it (on Debian 12.9). If I give it: --- snipped --- The yaml parser complains that mapping values aren't allowed there. If I take away the colon after "level", it works. Or at least doesn't complain.

Try indenting level 2 more spaces. YAML is very particular about indentation. I believe without the extra two spaces, it doesn't create a dictionary.

Also, it's important to note in the docs that collect directories should be entered with a trailing slash, or their name will become part of the pathname in the compiled filesystem.

Good catch. Do you have time to make a PR on this?

jkent avatar Feb 18 '25 04:02 jkent

Done. https://github.com/jkent/frogfs/issues/66

BrucePerens avatar Feb 19 '25 00:02 BrucePerens

I confirmed that this was a YAML syntax issue.

The correct syntax is:

filter:
  '*':
    - compress zlib:
        level: 9

Notice the colon, and the indentation.

Sorry I did not get around to this sooner.

jkent avatar Jul 01 '25 07:07 jkent