Whamcloud - gitweb
LU-3529 lod: create striped directory
[fs/lustre-release.git] / lustre / osp / osp_md_object.c
index fd262ac..a39cdbc 100644 (file)
@@ -70,7 +70,7 @@ static int osp_md_declare_object_create(const struct lu_env *env,
        bufs[0] = (char *)&osi->osi_obdo;
        buf_count = 1;
        fid1 = (struct lu_fid *)lu_object_fid(&dt->do_lu);
-       if (hint->dah_parent) {
+       if (hint != NULL && hint->dah_parent) {
                struct lu_fid *fid2;
                struct lu_fid *tmp_fid = &osi->osi_fid;
 
@@ -251,7 +251,6 @@ static int osp_md_declare_attr_set(const struct lu_env *env,
        }
 
        osi->osi_obdo.o_valid = 0;
-       LASSERT(!(attr->la_valid & (LA_MODE | LA_TYPE)));
        obdo_from_la(&osi->osi_obdo, (struct lu_attr *)attr,
                     attr->la_valid);
        lustre_set_wire_obdo(NULL, &osi->osi_obdo, &osi->osi_obdo);