Whamcloud - gitweb
Add statfs fixups to head.
[fs/lustre-release.git] / lustre / ost / ost_handler.c
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  Copyright (C) 2001, 2002 Cluster File Systems, Inc.
5  *   Author: Peter J. Braam <braam@clusterfs.com>
6  *   Author: Phil Schwan <phil@clusterfs.com>
7  *
8  *   This file is part of Lustre, http://www.lustre.org.
9  *
10  *   Lustre is free software; you can redistribute it and/or
11  *   modify it under the terms of version 2 of the GNU General Public
12  *   License as published by the Free Software Foundation.
13  *
14  *   Lustre is distributed in the hope that it will be useful,
15  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *   GNU General Public License for more details.
18  *
19  *   You should have received a copy of the GNU General Public License
20  *   along with Lustre; if not, write to the Free Software
21  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  *
23  *  Storage Target Handling functions
24  *  Lustre Object Server Module (OST)
25  *
26  *  This server is single threaded at present (but can easily be multi
27  *  threaded). For testing and management it is treated as an
28  *  obd_device, although it does not export a full OBD method table
29  *  (the requests are coming in over the wire, so object target
30  *  modules do not have a full method table.)
31  */
32
33 #define EXPORT_SYMTAB
34 #define DEBUG_SUBSYSTEM S_OST
35
36 #include <linux/module.h>
37 #include <linux/obd_ost.h>
38 #include <linux/lustre_net.h>
39 #include <linux/lustre_dlm.h>
40
41 static int ost_destroy(struct ptlrpc_request *req)
42 {
43         struct lustre_handle *conn = (struct lustre_handle *)req->rq_reqmsg;
44         struct ost_body *body;
45         int rc, size = sizeof(*body);
46         ENTRY;
47
48         body = lustre_msg_buf(req->rq_reqmsg, 0);
49
50         rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, &req->rq_repmsg);
51         if (rc)
52                 RETURN(rc);
53
54         req->rq_status = obd_destroy(conn, &body->oa);
55         RETURN(0);
56 }
57
58 static int ost_getattr(struct ptlrpc_request *req)
59 {
60         struct lustre_handle *conn = (struct lustre_handle *)req->rq_reqmsg;
61         struct ost_body *body, *repbody;
62         int rc, size = sizeof(*body);
63         ENTRY;
64
65         body = lustre_msg_buf(req->rq_reqmsg, 0);
66
67         rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, &req->rq_repmsg);
68         if (rc)
69                 RETURN(rc);
70
71         repbody = lustre_msg_buf(req->rq_repmsg, 0);
72         memcpy(&repbody->oa, &body->oa, sizeof(body->oa));
73         req->rq_status = obd_getattr(conn, &repbody->oa);
74         RETURN(0);
75 }
76
77 static int ost_statfs(struct ptlrpc_request *req)
78 {
79         struct lustre_handle *conn = (struct lustre_handle *)req->rq_reqmsg;
80         struct obd_statfs *osfs;
81         struct statfs sfs;
82         int rc, size = sizeof(*osfs);
83         ENTRY;
84
85         rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, &req->rq_repmsg);
86         if (rc)
87                 RETURN(rc);
88
89         rc = obd_statfs(conn, &sfs);
90         if (rc) {
91                 CERROR("ost: statfs failed: rc %d\n", rc);
92                 GOTO(out, rc);
93         }
94         osfs = lustre_msg_buf(req->rq_repmsg, 0);
95         memset(osfs, 0, size);
96         obd_statfs_pack(osfs, &sfs);
97 out:
98         req->rq_status = rc;
99         RETURN(0);
100 }
101
102 static int ost_open(struct ptlrpc_request *req)
103 {
104         struct lustre_handle *conn = (struct lustre_handle *)req->rq_reqmsg;
105         struct ost_body *body, *repbody;
106         int rc, size = sizeof(*body);
107         ENTRY;
108
109         body = lustre_msg_buf(req->rq_reqmsg, 0);
110
111         rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, &req->rq_repmsg);
112         if (rc)
113                 RETURN(rc);
114
115         repbody = lustre_msg_buf(req->rq_repmsg, 0);
116         memcpy(&repbody->oa, &body->oa, sizeof(body->oa));
117         req->rq_status = obd_open(conn, &repbody->oa);
118         RETURN(0);
119 }
120
121 static int ost_close(struct ptlrpc_request *req)
122 {
123         struct lustre_handle *conn = (struct lustre_handle *)req->rq_reqmsg;
124         struct ost_body *body, *repbody;
125         int rc, size = sizeof(*body);
126         ENTRY;
127
128         body = lustre_msg_buf(req->rq_reqmsg, 0);
129
130         rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, &req->rq_repmsg);
131         if (rc)
132                 RETURN(rc);
133
134         repbody = lustre_msg_buf(req->rq_repmsg, 0);
135         memcpy(&repbody->oa, &body->oa, sizeof(body->oa));
136         req->rq_status = obd_close(conn, &repbody->oa);
137         RETURN(0);
138 }
139
140 static int ost_create(struct ptlrpc_request *req)
141 {
142         struct lustre_handle *conn = (struct lustre_handle *)req->rq_reqmsg;
143         struct ost_body *body, *repbody;
144         int rc, size = sizeof(*body);
145         ENTRY;
146
147         body = lustre_msg_buf(req->rq_reqmsg, 0);
148
149         rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, &req->rq_repmsg);
150         if (rc)
151                 RETURN(rc);
152
153         repbody = lustre_msg_buf(req->rq_repmsg, 0);
154         memcpy(&repbody->oa, &body->oa, sizeof(body->oa));
155         req->rq_status = obd_create(conn, &repbody->oa);
156         RETURN(0);
157 }
158
159 static int ost_punch(struct ptlrpc_request *req)
160 {
161         struct lustre_handle *conn = (struct lustre_handle *)req->rq_reqmsg;
162         struct ost_body *body, *repbody;
163         int rc, size = sizeof(*body);
164         ENTRY;
165
166         body = lustre_msg_buf(req->rq_reqmsg, 0);
167
168         rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, &req->rq_repmsg);
169         if (rc)
170                 RETURN(rc);
171
172         repbody = lustre_msg_buf(req->rq_repmsg, 0);
173         memcpy(&repbody->oa, &body->oa, sizeof(body->oa));
174         req->rq_status = obd_punch(conn, &repbody->oa,
175                                    repbody->oa.o_blocks, repbody->oa.o_size);
176         RETURN(0);
177 }
178
179 static int ost_setattr(struct ptlrpc_request *req)
180 {
181         struct lustre_handle *conn = (struct lustre_handle *)req->rq_reqmsg;
182         struct ost_body *body, *repbody;
183         int rc, size = sizeof(*body);
184         ENTRY;
185
186         body = lustre_msg_buf(req->rq_reqmsg, 0);
187
188         rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, &req->rq_repmsg);
189         if (rc)
190                 RETURN(rc);
191
192         repbody = lustre_msg_buf(req->rq_repmsg, 0);
193         memcpy(&repbody->oa, &body->oa, sizeof(body->oa));
194         req->rq_status = obd_setattr(conn, &repbody->oa);
195         RETURN(0);
196 }
197
198 static int ost_brw_read(struct ptlrpc_request *req)
199 {
200         struct lustre_handle *conn = (struct lustre_handle *)req->rq_reqmsg;
201         struct ptlrpc_bulk_desc *desc;
202         void *tmp1, *tmp2, *end2;
203         struct niobuf_remote *remote_nb;
204         struct niobuf_local *local_nb = NULL;
205         struct obd_ioobj *ioo;
206         struct ost_body *body;
207         int rc, cmd, i, j, objcount, niocount, size = sizeof(*body);
208         ENTRY;
209
210         body = lustre_msg_buf(req->rq_reqmsg, 0);
211         tmp1 = lustre_msg_buf(req->rq_reqmsg, 1);
212         tmp2 = lustre_msg_buf(req->rq_reqmsg, 2);
213         end2 = (char *)tmp2 + req->rq_reqmsg->buflens[2];
214         objcount = req->rq_reqmsg->buflens[1] / sizeof(*ioo);
215         niocount = req->rq_reqmsg->buflens[2] / sizeof(*remote_nb);
216         cmd = body->data;
217
218         for (i = 0; i < objcount; i++) {
219                 ost_unpack_ioo(&tmp1, &ioo);
220                 if (tmp2 + ioo->ioo_bufcnt > end2) {
221                         LBUG();
222                         GOTO(out, rc = -EFAULT);
223                 }
224                 for (j = 0; j < ioo->ioo_bufcnt; j++)
225                         ost_unpack_niobuf(&tmp2, &remote_nb);
226         }
227
228         rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, &req->rq_repmsg);
229         if (rc)
230                 RETURN(rc);
231         OBD_ALLOC(local_nb, sizeof(*local_nb) * niocount);
232         if (local_nb == NULL)
233                 RETURN(-ENOMEM);
234
235         /* The unpackers move tmp1 and tmp2, so reset them before using */
236         tmp1 = lustre_msg_buf(req->rq_reqmsg, 1);
237         tmp2 = lustre_msg_buf(req->rq_reqmsg, 2);
238         req->rq_status = obd_preprw(cmd, conn, objcount,
239                                     tmp1, niocount, tmp2, local_nb, NULL);
240
241         if (req->rq_status)
242                 GOTO(out_local, 0);
243
244         desc = ptlrpc_prep_bulk(req->rq_connection);
245         if (desc == NULL)
246                 GOTO(out_local, rc = -ENOMEM);
247         desc->b_portal = OST_BULK_PORTAL;
248
249         for (i = 0; i < niocount; i++) {
250                 struct ptlrpc_bulk_page *bulk;
251                 bulk = ptlrpc_prep_bulk_page(desc);
252                 if (bulk == NULL)
253                         GOTO(out_bulk, rc = -ENOMEM);
254                 remote_nb = &(((struct niobuf_remote *)tmp2)[i]);
255                 bulk->b_xid = remote_nb->xid;
256                 bulk->b_buf = (void *)(unsigned long)local_nb[i].addr;
257                 bulk->b_buflen = PAGE_SIZE;
258         }
259
260         rc = ptlrpc_send_bulk(desc);
261         if (rc)
262                 GOTO(out_bulk, rc);
263
264         wait_event_interruptible(desc->b_waitq, ptlrpc_check_bulk_sent(desc));
265         if (desc->b_flags & PTL_RPC_FL_INTR)
266                 rc = -EINTR;
267
268         /* The unpackers move tmp1 and tmp2, so reset them before using */
269         tmp1 = lustre_msg_buf(req->rq_reqmsg, 1);
270         tmp2 = lustre_msg_buf(req->rq_reqmsg, 2);
271         req->rq_status = obd_commitrw(cmd, conn, objcount,
272                                       tmp1, niocount, local_nb, NULL);
273
274 out_bulk:
275         ptlrpc_free_bulk(desc);
276 out_local:
277         OBD_FREE(local_nb, sizeof(*local_nb) * niocount);
278 out:
279         if (rc)
280                 ptlrpc_error(req->rq_svc, req);
281         else
282                 ptlrpc_reply(req->rq_svc, req);
283         RETURN(rc);
284 }
285
286 static int ost_brw_write(struct ptlrpc_request *req)
287 {
288         struct lustre_handle *conn = (struct lustre_handle *)req->rq_reqmsg;
289         struct ptlrpc_bulk_desc *desc;
290         struct niobuf_remote *remote_nb;
291         struct niobuf_local *local_nb, *lnb;
292         struct obd_ioobj *ioo;
293         struct ost_body *body;
294         int cmd, rc, i, j, objcount, niocount, size[2] = {sizeof(*body)};
295         void *tmp1, *tmp2, *end2;
296         void *desc_priv = NULL;
297         int reply_sent = 0;
298         ENTRY;
299
300         body = lustre_msg_buf(req->rq_reqmsg, 0);
301         tmp1 = lustre_msg_buf(req->rq_reqmsg, 1);
302         tmp2 = lustre_msg_buf(req->rq_reqmsg, 2);
303         end2 = (char *)tmp2 + req->rq_reqmsg->buflens[2];
304         objcount = req->rq_reqmsg->buflens[1] / sizeof(*ioo);
305         niocount = req->rq_reqmsg->buflens[2] / sizeof(*remote_nb);
306         cmd = body->data;
307
308         for (i = 0; i < objcount; i++) {
309                 ost_unpack_ioo((void *)&tmp1, &ioo);
310                 if (tmp2 + ioo->ioo_bufcnt > end2) {
311                         rc = -EFAULT;
312                         break;
313                 }
314                 for (j = 0; j < ioo->ioo_bufcnt; j++)
315                         ost_unpack_niobuf((void *)&tmp2, &remote_nb);
316         }
317
318         size[1] = niocount * sizeof(*remote_nb);
319         rc = lustre_pack_msg(2, size, NULL, &req->rq_replen, &req->rq_repmsg);
320         if (rc)
321                 GOTO(out, rc);
322         remote_nb = lustre_msg_buf(req->rq_repmsg, 1);
323
324         OBD_ALLOC(local_nb, niocount * sizeof(*local_nb));
325         if (local_nb == NULL)
326                 GOTO(out, rc = -ENOMEM);
327
328         /* The unpackers move tmp1 and tmp2, so reset them before using */
329         tmp1 = lustre_msg_buf(req->rq_reqmsg, 1);
330         tmp2 = lustre_msg_buf(req->rq_reqmsg, 2);
331         req->rq_status = obd_preprw(cmd, conn, objcount,
332                                     tmp1, niocount, tmp2, local_nb, &desc_priv);
333         if (req->rq_status)
334                 GOTO(out_free, rc = 0); /* XXX is this correct? */
335
336         desc = ptlrpc_prep_bulk(req->rq_connection);
337         if (desc == NULL)
338                 GOTO(fail_preprw, rc = -ENOMEM);
339         desc->b_cb = NULL;
340         desc->b_portal = OSC_BULK_PORTAL;
341         desc->b_desc_private = desc_priv;
342         memcpy(&(desc->b_conn), &conn, sizeof(conn));
343
344         for (i = 0, lnb = local_nb; i < niocount; i++, lnb++) {
345                 struct ptlrpc_service *srv = req->rq_obd->u.ost.ost_service;
346                 struct ptlrpc_bulk_page *bulk;
347
348                 bulk = ptlrpc_prep_bulk_page(desc);
349                 if (bulk == NULL)
350                         GOTO(fail_bulk, rc = -ENOMEM);
351
352                 spin_lock(&srv->srv_lock);
353                 bulk->b_xid = srv->srv_xid++;
354                 spin_unlock(&srv->srv_lock);
355
356                 bulk->b_buf = lnb->addr;
357                 bulk->b_page = lnb->page;
358                 bulk->b_flags = lnb->flags;
359                 bulk->b_dentry = lnb->dentry;
360                 bulk->b_buflen = PAGE_SIZE;
361                 bulk->b_cb = NULL;
362
363                 /* this advances remote_nb */
364                 ost_pack_niobuf((void **)&remote_nb, lnb->offset, lnb->len, 0,
365                                 bulk->b_xid);
366         }
367
368         rc = ptlrpc_register_bulk(desc);
369         if (rc)
370                 GOTO(fail_bulk, rc);
371
372         reply_sent = 1;
373         ptlrpc_reply(req->rq_svc, req);
374
375         wait_event_interruptible(desc->b_waitq,
376                                  desc->b_flags & PTL_BULK_FL_RCVD);
377
378         rc = obd_commitrw(cmd, conn, objcount, tmp1, niocount, local_nb,
379                           desc->b_desc_private);
380         ptlrpc_free_bulk(desc);
381         EXIT;
382 out_free:
383         OBD_FREE(local_nb, niocount * sizeof(*local_nb));
384 out:
385         if (!reply_sent) {
386                 if (rc)
387                         ptlrpc_error(req->rq_svc, req);
388                 else
389                         ptlrpc_reply(req->rq_svc, req);
390         }
391         return rc;
392
393 fail_bulk:
394         ptlrpc_free_bulk(desc);
395 fail_preprw:
396         /* FIXME: how do we undo the preprw? */
397         goto out_free;
398 }
399
400 static int ost_brw(struct ptlrpc_request *req)
401 {
402         struct ost_body *body = lustre_msg_buf(req->rq_reqmsg, 0);
403
404         if (body->data & OBD_BRW_WRITE)
405                 return ost_brw_write(req);
406         else
407                 return ost_brw_read(req);
408 }
409
410
411 static int ost_handle(struct ptlrpc_request *req)
412 {
413         int rc;
414         ENTRY;
415
416         rc = lustre_unpack_msg(req->rq_reqmsg, req->rq_reqlen);
417         if (rc || OBD_FAIL_CHECK(OBD_FAIL_MDS_HANDLE_UNPACK)) {
418                 CERROR("lustre_mds: Invalid request\n");
419                 GOTO(out, rc);
420         }
421
422         if (req->rq_reqmsg->type != PTL_RPC_MSG_REQUEST) {
423                 CERROR("lustre_mds: wrong packet type sent %d\n",
424                        req->rq_reqmsg->type);
425                 GOTO(out, rc = -EINVAL);
426         }
427
428         if (req->rq_reqmsg->opc != OST_CONNECT &&
429             req->rq_export == NULL)
430                 GOTO(out, rc = -ENOTCONN);
431
432         if (strcmp(req->rq_obd->obd_type->typ_name, "ost") != 0)
433                 GOTO(out, rc = -EINVAL);
434
435         switch (req->rq_reqmsg->opc) {
436         case OST_CONNECT:
437                 CDEBUG(D_INODE, "connect\n");
438                 OBD_FAIL_RETURN(OBD_FAIL_OST_CONNECT_NET, 0);
439                 rc = target_handle_connect(req);
440                 break;
441         case OST_DISCONNECT:
442                 CDEBUG(D_INODE, "disconnect\n");
443                 OBD_FAIL_RETURN(OBD_FAIL_OST_DISCONNECT_NET, 0);
444                 rc = target_handle_disconnect(req);
445                 break;
446         case OST_CREATE:
447                 CDEBUG(D_INODE, "create\n");
448                 OBD_FAIL_RETURN(OBD_FAIL_OST_CREATE_NET, 0);
449                 rc = ost_create(req);
450                 break;
451         case OST_DESTROY:
452                 CDEBUG(D_INODE, "destroy\n");
453                 OBD_FAIL_RETURN(OBD_FAIL_OST_DESTROY_NET, 0);
454                 rc = ost_destroy(req);
455                 break;
456         case OST_GETATTR:
457                 CDEBUG(D_INODE, "getattr\n");
458                 OBD_FAIL_RETURN(OBD_FAIL_OST_GETATTR_NET, 0);
459                 rc = ost_getattr(req);
460                 break;
461         case OST_SETATTR:
462                 CDEBUG(D_INODE, "setattr\n");
463                 OBD_FAIL_RETURN(OBD_FAIL_OST_SETATTR_NET, 0);
464                 rc = ost_setattr(req);
465                 break;
466         case OST_OPEN:
467                 CDEBUG(D_INODE, "setattr\n");
468                 OBD_FAIL_RETURN(OBD_FAIL_OST_OPEN_NET, 0);
469                 rc = ost_open(req);
470                 break;
471         case OST_CLOSE:
472                 CDEBUG(D_INODE, "setattr\n");
473                 OBD_FAIL_RETURN(OBD_FAIL_OST_CLOSE_NET, 0);
474                 rc = ost_close(req);
475                 break;
476         case OST_BRW:
477                 CDEBUG(D_INODE, "brw\n");
478                 OBD_FAIL_RETURN(OBD_FAIL_OST_BRW_NET, 0);
479                 rc = ost_brw(req);
480                 /* ost_brw sends its own replies */
481                 RETURN(rc);
482         case OST_PUNCH:
483                 CDEBUG(D_INODE, "punch\n");
484                 OBD_FAIL_RETURN(OBD_FAIL_OST_PUNCH_NET, 0);
485                 rc = ost_punch(req);
486                 break;
487         case OST_STATFS:
488                 CDEBUG(D_INODE, "statfs\n");
489                 OBD_FAIL_RETURN(OBD_FAIL_OST_STATFS_NET, 0);
490                 rc = ost_statfs(req);
491                 break;
492         default:
493                 req->rq_status = -ENOTSUPP;
494                 rc = ptlrpc_error(req->rq_svc, req);
495                 RETURN(rc);
496         }
497
498         EXIT;
499 out:
500         //req->rq_status = rc;
501         if (rc) {
502                 CERROR("ost: processing error %d\n", rc);
503                 ptlrpc_error(req->rq_svc, req);
504         } else {
505                 CDEBUG(D_INODE, "sending reply\n");
506                 ptlrpc_reply(req->rq_svc, req);
507         }
508
509         return 0;
510 }
511
512 #define OST_NUM_THREADS 6
513
514 /* mount the file system (secretly) */
515 static int ost_setup(struct obd_device *obddev, obd_count len, void *buf)
516 {
517         struct obd_ioctl_data* data = buf;
518         struct ost_obd *ost = &obddev->u.ost;
519         struct obd_device *tgt;
520         int err;
521         int i;
522         ENTRY;
523
524         if (data->ioc_dev < 0 || data->ioc_dev > MAX_OBD_DEVICES)
525                 RETURN(-ENODEV);
526
527         MOD_INC_USE_COUNT;
528         tgt = &obd_dev[data->ioc_dev];
529         if (!(tgt->obd_flags & OBD_ATTACHED) ||
530             !(tgt->obd_flags & OBD_SET_UP)) {
531                 CERROR("device not attached or not set up (%d)\n",
532                        data->ioc_dev);
533                 GOTO(error_dec, err = -EINVAL);
534         }
535
536         err = obd_connect(&ost->ost_conn, tgt);
537         if (err) {
538                 CERROR("fail to connect to device %d\n", data->ioc_dev);
539                 GOTO(error_dec, err = -EINVAL);
540         }
541
542         ost->ost_service = ptlrpc_init_svc(64 * 1024, OST_REQUEST_PORTAL,
543                                            OSC_REPLY_PORTAL, "self",ost_handle);
544         if (!ost->ost_service) {
545                 CERROR("failed to start service\n");
546                 GOTO(error_disc, err = -EINVAL);
547         }
548
549         for (i = 0; i < OST_NUM_THREADS; i++) {
550                 err = ptlrpc_start_thread(obddev, ost->ost_service,
551                                           "lustre_ost");
552                 if (err) {
553                         CERROR("error starting thread #%d: rc %d\n", i, err);
554                         GOTO(error_disc, err = -EINVAL);
555                 }
556         }
557
558         RETURN(0);
559
560 error_disc:
561         obd_disconnect(&ost->ost_conn);
562 error_dec:
563         MOD_DEC_USE_COUNT;
564         RETURN(err);
565 }
566
567 static int ost_cleanup(struct obd_device * obddev)
568 {
569         struct ost_obd *ost = &obddev->u.ost;
570         int err;
571
572         ENTRY;
573
574         if ( !list_empty(&obddev->obd_exports) ) {
575                 CERROR("still has clients!\n");
576                 RETURN(-EBUSY);
577         }
578
579         ptlrpc_stop_all_threads(ost->ost_service);
580         ptlrpc_unregister_service(ost->ost_service);
581
582         err = obd_disconnect(&ost->ost_conn);
583         if (err) {
584                 CERROR("lustre ost: fail to disconnect device\n");
585                 RETURN(-EINVAL);
586         }
587
588         MOD_DEC_USE_COUNT;
589         RETURN(0);
590 }
591
592 /* use obd ops to offer management infrastructure */
593 static struct obd_ops ost_obd_ops = {
594         o_setup:       ost_setup,
595         o_cleanup:     ost_cleanup,
596 };
597
598 static int __init ost_init(void)
599 {
600         class_register_type(&ost_obd_ops, LUSTRE_OST_NAME);
601         return 0;
602 }
603
604 static void __exit ost_exit(void)
605 {
606         class_unregister_type(LUSTRE_OST_NAME);
607 }
608
609 MODULE_AUTHOR("Cluster File Systems, Inc. <info@clusterfs.com>");
610 MODULE_DESCRIPTION("Lustre Object Storage Target (OST) v0.01");
611 MODULE_LICENSE("GPL");
612
613 module_init(ost_init);
614 module_exit(ost_exit);