From: huanghua Date: Wed, 21 Jan 2009 11:43:31 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_140~5 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d159b9841182713f761705308b1b704b590d73d8;p=fs%2Flustre-release.git Branch HEAD b=18267 i=yong.fan i=rahul.deshmukh i=adilger handle different set_info protocol: in interop mode, val might be NULL. --- diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index d1678d7..4b925a9 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -4327,9 +4327,11 @@ static int filter_set_info_async(struct obd_export *exp, __u32 keylen, obd->u.filter.fo_mdc_conn.cookie = exp->exp_handle.h_cookie; /* setup llog imports */ - LASSERT(val != NULL); + if (val != NULL) + group = (int)(*(__u32 *)val); + else + group = 0; /* default value */ - group = (int)(*(__u32 *)val); LASSERT_MDS_GROUP(group); rc = filter_setup_llog_group(exp, obd, group); if (rc)