Whamcloud - gitweb
Branch HEAD
b=12749
i=nathan,deen
Second of three patches for the root squash feature
This patch is to allow configuration parameters to contain spaces
It is accopmpished with
1. in mgs_write_log_params (renamed to mgs_write_log_param)
assume the incoming string is a single parameter (the while loop is removed)
2. in mgs_write_log_target, call mgs_write_log_params for each parameter
a) new funcion class_get_next_param copies the entire next parameter into a temp buffer
spaces are included if they are inside quotes (single or double)
the first space outside of quotes is the terminator
the quotes are stripped in the copy
the copy is null-terminated
b) repeatedly call class_get_next_param and mgs_write_log_param in a loop from mgs_write_log_target