Whamcloud - gitweb
Branch HEAD
authorvs <vs>
Thu, 27 Nov 2008 01:58:17 +0000 (01:58 +0000)
committervs <vs>
Thu, 27 Nov 2008 01:58:17 +0000 (01:58 +0000)
commitacd101694eaa2539865f288b9c620bd922a28f2b
tree9fafda16c017d5ea6c8c5cade9db33dd131a6272
parent320bc2f5e1250948790282e156583ccf98bedc33
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
lustre/include/lustre_param.h
lustre/mgs/mgs_llog.c
lustre/obdclass/obd_config.c