Whamcloud - gitweb
580a88a6b5209fe5c24a26f870dc630818a88d87
[fs/lustre-release.git] / lustre / llite / super.c
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  * Lustre Light Super operations
5  *
6  * This code is issued under the GNU General Public License.
7  * See the file COPYING in this distribution
8  *
9  * Copryright (C) 2002 Cluster File Systems, Inc.
10  */
11
12 #define DEBUG_SUBSYSTEM S_LLITE
13
14 #include <linux/module.h>
15 #include <linux/random.h>
16 #include <linux/version.h>
17 #include <linux/lustre_lite.h>
18 #include <linux/lustre_ha.h>
19 #include <linux/obd_lov.h>
20 #include <linux/lustre_dlm.h>
21 #include <linux/init.h>
22 #include <linux/fs.h>
23 #include <linux/lprocfs_status.h>
24
25 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
26 kmem_cache_t *ll_file_data_slab;
27 extern struct address_space_operations ll_aops;
28 extern struct address_space_operations ll_dir_aops;
29 struct super_operations ll_super_operations;
30
31 extern int ll_recover(struct recovd_data *, int);
32 extern int ll_commitcbd_setup(struct ll_sb_info *);
33 extern int ll_commitcbd_cleanup(struct ll_sb_info *);
34
35 extern void ll_proc_namespace(struct super_block* sb, char* osc, char* mdc);
36
37 static char *ll_read_opt(const char *opt, char *data)
38 {
39         char *value;
40         char *retval;
41         ENTRY;
42
43         CDEBUG(D_SUPER, "option: %s, data %s\n", opt, data);
44         if ( strncmp(opt, data, strlen(opt)) )
45                 RETURN(NULL);
46         if ( (value = strchr(data, '=')) == NULL )
47                 RETURN(NULL);
48
49         value++;
50         OBD_ALLOC(retval, strlen(value) + 1);
51         if ( !retval ) {
52                 CERROR("out of memory!\n");
53                 RETURN(NULL);
54         }
55
56         memcpy(retval, value, strlen(value)+1);
57         CDEBUG(D_SUPER, "Assigned option: %s, value %s\n", opt, retval);
58         RETURN(retval);
59 }
60
61 static int ll_set_opt(const char *opt, char *data, int fl)
62 {
63         ENTRY;
64
65         CDEBUG(D_SUPER, "option: %s, data %s\n", opt, data);
66         if ( strncmp(opt, data, strlen(opt)) )
67                 RETURN(0);
68         else
69                 RETURN(fl);
70 }
71
72 static void ll_options(char *options, char **ost, char **mds, int *flags)
73 {
74         char *this_char;
75         ENTRY;
76
77         if (!options) {
78                 EXIT;
79                 return;
80         }
81
82         for (this_char = strtok (options, ",");
83              this_char != NULL;
84              this_char = strtok (NULL, ",")) {
85                 CDEBUG(D_SUPER, "this_char %s\n", this_char);
86                 if ( (!*ost && (*ost = ll_read_opt("osc", this_char)))||
87                      (!*mds && (*mds = ll_read_opt("mdc", this_char)))||
88                      (!(*flags & LL_SBI_NOLCK) && ((*flags) = (*flags) |
89                       ll_set_opt("nolock", this_char, LL_SBI_NOLCK))) )
90                         continue;
91         }
92         EXIT;
93 }
94
95 #ifndef log2
96 #define log2(n) ffz(~(n))
97 #endif
98
99 static struct super_block * ll_read_super(struct super_block *sb,
100                                           void *data, int silent)
101 {
102         struct inode *root = 0;
103         struct obd_device *obd;
104         struct ll_sb_info *sbi;
105         char *osc = NULL;
106         char *mdc = NULL;
107         int err;
108         struct ll_fid rootfid;
109         struct obd_statfs osfs;
110         struct ptlrpc_request *request = NULL;
111         struct ptlrpc_connection *mdc_conn;
112         struct ll_read_inode2_cookie lic;
113         class_uuid_t uuid;
114
115      
116
117         ENTRY;
118         MOD_INC_USE_COUNT;
119
120         OBD_ALLOC(sbi, sizeof(*sbi));
121         if (!sbi) {
122                 MOD_DEC_USE_COUNT;
123                 RETURN(NULL);
124         }
125
126         INIT_LIST_HEAD(&sbi->ll_conn_chain);
127         INIT_LIST_HEAD(&sbi->ll_orphan_dentry_list);
128         generate_random_uuid(uuid);
129         class_uuid_unparse(uuid, sbi->ll_sb_uuid);
130
131         sb->u.generic_sbp = sbi;
132
133         ll_options(data, &osc, &mdc, &sbi->ll_flags);
134
135         if (!osc) {
136                 CERROR("no osc\n");
137                 GOTO(out_free, sb = NULL);
138         }
139
140         if (!mdc) {
141                 CERROR("no mdc\n");
142                 GOTO(out_free, sb = NULL);
143         }
144
145         obd = class_uuid2obd(mdc);
146         if (!obd) {
147                 CERROR("MDC %s: not setup or attached\n", mdc);
148                 GOTO(out_free, sb = NULL);
149         }
150
151         err = obd_connect(&sbi->ll_mdc_conn, obd, sbi->ll_sb_uuid,
152                           ptlrpc_recovd, ll_recover);
153         if (err) {
154                 CERROR("cannot connect to %s: rc = %d\n", mdc, err);
155                 GOTO(out_free, sb = NULL);
156         }
157
158 #warning Mike: is this the right place to raise the connection level?
159         mdc_conn = sbi2mdc(sbi)->cl_import.imp_connection;
160         mdc_conn->c_level = LUSTRE_CONN_FULL;
161         list_add(&mdc_conn->c_sb_chain, &sbi->ll_conn_chain);
162
163         obd = class_uuid2obd(osc);
164         if (!obd) {
165                 CERROR("OSC %s: not setup or attached\n", osc);
166                 GOTO(out_mdc, sb = NULL);
167         }
168
169         err = obd_connect(&sbi->ll_osc_conn, obd, sbi->ll_sb_uuid,
170                           ptlrpc_recovd, ll_recover);
171         if (err) {
172                 CERROR("cannot connect to %s: rc = %d\n", osc, err);
173                 GOTO(out_mdc, sb = NULL);
174         }
175
176         err = mdc_getstatus(&sbi->ll_mdc_conn, &rootfid);
177         if (err) {
178                 CERROR("cannot mds_connect: rc = %d\n", err);
179                 GOTO(out_mdc, sb = NULL);
180         }
181         CDEBUG(D_SUPER, "rootfid "LPU64"\n", rootfid.id);
182         sbi->ll_rootino = rootfid.id;
183
184         memset(&osfs, 0, sizeof(osfs));
185         err = obd_statfs(&sbi->ll_mdc_conn, &osfs);
186         sb->s_blocksize = osfs.os_bsize;
187         sb->s_blocksize_bits = log2(osfs.os_bsize);
188         sb->s_magic = LL_SUPER_MAGIC;
189         sb->s_maxbytes = (1ULL << (32 + 9)) - osfs.os_bsize;
190
191         sb->s_op = &ll_super_operations;
192
193         /* make root inode */
194         err = mdc_getattr(&sbi->ll_mdc_conn, sbi->ll_rootino, S_IFDIR,
195                           OBD_MD_FLNOTOBD|OBD_MD_FLBLOCKS, 0, &request);
196         if (err) {
197                 CERROR("mdc_getattr failed for root: rc = %d\n", err);
198                 GOTO(out_request, sb = NULL);
199         }
200
201         /* initialize committed transaction callback daemon */
202         spin_lock_init(&sbi->ll_commitcbd_lock);
203         init_waitqueue_head(&sbi->ll_commitcbd_waitq);
204         init_waitqueue_head(&sbi->ll_commitcbd_ctl_waitq);
205         sbi->ll_commitcbd_flags = 0;
206         err = ll_commitcbd_setup(sbi);
207         if (err) {
208                 CERROR("failed to start commit callback daemon: rc = %d\n",err);
209                 GOTO(out_request, sb = NULL);
210         }
211
212         lic.lic_body = lustre_msg_buf(request->rq_repmsg, 0);
213         lic.lic_lmm = NULL;
214         LASSERT(sbi->ll_rootino != 0);
215         root = iget4(sb, sbi->ll_rootino, NULL, &lic);
216
217         if (root) {
218                 sb->s_root = d_alloc_root(root);
219         } else {
220                 CERROR("lustre_lite: bad iget4 for root\n");
221                 GOTO(out_cdb, sb = NULL);
222         }
223
224         ptlrpc_req_finished(request);
225         request = NULL;
226         ll_proc_namespace(sb, osc, mdc);
227
228 out_dev:
229         if (mdc)
230                 OBD_FREE(mdc, strlen(mdc) + 1);
231         if (osc)
232                 OBD_FREE(osc, strlen(osc) + 1);
233
234         RETURN(sb);
235
236 out_cdb:
237         ll_commitcbd_cleanup(sbi);
238 out_request:
239         ptlrpc_req_finished(request);
240         obd_disconnect(&sbi->ll_osc_conn);
241 out_mdc:
242         obd_disconnect(&sbi->ll_mdc_conn);
243 out_free:
244         OBD_FREE(sbi, sizeof(*sbi));
245
246         MOD_DEC_USE_COUNT;
247         goto out_dev;
248 } /* ll_read_super */
249
250 static void ll_put_super(struct super_block *sb)
251 {
252         struct ll_sb_info *sbi = ll_s2sbi(sb);
253         struct list_head *tmp, *next;
254         struct ll_fid rootfid;
255         ENTRY;
256
257         list_del(&sbi->ll_conn_chain);
258         ll_commitcbd_cleanup(sbi);
259         obd_disconnect(&sbi->ll_osc_conn);
260
261         /* NULL request to force sync on the MDS, and get the last_committed
262          * value to flush remaining RPCs from the sending queue on client.
263          *
264          * XXX This should be an mdc_sync() call to sync the whole MDS fs,
265          *     which we can call for other reasons as well.
266          */
267         mdc_getstatus(&sbi->ll_mdc_conn, &rootfid);
268
269         lprocfs_dereg_mnt(sbi->ll_proc_root);
270         sbi->ll_proc_root=0;
271         
272         obd_disconnect(&sbi->ll_mdc_conn);
273
274         spin_lock(&dcache_lock);
275         list_for_each_safe(tmp, next, &sbi->ll_orphan_dentry_list) {
276                 struct dentry *dentry = list_entry(tmp, struct dentry, d_hash);
277                 shrink_dcache_parent(dentry);
278         }
279         spin_unlock(&dcache_lock);
280
281         OBD_FREE(sbi, sizeof(*sbi));
282
283         MOD_DEC_USE_COUNT;
284         EXIT;
285 } /* ll_put_super */
286
287 static void ll_clear_inode(struct inode *inode)
288 {
289         struct ll_sb_info *sbi = ll_i2sbi(inode);
290         struct ll_inode_info *lli = ll_i2info(inode);
291         int rc;
292         ENTRY;
293
294         rc = mdc_cancel_unused(&sbi->ll_mdc_conn, inode, LDLM_FL_NO_CALLBACK);
295         if (rc < 0) {
296                 CERROR("mdc_cancel_unused: %d\n", rc);
297                 /* XXX FIXME do something dramatic */
298         }
299
300         if (lli->lli_smd) {
301                 rc = obd_cancel_unused(&sbi->ll_osc_conn, lli->lli_smd,
302                                        LDLM_FL_NO_CALLBACK);
303                 if (rc < 0) {
304                         CERROR("obd_cancel_unused: %d\n", rc);
305                         /* XXX FIXME do something dramatic */
306                 }
307         }
308
309         if (atomic_read(&inode->i_count) == 0) {
310                 struct lov_stripe_md *lsm = lli->lli_smd;
311                 char *symlink_name = lli->lli_symlink_name;
312
313                 if (lsm) {
314                         OBD_FREE(lsm, ll_ost_easize(inode->i_sb));
315                         lli->lli_smd = NULL;
316                 }
317                 if (symlink_name) {
318                         OBD_FREE(symlink_name, strlen(symlink_name) + 1);
319                         lli->lli_symlink_name = NULL;
320                 }
321         }
322
323         EXIT;
324 }
325
326 static void ll_delete_inode(struct inode *inode)
327 {
328         ENTRY;
329         if (S_ISREG(inode->i_mode)) {
330                 int err;
331                 struct obdo *oa;
332                 struct lov_stripe_md *lsm = ll_i2info(inode)->lli_smd;
333
334                 if (!lsm)
335                         GOTO(out, -EINVAL);
336
337                 if (lsm->lsm_object_id == 0) {
338                         CERROR("This really happens\n");
339                         /* No obdo was ever created */
340                         GOTO(out, 0);
341                 }
342
343                 oa = obdo_alloc();
344                 if (oa == NULL)
345                         GOTO(out, -ENOMEM);
346
347                 oa->o_id = lsm->lsm_object_id;
348                 oa->o_easize = ll_mds_easize(inode->i_sb);
349                 oa->o_mode = inode->i_mode;
350                 oa->o_valid = OBD_MD_FLID | OBD_MD_FLEASIZE | OBD_MD_FLTYPE;
351
352                 err = obd_destroy(ll_i2obdconn(inode), oa, lsm);
353                 obdo_free(oa);
354                 CDEBUG(D_SUPER, "obd destroy of objid "LPX64" error %d\n",
355                        lsm->lsm_object_id, err);
356         }
357 out:
358         clear_inode(inode);
359         EXIT;
360 }
361
362 /* like inode_setattr, but doesn't mark the inode dirty */
363 static int ll_attr2inode(struct inode * inode, struct iattr * attr, int trunc)
364 {
365         unsigned int ia_valid = attr->ia_valid;
366         int error = 0;
367
368         if ((ia_valid & ATTR_SIZE) && trunc) {
369                 error = vmtruncate(inode, attr->ia_size);
370                 if (error)
371                         goto out;
372         } else if (ia_valid & ATTR_SIZE)
373                 inode->i_size = attr->ia_size;
374
375         if (ia_valid & ATTR_UID)
376                 inode->i_uid = attr->ia_uid;
377         if (ia_valid & ATTR_GID)
378                 inode->i_gid = attr->ia_gid;
379         if (ia_valid & ATTR_ATIME)
380                 inode->i_atime = attr->ia_atime;
381         if (ia_valid & ATTR_MTIME)
382                 inode->i_mtime = attr->ia_mtime;
383         if (ia_valid & ATTR_CTIME)
384                 inode->i_ctime = attr->ia_ctime;
385         if (ia_valid & ATTR_MODE) {
386                 inode->i_mode = attr->ia_mode;
387                 if (!in_group_p(inode->i_gid) && !capable(CAP_FSETID))
388                         inode->i_mode &= ~S_ISGID;
389         }
390 out:
391         return error;
392 }
393
394 int ll_inode_setattr(struct inode *inode, struct iattr *attr, int do_trunc)
395 {
396         struct ptlrpc_request *request = NULL;
397         struct ll_sb_info *sbi = ll_i2sbi(inode);
398         int err;
399
400         ENTRY;
401
402         /* change incore inode */
403         ll_attr2inode(inode, attr, do_trunc);
404
405         err = mdc_setattr(&sbi->ll_mdc_conn, inode, attr, &request);
406         if (err)
407                 CERROR("mdc_setattr fails (%d)\n", err);
408
409         ptlrpc_req_finished(request);
410
411         RETURN(err);
412 }
413
414 int ll_setattr(struct dentry *de, struct iattr *attr)
415 {
416         int rc = inode_change_ok(de->d_inode, attr);
417
418         if (rc)
419                 return rc;
420
421         return ll_inode_setattr(de->d_inode, attr, 1);
422 }
423
424 static int ll_statfs(struct super_block *sb, struct statfs *sfs)
425 {
426         struct ll_sb_info *sbi = ll_s2sbi(sb);
427         struct obd_statfs osfs;
428         int rc;
429         ENTRY;
430
431         memset(sfs, 0, sizeof(*sfs));
432         rc = obd_statfs(&sbi->ll_mdc_conn, &osfs);
433         statfs_unpack(sfs, &osfs);
434         if (rc)
435                 CERROR("mdc_statfs fails: rc = %d\n", rc);
436         else
437                 CDEBUG(D_SUPER, "mdc_statfs shows blocks "LPU64"/"LPU64
438                        " objects "LPU64"/"LPU64"\n",
439                        osfs.os_bavail, osfs.os_blocks,
440                        osfs.os_ffree, osfs.os_files);
441
442         /* temporary until mds_statfs returns statfs info for all OSTs */
443         if (!rc) {
444                 rc = obd_statfs(&sbi->ll_osc_conn, &osfs);
445                 if (rc) {
446                         CERROR("obd_statfs fails: rc = %d\n", rc);
447                         GOTO(out, rc);
448                 }
449                 CDEBUG(D_SUPER, "obd_statfs shows blocks "LPU64"/"LPU64
450                        " objects "LPU64"/"LPU64"\n",
451                        osfs.os_bavail, osfs.os_blocks,
452                        osfs.os_ffree, osfs.os_files);
453
454                 while (osfs.os_blocks > ~0UL) {
455                         sfs->f_bsize <<= 1;
456
457                         osfs.os_blocks >>= 1;
458                         osfs.os_bfree >>= 1;
459                         osfs.os_bavail >>= 1;
460                 }
461                 sfs->f_blocks = osfs.os_blocks;
462                 sfs->f_bfree = osfs.os_bfree;
463                 sfs->f_bavail = osfs.os_bavail;
464                 if (osfs.os_ffree < (__u64)sfs->f_ffree)
465                         sfs->f_ffree = osfs.os_ffree;
466         }
467
468 out:
469         RETURN(rc);
470 }
471
472 void ll_update_inode(struct inode *inode, struct mds_body *body)
473 {
474         if (body->valid & OBD_MD_FLID)
475                 inode->i_ino = body->ino;
476         if (body->valid & OBD_MD_FLATIME)
477                 inode->i_atime = body->atime;
478         if (body->valid & OBD_MD_FLMTIME)
479                 inode->i_mtime = body->mtime;
480         if (body->valid & OBD_MD_FLCTIME)
481                 inode->i_ctime = body->ctime;
482         if (body->valid & OBD_MD_FLMODE)
483                 inode->i_mode = (inode->i_mode & S_IFMT)|(body->mode & ~S_IFMT);
484         if (body->valid & OBD_MD_FLTYPE)
485                 inode->i_mode = (inode->i_mode & ~S_IFMT)|(body->mode & S_IFMT);
486         if (body->valid & OBD_MD_FLUID)
487                 inode->i_uid = body->uid;
488         if (body->valid & OBD_MD_FLGID)
489                 inode->i_gid = body->gid;
490         if (body->valid & OBD_MD_FLFLAGS)
491                 inode->i_flags = body->flags;
492         if (body->valid & OBD_MD_FLNLINK)
493                 inode->i_nlink = body->nlink;
494         if (body->valid & OBD_MD_FLGENER)
495                 inode->i_generation = body->generation;
496         if (body->valid & OBD_MD_FLRDEV)
497                 inode->i_rdev = body->rdev;
498         if (body->valid & OBD_MD_FLSIZE)
499                 inode->i_size = body->size;
500 }
501
502 static void ll_read_inode2(struct inode *inode, void *opaque)
503 {
504         struct ll_read_inode2_cookie *lic = opaque;
505         struct mds_body *body = lic->lic_body;
506         struct ll_inode_info *lli = ll_i2info(inode);
507         ENTRY;
508
509         sema_init(&lli->lli_open_sem, 1);
510         atomic_set(&lli->lli_open_count, 0);
511
512         /* core attributes first */
513         ll_update_inode(inode, body);
514
515         //if (body->valid & OBD_MD_FLEASIZE)
516         if (lic && lic->lic_lmm) {
517                 struct lov_mds_md *lmm = lic->lic_lmm;
518                 int size;
519
520                 /* XXX This should probably not be an error in the future,
521                  *     when we allow LOV OSTs to be added.
522                  */
523                 if (lmm->lmm_easize != ll_mds_easize(inode->i_sb)) {
524                         CERROR("Striping metadata size error %ld\n",
525                                inode->i_ino);
526                         LBUG();
527                 }
528                 size = ll_ost_easize(inode->i_sb);
529                 OBD_ALLOC(lli->lli_smd, size);
530                 if (!lli->lli_smd) {
531                         CERROR("No memory for %d\n", size);
532                         LBUG();
533                 }
534                 lov_unpackmd(lli->lli_smd, lmm);
535         } else {
536                 lli->lli_smd = NULL;
537         }
538
539         /* Get the authoritative file size */
540         if (lli->lli_smd && (inode->i_mode & S_IFREG)) {
541                 int rc;
542
543                 rc = ll_file_size(inode, lli->lli_smd);
544                 if (rc) {
545                         CERROR("ll_file_size: %d\n", rc);
546                         /* FIXME: need to somehow prevent inode creation */
547                         LBUG();
548                 }
549         }
550
551         /* OIDEBUG(inode); */
552
553         if (S_ISREG(inode->i_mode)) {
554                 inode->i_op = &ll_file_inode_operations;
555                 inode->i_fop = &ll_file_operations;
556                 inode->i_mapping->a_ops = &ll_aops;
557                 EXIT;
558         } else if (S_ISDIR(inode->i_mode)) {
559                 inode->i_op = &ll_dir_inode_operations;
560                 inode->i_fop = &ll_dir_operations;
561                 inode->i_mapping->a_ops = &ll_dir_aops;
562                 EXIT;
563         } else if (S_ISLNK(inode->i_mode)) {
564                 inode->i_op = &ll_fast_symlink_inode_operations;
565                 EXIT;
566         } else {
567                 init_special_inode(inode, inode->i_mode, inode->i_rdev);
568                 EXIT;
569         }
570 }
571
572 static inline void invalidate_request_list(struct list_head *req_list)
573 {
574         struct list_head *tmp, *n;
575         list_for_each_safe(tmp, n, req_list) {
576                 struct ptlrpc_request *req =
577                         list_entry(tmp, struct ptlrpc_request, rq_list);
578                 CERROR("invalidating req xid "LPD64" op %d to %s:%d\n",
579                        (unsigned long long)req->rq_xid, req->rq_reqmsg->opc,
580                        req->rq_connection->c_remote_uuid,
581                        req->rq_import->imp_client->cli_request_portal);
582                 req->rq_flags |= PTL_RPC_FL_ERR;
583                 wake_up(&req->rq_wait_for_rep);
584         }
585 }
586
587 void ll_umount_begin(struct super_block *sb)
588 {
589         struct ll_sb_info *sbi = ll_s2sbi(sb);
590         struct list_head *ctmp;
591
592         ENTRY;
593
594         list_for_each(ctmp, &sbi->ll_conn_chain) {
595                 struct ptlrpc_connection *conn;
596                 conn = list_entry(ctmp, struct ptlrpc_connection, c_sb_chain);
597
598                 spin_lock(&conn->c_lock);
599                 /* XXX should just be dealing with imports, probably through
600                  * XXX iocontrol, need next-gen recovery! */
601                 conn->c_flags |= CONN_INVALID;
602                 invalidate_request_list(&conn->c_sending_head);
603                 invalidate_request_list(&conn->c_delayed_head);
604                 spin_unlock(&conn->c_lock);
605         }
606
607         EXIT;
608 }
609
610 /* exported operations */
611 struct super_operations ll_super_operations =
612 {
613         read_inode2: ll_read_inode2,
614         clear_inode: ll_clear_inode,
615         delete_inode: ll_delete_inode,
616         put_super: ll_put_super,
617         statfs: ll_statfs,
618         umount_begin: ll_umount_begin
619 };
620
621 struct file_system_type lustre_lite_fs_type = {
622         "lustre_lite", 0, ll_read_super, NULL
623 };
624
625 static int __init init_lustre_lite(void)
626 {
627         printk(KERN_INFO "Lustre Lite 0.5.14, info@clusterfs.com\n");
628         ll_file_data_slab = kmem_cache_create("ll_file_data",
629                                               sizeof(struct ll_file_data), 0,
630                                               SLAB_HWCACHE_ALIGN, NULL, NULL);
631         if (ll_file_data_slab == NULL)
632                 return -ENOMEM;
633         return register_filesystem(&lustre_lite_fs_type);
634 }
635
636 static void __exit exit_lustre_lite(void)
637 {
638         unregister_filesystem(&lustre_lite_fs_type);
639         kmem_cache_destroy(ll_file_data_slab);
640 }
641
642 MODULE_AUTHOR("Cluster File Systems, Inc. <info@clusterfs.com>");
643 MODULE_DESCRIPTION("Lustre Lite Client File System v1.0");
644 MODULE_LICENSE("GPL");
645
646 module_init(init_lustre_lite);
647 module_exit(exit_lustre_lite);
648 #endif