X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flod%2Flod_object.c;h=24a07d69fa77f1937849aaf1cafabc8c1557fc89;hp=816e6cd0b09bde1662801606cc4e8183d8b8f0c5;hb=c7f2e70a27e872ddf61f254fd6d9b299d9745aa6;hpb=df70a5c8938888686188cfc63748011f8c7557e0 diff --git a/lustre/lod/lod_object.c b/lustre/lod/lod_object.c index 816e6cd..24a07d6 100644 --- a/lustre/lod/lod_object.c +++ b/lustre/lod/lod_object.c @@ -654,8 +654,14 @@ int lod_declare_striped_object(const struct lu_env *env, struct dt_object *dt, GOTO(out, rc = -ENOMEM); } - /* XXX: there will be a call to QoS here */ - RETURN(0); + /* choose OST and generate appropriate objects */ + rc = lod_qos_prep_create(env, lo, attr, lovea, th); + if (rc) { + /* failed to create striping, let's reset + * config so that others don't get confused */ + lod_object_free_striping(env, lo); + GOTO(out, rc); + } /* * declare storage for striping data