Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
634fc4a
)
Branch HEAD
author
huanghua
<huanghua>
Wed, 21 Jan 2009 11:43:31 +0000
(11:43 +0000)
committer
huanghua
<huanghua>
Wed, 21 Jan 2009 11:43:31 +0000
(11:43 +0000)
b=18267
i=yong.fan
i=rahul.deshmukh
i=adilger
handle different set_info protocol: in interop mode, val might be NULL.
lustre/obdfilter/filter.c
patch
|
blob
|
history
diff --git
a/lustre/obdfilter/filter.c
b/lustre/obdfilter/filter.c
index
d1678d7
..
4b925a9
100644
(file)
--- 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)