X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flod%2Flod_qos.c;h=5e91e88c22af66516bd4e43d516e2f679f4bdf80;hb=7d1927ec6e3298c76ff90b4c622f58d6d033ba9b;hp=e59b9048061357a3f88d6eb97b69878a2f7ae609;hpb=9fb46705ae86aa2c0ac29427f0ff24f923560eb7;p=fs%2Flustre-release.git diff --git a/lustre/lod/lod_qos.c b/lustre/lod/lod_qos.c index e59b904..5e91e88 100644 --- a/lustre/lod/lod_qos.c +++ b/lustre/lod/lod_qos.c @@ -23,7 +23,7 @@ * Copyright 2009 Sun Microsystems, Inc. All rights reserved * Use is subject to license terms. * - * Copyright (c) 2011, 2012, Whamcloud, Inc. + * Copyright (c) 2012, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -1262,10 +1262,12 @@ static int lod_qos_parse_config(const struct lu_env *env, v1 = buf->lb_buf; magic = v1->lmm_magic; - if (magic == __swab32(LOV_USER_MAGIC_V1)) + if (magic == __swab32(LOV_USER_MAGIC_V1)) { lustre_swab_lov_user_md_v1(v1); - else if (magic == __swab32(LOV_USER_MAGIC_V3)) + } else if (magic == __swab32(LOV_USER_MAGIC_V3)) { + v3 = buf->lb_buf; lustre_swab_lov_user_md_v3(v3); + } if (unlikely(magic != LOV_MAGIC_V1 && magic != LOV_MAGIC_V3)) { /* try to use as fully defined striping */