Whamcloud - gitweb
LU-6341 llite: Use ll_dir_getstripe to get default LMVEA
[fs/lustre-release.git] / lustre / osd-zfs / osd_object.c
index 2279df0..51b218d 100644 (file)
@@ -1440,7 +1440,8 @@ static int osd_object_create(const struct lu_env *env, struct dt_object *dt,
        /* to follow ZFS on-disk format we need
         * to initialize parent dnode properly */
        zapid = 0;
-       if (hint && hint->dah_parent)
+       if (hint != NULL && hint->dah_parent != NULL &&
+           !dt_object_remote(hint->dah_parent))
                zapid = osd_dt_obj(hint->dah_parent)->oo_db->db_object;
 
        db = osd_create_type_f(dof->dof_type)(env, obj, attr, zapid, oh);