[Bugs] [Bug 1576350] New: mount.glusterfs do not support several xlator-options

bugzilla at redhat.com bugzilla at redhat.com
Wed May 9 09:08:09 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1576350

            Bug ID: 1576350
           Summary: mount.glusterfs do not support several xlator-options
           Product: GlusterFS
           Version: 3.13
         Component: scripts
          Severity: medium
          Assignee: bugs at gluster.org
          Reporter: yannick.perret at liris.cnrs.fr
                CC: bugs at gluster.org



Description of problem:
When mounting a volume using 'mount' command, it is possible to pass xlator
options using '-oxlator-option=key=value'.
In my case I need to pass two options to a xlator (created by me).
Adding two xlator-options do not does the trick: both
'-oxlator-option=key1=val1 -oxlator-option=key2=val2' or
'-oxlator-option=key1=val1,xlator-option=key2=val2' lead to only last value to
be transmited to 'glusterfs' command.


Version-Release number of selected component (if applicable):
I'm using 3.13.2 compiled from sources.

How reproducible:
Always.

Steps to Reproduce:
1. mount -t glusterfs -oxlator-option=key1=val1 -oxlator-option=key2=val2
/path/to/volfile /path/to/mountpoint

Actual results:
Executed command is:
/usr/local/sbin/glusterfs --xlator-option=key2=val2 --process-name fuse
--volfile=/path/to/volfile /path/to/mountpoint

Expected results:
Executed command should be:
/usr/local/sbin/glusterfs --xlator-option=key1=val1 --xlator-option=key2=val2
--process-name fuse --volfile=/path/to/volfile /path/to/mountpoint

Additional info:
I patched /sbin/mount.glusterfs to handle one or two values for 'xlator_option'
(by just setting xlator_option2 if xlator_option is still set), and it works as
expected in this case.
Script 'mount.glusterfs' should be corrected to handle an arbitrary number of
values for xlator_option (and this may also applies to other
potentialy-multi-valued options).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list