1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2001, 2002 Cluster File Systems, Inc.
6 * This file is part of Lustre, http://www.sf.net/projects/lustre/
8 * Lustre is free software; you can redistribute it and/or
9 * modify it under the terms of version 2 of the GNU General Public
10 * License as published by the Free Software Foundation.
12 * Lustre is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Lustre; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #define DEBUG_SUBSYSTEM S_MDC
26 #include <linux/module.h>
27 #include <linux/miscdevice.h>
28 #include <linux/lustre_mds.h>
29 #include <linux/lustre_lite.h>
30 #include <linux/lustre_dlm.h>
32 #define REQUEST_MINOR 244
34 extern int mds_queue_req(struct ptlrpc_request *);
37 int mdc_getstatus(struct obd_conn *conn, struct ll_fid *rootfid,
38 __u64 *last_committed, __u64 *last_rcvd,
39 __u32 *last_xid, struct ptlrpc_request **request)
41 struct ptlrpc_request *req;
42 struct mds_body *body;
43 struct mdc_obd *mdc = mdc_conn2mdc(conn);
44 int rc, size = sizeof(*body);
47 req = ptlrpc_prep_req(mdc->mdc_client, mdc->mdc_conn,
48 MDS_GETSTATUS, 1, &size, NULL);
50 GOTO(out, rc = -ENOMEM);
52 body = lustre_msg_buf(req->rq_reqmsg, 0);
53 req->rq_level = LUSTRE_CONN_CON;
54 req->rq_replen = lustre_msg_size(1, &size);
56 mds_pack_req_body(req);
57 rc = ptlrpc_queue_wait(req);
58 rc = ptlrpc_check_status(req, rc);
61 body = lustre_msg_buf(req->rq_repmsg, 0);
62 mds_unpack_body(body);
63 memcpy(rootfid, &body->fid1, sizeof(*rootfid));
64 *last_committed = req->rq_repmsg->last_committed;
65 *last_rcvd = req->rq_repmsg->last_rcvd;
66 *last_xid = body->last_xid;
68 CDEBUG(D_NET, "root ino=%ld, last_committed=%Lu, last_rcvd=%Lu,"
70 (unsigned long)rootfid->id,
71 (unsigned long long)*last_committed,
72 (unsigned long long)*last_rcvd,
83 int mdc_getattr(struct obd_conn *conn,
84 ino_t ino, int type, unsigned long valid, size_t ea_size,
85 struct ptlrpc_request **request)
87 struct mdc_obd *mdc = mdc_conn2mdc(conn);
88 struct ptlrpc_request *req;
89 struct mds_body *body;
90 int rc, size[2] = {sizeof(*body), 0}, bufcount = 1;
93 req = ptlrpc_prep_req(mdc->mdc_client, mdc->mdc_conn,
94 MDS_GETATTR, 1, size, NULL);
96 GOTO(out, rc = -ENOMEM);
98 body = lustre_msg_buf(req->rq_reqmsg, 0);
99 ll_ino2fid(&body->fid1, ino, 0, type);
104 size[1] = sizeof(struct obdo);
105 } else if (valid & OBD_MD_LINKNAME) {
109 req->rq_replen = lustre_msg_size(bufcount, size);
110 req->rq_level = LUSTRE_CONN_FULL;
112 rc = ptlrpc_queue_wait(req);
113 rc = ptlrpc_check_status(req, rc);
116 body = lustre_msg_buf(req->rq_repmsg, 0);
117 mds_unpack_body(body);
118 CDEBUG(D_NET, "mode: %o\n", body->mode);
127 static int mdc_lock_callback(struct ldlm_lock *lock, struct ldlm_lock *new,
128 void *data, int data_len,
129 struct ptlrpc_request **req)
132 struct inode *inode = data;
136 /* Completion AST. Do nothing. */
140 if (data_len != sizeof(*inode)) {
141 CERROR("data_len should be %d, but is %d\n", sizeof(*inode),
146 /* FIXME: do something better than throwing away everything */
149 if (S_ISDIR(inode->i_mode)) {
150 CDEBUG(D_INODE, "invalidating inode %ld\n", inode->i_ino);
151 invalidate_inode_pages(inode);
154 rc = ldlm_cli_cancel(lock->l_client, lock);
156 CERROR("ldlm_cli_cancel: %d\n", rc);
162 int mdc_enqueue(struct obd_conn *conn, int lock_type, struct lookup_intent *it,
163 int lock_mode, struct inode *dir, struct dentry *de,
164 struct lustre_handle *lockh, __u64 id, char *tgt, int tgtlen,
165 void *data, int datalen)
167 struct ptlrpc_request *req;
168 struct obd_device *obddev = conn->oc_dev;
169 struct mdc_obd *mdc = mdc_conn2mdc(conn);
170 __u64 res_id[RES_NAME_SIZE] = {dir->i_ino};
171 int size[5] = {sizeof(struct ldlm_request), sizeof(struct ldlm_intent)};
173 struct ldlm_reply *dlm_rep;
174 struct ldlm_intent *lit;
177 #warning FIXME: Andreas, the sgid directory stuff also goes here, but check again on mds
179 LDLM_DEBUG_NOLOCK("mdsintent %d dir %ld", it->it_op, dir->i_ino);
183 it->it_mode = (it->it_mode | S_IFDIR) & ~current->fs->umask;
186 it->it_op = IT_GETATTR;
188 case (IT_CREAT|IT_OPEN):
190 it->it_mode = (it->it_mode | S_IFREG) & ~current->fs->umask;
193 it->it_mode = (it->it_mode | S_IFLNK) & ~current->fs->umask;
197 if (it->it_op & (IT_MKDIR | IT_CREAT | IT_SYMLINK | IT_MKNOD)) {
198 size[2] = sizeof(struct mds_rec_create);
199 size[3] = de->d_name.len + 1;
200 size[4] = tgtlen + 1;
201 req = ptlrpc_prep_req(mdc->mdc_ldlm_client, mdc->mdc_conn,
202 LDLM_ENQUEUE, 5, size, NULL);
206 /* pack the intent */
207 lit = lustre_msg_buf(req->rq_reqmsg, 1);
208 lit->opc = NTOH__u64((__u64)it->it_op);
210 /* pack the intended request */
211 mds_create_pack(req, 2, dir, it->it_mode, id, current->fsuid,
212 current->fsgid, CURRENT_TIME, de->d_name.name,
213 de->d_name.len, tgt, tgtlen);
215 size[0] = sizeof(struct ldlm_reply);
216 size[1] = sizeof(struct mds_body);
217 size[2] = sizeof(struct obdo);
218 req->rq_replen = lustre_msg_size(3, size);
219 } else if ( it->it_op == IT_RENAME2 ) {
220 struct dentry *old_de = it->it_data;
222 size[2] = sizeof(struct mds_rec_rename);
223 size[3] = old_de->d_name.len + 1;
224 size[4] = de->d_name.len + 1;
225 req = ptlrpc_prep_req(mdc->mdc_ldlm_client, mdc->mdc_conn,
226 LDLM_ENQUEUE, 5, size, NULL);
230 /* pack the intent */
231 lit = lustre_msg_buf(req->rq_reqmsg, 1);
232 lit->opc = NTOH__u64((__u64)it->it_op);
234 /* pack the intended request */
235 mds_rename_pack(req, 2, old_de->d_inode, dir,
236 old_de->d_parent->d_name.name,
237 old_de->d_parent->d_name.len,
238 de->d_name.name, de->d_name.len);
240 size[0] = sizeof(struct ldlm_reply);
241 size[1] = sizeof(struct mds_body);
242 req->rq_replen = lustre_msg_size(2, size);
243 } else if ( it->it_op == IT_UNLINK ) {
244 size[2] = sizeof(struct mds_rec_unlink);
245 size[3] = de->d_name.len + 1;
246 req = ptlrpc_prep_req(mdc->mdc_ldlm_client, mdc->mdc_conn,
247 LDLM_ENQUEUE, 4, size, NULL);
251 /* pack the intent */
252 lit = lustre_msg_buf(req->rq_reqmsg, 1);
253 lit->opc = NTOH__u64((__u64)it->it_op);
255 /* pack the intended request */
256 mds_unlink_pack(req, 2, dir, NULL, de->d_name.name,
258 size[0] = sizeof(struct ldlm_reply);
259 size[1] = sizeof(struct obdo);
260 req->rq_replen = lustre_msg_size(2, size);
261 } else if ( it->it_op == IT_GETATTR || it->it_op == IT_RENAME ||
262 it->it_op == IT_OPEN ) {
263 size[2] = sizeof(struct mds_body);
264 size[3] = de->d_name.len + 1;
266 req = ptlrpc_prep_req(mdc->mdc_ldlm_client, mdc->mdc_conn,
267 LDLM_ENQUEUE, 4, size, NULL);
271 /* pack the intent */
272 lit = lustre_msg_buf(req->rq_reqmsg, 1);
273 lit->opc = NTOH__u64((__u64)it->it_op);
275 /* pack the intended request */
276 mds_getattr_pack(req, 2, dir, de->d_name.name, de->d_name.len);
278 /* get ready for the reply */
279 size[0] = sizeof(struct ldlm_reply);
280 size[1] = sizeof(struct mds_body);
281 size[2] = sizeof(struct obdo);
282 req->rq_replen = lustre_msg_size(3, size);
283 } else if ( it->it_op == IT_SETATTR) {
284 size[2] = sizeof(struct mds_rec_setattr);
285 size[3] = de->d_name.len + 1;
286 req = ptlrpc_prep_req(mdc->mdc_ldlm_client, mdc->mdc_conn,
287 LDLM_ENQUEUE, 5, size, NULL);
291 lit = lustre_msg_buf(req->rq_reqmsg, 1);
292 lit->opc = NTOH__u64((__u64)it->it_op);
297 mds_setattr_pack(req, 2, dir, it->it_iattr,
298 de->d_name.name, de->d_name.len);
299 size[0] = sizeof(struct ldlm_reply);
300 size[1] = sizeof(struct mds_body);
301 req->rq_replen = lustre_msg_size(2, size);
302 } else if ( it->it_op == IT_READDIR ) {
303 req = ptlrpc_prep_req(mdc->mdc_ldlm_client, mdc->mdc_conn,
304 LDLM_ENQUEUE, 1, size, NULL);
308 /* get ready for the reply */
309 size[0] = sizeof(struct ldlm_reply);
310 req->rq_replen = lustre_msg_size(1, size);
315 #warning FIXME: the data here needs to be different if a lock was granted for a different inode
316 rc = ldlm_cli_enqueue(mdc->mdc_ldlm_client, mdc->mdc_conn, req,
317 obddev->obd_namespace, NULL, res_id, lock_type,
318 NULL, 0, lock_mode, &flags,
319 (void *)mdc_lock_callback, data, datalen, lockh);
322 memset(lockh, 0, sizeof(*lockh));
323 } else if (rc != 0) {
324 CERROR("ldlm_cli_enqueue: %d\n", rc);
328 dlm_rep = lustre_msg_buf(req->rq_repmsg, 0);
329 it->it_disposition = (int) dlm_rep->lock_policy_res1;
330 it->it_status = (int) dlm_rep->lock_policy_res2;
331 it->it_lock_mode = lock_mode;
337 int mdc_open(struct obd_conn *conn, ino_t ino, int type, int flags,
339 __u64 cookie, __u64 *fh, struct ptlrpc_request **request)
341 struct mdc_obd *mdc = mdc_conn2mdc(conn);
342 struct mds_body *body;
343 int rc, size[2] = {sizeof(*body)}, bufcount = 1;
344 struct ptlrpc_request *req;
349 size[1] = sizeof(*obdo);
352 req = ptlrpc_prep_req(mdc->mdc_client, mdc->mdc_conn,
353 MDS_OPEN, bufcount, size, NULL);
355 GOTO(out, rc = -ENOMEM);
357 req->rq_flags |= PTL_RPC_FL_REPLAY;
358 req->rq_level = LUSTRE_CONN_FULL;
359 body = lustre_msg_buf(req->rq_reqmsg, 0);
361 ll_ino2fid(&body->fid1, ino, 0, type);
362 body->flags = HTON__u32(flags);
363 body->extra = cookie;
366 memcpy(lustre_msg_buf(req->rq_reqmsg, 1), obdo, sizeof(*obdo));
368 req->rq_replen = lustre_msg_size(1, size);
370 rc = ptlrpc_queue_wait(req);
371 rc = ptlrpc_check_status(req, rc);
374 body = lustre_msg_buf(req->rq_repmsg, 0);
375 mds_unpack_body(body);
385 int mdc_close(struct obd_conn *conn,
386 ino_t ino, int type, __u64 fh, struct ptlrpc_request **request)
388 struct mdc_obd *mdc = mdc_conn2mdc(conn);
389 struct mds_body *body;
390 int rc, size = sizeof(*body);
391 struct ptlrpc_request *req;
393 req = ptlrpc_prep_req(mdc->mdc_client, mdc->mdc_conn,
394 MDS_CLOSE, 1, &size, NULL);
396 GOTO(out, rc = -ENOMEM);
398 body = lustre_msg_buf(req->rq_reqmsg, 0);
399 ll_ino2fid(&body->fid1, ino, 0, type);
402 req->rq_level = LUSTRE_CONN_FULL;
403 req->rq_replen = lustre_msg_size(0, NULL);
405 rc = ptlrpc_queue_wait(req);
406 rc = ptlrpc_check_status(req, rc);
414 int mdc_readpage(struct obd_conn *conn, ino_t ino, int type, __u64 offset,
415 char *addr, struct ptlrpc_request **request)
417 struct mdc_obd *mdc = mdc_conn2mdc(conn);
418 struct ptlrpc_request *req = NULL;
419 struct ptlrpc_bulk_desc *desc = NULL;
420 struct ptlrpc_bulk_page *bulk = NULL;
421 struct mds_body *body;
422 int rc, size = sizeof(*body);
425 CDEBUG(D_INODE, "inode: %ld\n", (long)ino);
427 desc = ptlrpc_prep_bulk(mdc->mdc_conn);
429 GOTO(out, rc = -ENOMEM);
431 req = ptlrpc_prep_req(mdc->mdc_client, mdc->mdc_conn,
432 MDS_READPAGE, 1, &size, NULL);
434 GOTO(out2, rc = -ENOMEM);
436 bulk = ptlrpc_prep_bulk_page(desc);
437 bulk->b_buflen = PAGE_SIZE;
439 bulk->b_xid = req->rq_xid;
440 desc->b_portal = MDS_BULK_PORTAL;
442 rc = ptlrpc_register_bulk(desc);
444 CERROR("couldn't setup bulk sink: error %d.\n", rc);
448 body = lustre_msg_buf(req->rq_reqmsg, 0);
450 body->fid1.f_type = type;
453 req->rq_replen = lustre_msg_size(1, &size);
454 req->rq_level = LUSTRE_CONN_FULL;
455 rc = ptlrpc_queue_wait(req);
456 rc = ptlrpc_check_status(req, rc);
458 ptlrpc_abort_bulk(desc);
461 body = lustre_msg_buf(req->rq_repmsg, 0);
462 mds_unpack_body(body);
467 ptlrpc_free_bulk(desc);
474 int mdc_statfs(struct ptlrpc_client *cl, struct ptlrpc_connection *conn,
475 struct statfs *statfs,
476 struct ptlrpc_request **request)
478 struct mds_rec_setattr *rec;
479 struct ptlrpc_request *req;
480 int rc, size = sizeof(*rec);
483 req = ptlrpc_prep_req(cl, conn, MDS_STATFS, 1, &size, NULL);
487 rec = lustre_msg_buf(req->rq_reqmsg, 0);
488 mds_setattr_pack(rec, inode, iattr);
490 size = sizeof(struct mds_body);
491 req->rq_replen = lustre_msg_size(1, &size);
493 rc = mdc_reint(cl, req, LUSTRE_CONN_FULL);
495 if (rc == -ERESTARTSYS )
502 static int mdc_ioctl(long cmd, struct obd_conn *conn, int len, void *karg,
506 /* FIXME XXX : This should use the new ioc_data to pass args in */
508 struct ptlrpc_client cl;
509 struct ptlrpc_connection *conn;
510 struct ptlrpc_request *request;
514 if (_IOC_TYPE(cmd) != IOC_REQUEST_TYPE ||
515 _IOC_NR(cmd) < IOC_REQUEST_MIN_NR ||
516 _IOC_NR(cmd) > IOC_REQUEST_MAX_NR ) {
517 CDEBUG(D_IOCTL, "invalid ioctl ( type %d, nr %d, size %d )\n",
518 _IOC_TYPE(cmd), _IOC_NR(cmd), _IOC_SIZE(cmd));
522 ptlrpc_init_client(NULL, NULL,
523 MDS_REQUEST_PORTAL, MDC_REPLY_PORTAL, &cl);
524 connection = ptlrpc_uuid_to_connection("mds");
526 CERROR("cannot create client\n");
531 case IOC_REQUEST_GETATTR: {
532 CERROR("-- getting attr for ino %lu\n", arg);
533 err = mdc_getattr(&cl, connection, arg, S_IFDIR, ~0, 0,
535 CERROR("-- done err %d\n", err);
540 case IOC_REQUEST_READPAGE: {
542 OBD_ALLOC(buf, PAGE_SIZE);
547 CERROR("-- readpage 0 for ino %lu\n", arg);
548 err = mdc_readpage(&cl, connection, arg, S_IFDIR, 0, buf,
550 CERROR("-- done err %d\n", err);
551 OBD_FREE(buf, PAGE_SIZE);
556 case IOC_REQUEST_SETATTR: {
561 inode.i_generation = 0;
562 iattr.ia_mode = 040777;
564 iattr.ia_valid = ATTR_MODE | ATTR_ATIME;
566 err = mdc_setattr(&cl, connection, &inode, &iattr, &request);
567 CERROR("-- done err %d\n", err);
572 case IOC_REQUEST_CREATE: {
577 inode.i_generation = 0;
578 iattr.ia_mode = 040777;
580 iattr.ia_valid = ATTR_MODE | ATTR_ATIME;
582 err = mdc_create(&cl, connection, &inode,
583 "foofile", strlen("foofile"),
584 NULL, 0, 0100707, 47114711,
585 11, 47, 0, NULL, &request);
586 CERROR("-- done err %d\n", err);
591 case IOC_REQUEST_OPEN: {
593 copy_from_user(&ino, (__u64 *)arg, sizeof(ino));
594 CERROR("-- opening ino %llu\n", (unsigned long long)ino);
595 err = mdc_open(&cl, connection, ino, S_IFDIR, O_RDONLY, 4711,
597 copy_to_user((__u64 *)arg, &fh, sizeof(fh));
598 CERROR("-- done err %d (fh=%Lu)\n", err,
599 (unsigned long long)fh);
604 case IOC_REQUEST_CLOSE: {
605 CERROR("-- closing ino 2, filehandle %lu\n", arg);
606 err = mdc_close(&cl, connection, 2, S_IFDIR, arg, &request);
607 CERROR("-- done err %d\n", err);
613 GOTO(out, err = -EINVAL);
617 ptlrpc_free_req(request);
618 ptlrpc_put_connection(connection);
619 ptlrpc_cleanup_client(&cl);
626 static int mdc_setup(struct obd_device *obddev, obd_count len, void *buf)
628 struct obd_ioctl_data* data = buf;
629 struct mdc_obd *mdc = &obddev->u.mdc;
630 char server_uuid[37];
634 if (data->ioc_inllen1 < 1) {
635 CERROR("osc setup requires a TARGET UUID\n");
639 if (data->ioc_inllen1 > 37) {
640 CERROR("mdc UUID must be less than 38 characters\n");
644 if (data->ioc_inllen2 < 1) {
645 CERROR("mdc setup requires a SERVER UUID\n");
649 if (data->ioc_inllen2 > 37) {
650 CERROR("mdc UUID must be less than 38 characters\n");
654 memcpy(mdc->mdc_target_uuid, data->ioc_inlbuf1, data->ioc_inllen1);
655 memcpy(server_uuid, data->ioc_inlbuf2, MIN(data->ioc_inllen2,
656 sizeof(server_uuid)));
658 mdc->mdc_conn = ptlrpc_uuid_to_connection(server_uuid);
662 OBD_ALLOC(mdc->mdc_client, sizeof(*mdc->mdc_client));
663 if (mdc->mdc_client == NULL)
664 GOTO(out_conn, rc = -ENOMEM);
666 OBD_ALLOC(mdc->mdc_ldlm_client, sizeof(*mdc->mdc_ldlm_client));
667 if (mdc->mdc_ldlm_client == NULL)
668 GOTO(out_client, rc = -ENOMEM);
670 ptlrpc_init_client(NULL, NULL, MDS_REQUEST_PORTAL, MDC_REPLY_PORTAL,
672 ptlrpc_init_client(NULL, NULL, LDLM_REQUEST_PORTAL, LDLM_REPLY_PORTAL,
673 mdc->mdc_ldlm_client);
674 mdc->mdc_client->cli_name = "mdc";
675 mdc->mdc_ldlm_client->cli_name = "ldlm";
676 /* XXX get recovery hooked in here again */
677 //ptlrpc_init_client(ptlrpc_connmgr, ll_recover,...
679 ptlrpc_init_client(ptlrpc_connmgr, NULL,
680 MDS_REQUEST_PORTAL, MDC_REPLY_PORTAL,
687 OBD_FREE(mdc->mdc_client, sizeof(*mdc->mdc_client));
689 ptlrpc_put_connection(mdc->mdc_conn);
693 static int mdc_cleanup(struct obd_device * obddev)
695 struct mdc_obd *mdc = &obddev->u.mdc;
697 ptlrpc_cleanup_client(mdc->mdc_client);
698 OBD_FREE(mdc->mdc_client, sizeof(*mdc->mdc_client));
699 ptlrpc_cleanup_client(mdc->mdc_ldlm_client);
700 OBD_FREE(mdc->mdc_ldlm_client, sizeof(*mdc->mdc_ldlm_client));
701 ptlrpc_put_connection(mdc->mdc_conn);
707 static int mdc_connect(struct obd_conn *conn)
709 struct mdc_obd *mdc = mdc_conn2mdc(conn);
710 struct ptlrpc_request *request;
711 int rc, size = sizeof(mdc->mdc_target_uuid);
712 char *tmp = mdc->mdc_target_uuid;
716 conn->oc_dev->obd_namespace =
717 ldlm_namespace_new("mdc", LDLM_NAMESPACE_CLIENT);
718 if (conn->oc_dev->obd_namespace == NULL)
721 request = ptlrpc_prep_req(mdc->mdc_client, mdc->mdc_conn,
722 MDS_CONNECT, 1, &size, &tmp);
726 request->rq_replen = lustre_msg_size(0, NULL);
728 rc = ptlrpc_queue_wait(request);
732 mdc->mdc_client->cli_target_devno = request->rq_repmsg->target_id;
733 mdc->mdc_ldlm_client->cli_target_devno =
734 mdc->mdc_client->cli_target_devno;
737 ptlrpc_free_req(request);
741 static int mdc_disconnect(struct obd_conn *conn)
743 struct mdc_obd *mdc = mdc_conn2mdc(conn);
744 struct ptlrpc_request *request;
745 struct mds_body *body;
746 int rc, size = sizeof(*body);
749 ldlm_namespace_free(conn->oc_dev->obd_namespace);
750 request = ptlrpc_prep_req(mdc->mdc_client, mdc->mdc_conn,
751 MDS_DISCONNECT, 1, &size,
756 body = lustre_msg_buf(request->rq_reqmsg, 0);
757 body->valid = conn->oc_id;
759 request->rq_replen = lustre_msg_size(0, NULL);
761 rc = ptlrpc_queue_wait(request);
764 ptlrpc_free_req(request);
768 struct obd_ops mdc_obd_ops = {
770 o_cleanup: mdc_cleanup,
771 o_connect: mdc_connect,
772 o_disconnect: mdc_disconnect,
773 o_iocontrol: mdc_ioctl
776 static int __init ptlrpc_request_init(void)
778 return obd_register_type(&mdc_obd_ops, LUSTRE_MDC_NAME);
781 static void __exit ptlrpc_request_exit(void)
783 obd_unregister_type(LUSTRE_MDC_NAME);
786 MODULE_AUTHOR("Cluster File Systems <info@clusterfs.com>");
787 MODULE_DESCRIPTION("Lustre Metadata Client v1.0");
788 MODULE_LICENSE("GPL");
790 EXPORT_SYMBOL(mdc_getstatus);
791 EXPORT_SYMBOL(mdc_enqueue);
792 EXPORT_SYMBOL(mdc_getattr);
793 EXPORT_SYMBOL(mdc_create);
794 EXPORT_SYMBOL(mdc_unlink);
795 EXPORT_SYMBOL(mdc_rename);
796 EXPORT_SYMBOL(mdc_link);
797 EXPORT_SYMBOL(mdc_readpage);
798 EXPORT_SYMBOL(mdc_setattr);
799 EXPORT_SYMBOL(mdc_close);
800 EXPORT_SYMBOL(mdc_open);
802 module_init(ptlrpc_request_init);
803 module_exit(ptlrpc_request_exit);