Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw_file: split last argv on ws, if provided #12965

Merged
merged 1 commit into from Feb 2, 2017

Conversation

mattbenjamin
Copy link
Contributor

This is intended to allow an "extra" unparsed argument string
containing various cmdline options to be passed as the last argument
in the argv array of librgw_create(), which nfs-ganesha is
expecting to happen.

While at it, hook env_args() too.

Signed-off-by: Matt Benjamin mbenjamin@redhat.com

@yehudasa
Copy link
Member

yehudasa commented Jan 24, 2017

@mattbenjamin the commit itself looks ok, but wouldn't this break command line options that have a space in them? e.g., --log-file 'dir/file with space.log'

@mattbenjamin
Copy link
Contributor Author

@yehudasa well, yeah; however, it will never be passed from the cmdline; the intent is to properly implement the "init_arg" extra args that I added to ganesha args processing; adding some kind of quoting would be ok, but it feels like overkill

@yehudasa yehudasa self-requested a review January 24, 2017 21:34
@yehudasa
Copy link
Member

@mattbenjamin wouldn't it make more sense to pre-parse the args and pass to ganesha whatever we get in --ganesha-config?

Copy link
Member

@yehudasa yehudasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'd be nice to have string parse that would handle quotes, but for now it's ok as it is.

@mattbenjamin
Copy link
Contributor Author

@yehudasa ok, thanks for the ruling: if you're ok with the extra logic, I'll implement or locate something appropriate

This is intended to allow an "extra" unparsed argument string
containing various cmdline options to be passed as the last argument
in the argv array of librgw_create(), which nfs-ganesha is
expecting to happen.

While at it, hook env_args() too.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
@mattbenjamin mattbenjamin merged commit 8b57de9 into ceph:master Feb 2, 2017
@mattbenjamin mattbenjamin self-assigned this Mar 29, 2017
@ktdreyer
Copy link
Member

ktdreyer commented Mar 29, 2017

For the record the jewel backport of this change is going in as #14230

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants