struct kstatfs sfs;
int result;
int size = sizeof(struct obd_statfs);
-
+
ENTRY;
result = lustre_pack_reply(req, 1, &size, NULL);
int size = sizeof (*body);
struct md_obj_attr attr;
int result;
-
+
ENTRY;
-
+
result = lustre_pack_reply(req, 1, &size, NULL);
if (result)
CERROR(LUSTRE_MDT0_NAME" out of memory for statfs: size=%d\n",
if (!child->md_ops->mdo_config)
RETURN(-EOPNOTSUPP);
-
+
rc = child->md_ops->mdo_config(child, name, buf, size, mode);
RETURN(rc);
}
LASSERT(m != NULL);
LASSERT(seq != NULL);
-
+
down(&m->mdt_seq_sem);
m->mdt_seq += 1;
*seq = m->mdt_seq;
CERROR("can't save new seq, rc %d\n",
rc);
}
-
+
up(&m->mdt_seq_sem);
RETURN(0);
if (m->mdt_child)
mdt_child = md2lu_dev(m->mdt_child);
-
+
sema_init(&m->mdt_seq_sem, 1);
m->mdt_service_conf.psc_nbufs = MDS_NBUFS;
NULL);
if (m->mdt_service == NULL)
GOTO(err_free_ns, rc = -ENOMEM);
-
+
/* init the stack */
if (m->mdt_child && mdt_child) {
if (mdt_child->ld_ops->ldo_device_init) {
rc = ptlrpc_start_threads(NULL, m->mdt_service, LUSTRE_MDT0_NAME);
if (rc)
GOTO(err_fini_child, rc);
-
+
RETURN(0);
err_fini_child:
h = &mo->mot_header;
lu_object_header_init(h);
lu_object_init(o, h, d);
+ lu_object_add_top(h, o);
return o;
} else
return NULL;
int rc, abort_recovery;
struct mds_export_data *med;
struct mds_client_data *mcd = NULL;
-
+
ENTRY;
if (!conn || !obd || !cluuid)
exp = class_conn2export(conn);
LASSERT(exp);
med = &exp->exp_mds_data;
-
+
OBD_ALLOC(mcd, sizeof(*mcd));
if (!mcd)
GOTO(out, rc = -ENOMEM);
mdt_fini(m);
return ERR_PTR(result);
}
-
+
} else
l = ERR_PTR(-ENOMEM);
return l;