lmi = server_get_mount(dev);
obd->obd_fsops = fsfilt_get_ops(MT_STR(s2lsi(lmi->lmi_sb)->lsi_ldd));
- LASSERT(obd->obd_fsops != NULL);
+ if (obd->obd_fsops == NULL)
+ CERROR("this filesystem (%s) doesn't support fsfilt\n",
+ MT_STR(s2lsi(lmi->lmi_sb)->lsi_ldd));
spin_lock_init(&m->ofd_transno_lock);
spin_lock_init(&m->ofd_client_bitmap_lock);
if (filter_object_exists(fo))
RETURN(fo);
+ dof.dof_type = dt_mode_to_dft(S_IFREG);
+
next = filter_object_child(fo);
LASSERT(next != NULL);
if (IS_ERR(th))
GOTO(out, rc = PTR_ERR(th));
- rc = dt_declare_create(env, next, attr, NULL, NULL, th);
+ rc = dt_declare_create(env, next, attr, NULL, &dof, th);
LASSERT(rc == 0);
rc = filter_trans_start(env, ofd, th);
CDEBUG(D_OTHER, "create new object %lu:%llu\n",
(unsigned long) fid->f_oid, fid->f_seq);
- dof.dof_type = dt_mode_to_dft(S_IFREG);
rc = dt_create(env, next, attr, NULL, &dof, th);
LASSERT(rc == 0);
LASSERT(filter_object_exists(fo));