Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-11279 lod: reset ostlist properly in lod_get_default_lov_striping
[fs/lustre-release.git]
/
lustre
/
lod
/
lod_lov.c
diff --git
a/lustre/lod/lod_lov.c
b/lustre/lod/lod_lov.c
index
2849beb
..
9e25dc4
100644
(file)
--- a/
lustre/lod/lod_lov.c
+++ b/
lustre/lod/lod_lov.c
@@
-896,7
+896,8
@@
static int lod_gen_component_ea(const struct lu_env *env,
PFID(&info->lti_fid), rc);
RETURN(rc);
}
- } else if (lod_comp->llc_ostlist.op_array) {
+ } else if (lod_comp->llc_ostlist.op_array &&
+ lod_comp->llc_ostlist.op_count) {
/* user specified ost list */
ost_idx = lod_comp->llc_ostlist.op_array[i];
}