Whamcloud - gitweb
Branch b1_6
[fs/lustre-release.git] / lustre / obdclass / class_obd.c
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  * Object Devices Class Driver
5  *
6  *  Copyright (C) 2001-2003 Cluster File Systems, Inc.
7  *
8  *   This file is part of the Lustre file system, http://www.lustre.org
9  *   Lustre is a trademark of Cluster File Systems, Inc.
10  *
11  *   You may have signed or agreed to another license before downloading
12  *   this software.  If so, you are bound by the terms and conditions
13  *   of that agreement, and the following does not apply to you.  See the
14  *   LICENSE file included with this distribution for more information.
15  *
16  *   If you did not agree to a different license, then this copy of Lustre
17  *   is open source software; you can redistribute it and/or modify it
18  *   under the terms of version 2 of the GNU General Public License as
19  *   published by the Free Software Foundation.
20  *
21  *   In either case, Lustre is distributed in the hope that it will be
22  *   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
23  *   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24  *   license text for more details.
25  *
26  * These are the only exported functions, they provide some generic
27  * infrastructure for managing object devices
28  */
29
30 #define DEBUG_SUBSYSTEM S_CLASS
31 #ifndef EXPORT_SYMTAB
32 # define EXPORT_SYMTAB
33 #endif
34 #ifndef __KERNEL__
35 # include <liblustre.h>
36 #endif
37
38 #include <obd_support.h>
39 #include <obd_class.h>
40 #include <lustre_debug.h>
41 #include <lprocfs_status.h>
42 #include <lustre/lustre_build_version.h>
43 #include <libcfs/list.h>
44 #include "llog_internal.h"
45
46 #ifndef __KERNEL__
47 /* liblustre workaround */
48 atomic_t libcfs_kmemory = {0};
49 #endif
50
51 struct obd_device *obd_devs[MAX_OBD_DEVICES];
52 struct list_head obd_types;
53 spinlock_t obd_dev_lock = SPIN_LOCK_UNLOCKED;
54
55 /* The following are visible and mutable through /proc/sys/lustre/. */
56 unsigned int obd_debug_peer_on_timeout;
57 unsigned int obd_dump_on_timeout;
58 unsigned int obd_dump_on_eviction;
59 unsigned int obd_timeout = OBD_TIMEOUT_DEFAULT;   /* seconds */
60 unsigned int ldlm_timeout = LDLM_TIMEOUT_DEFAULT; /* seconds */
61 unsigned int obd_max_dirty_pages = 256;
62 atomic_t obd_dirty_pages;
63
64 cfs_waitq_t obd_race_waitq;
65 int obd_race_state;
66
67 #ifdef __KERNEL__
68 unsigned int obd_print_fail_loc(void)
69 {
70         CWARN("obd_fail_loc = %x\n", obd_fail_loc);
71         return obd_fail_loc;
72 }
73
74 void obd_set_fail_loc(unsigned int fl)
75 {
76         obd_fail_loc = fl;
77 }
78
79 /*  opening /dev/obd */
80 static int obd_class_open(unsigned long flags, void *args)
81 {
82         ENTRY;
83
84         PORTAL_MODULE_USE;
85         RETURN(0);
86 }
87
88 /*  closing /dev/obd */
89 static int obd_class_release(unsigned long flags, void *args)
90 {
91         ENTRY;
92
93         PORTAL_MODULE_UNUSE;
94         RETURN(0);
95 }
96 #endif
97
98 static inline void obd_data2conn(struct lustre_handle *conn,
99                                  struct obd_ioctl_data *data)
100 {
101         memset(conn, 0, sizeof *conn);
102         conn->cookie = data->ioc_cookie;
103 }
104
105 static inline void obd_conn2data(struct obd_ioctl_data *data,
106                                  struct lustre_handle *conn)
107 {
108         data->ioc_cookie = conn->cookie;
109 }
110
111 int class_resolve_dev_name(__u32 len, const char *name)
112 {
113         int rc;
114         int dev;
115
116         ENTRY;
117         if (!len || !name) {
118                 CERROR("No name passed,!\n");
119                 GOTO(out, rc = -EINVAL);
120         }
121         if (name[len - 1] != 0) {
122                 CERROR("Name not nul terminated!\n");
123                 GOTO(out, rc = -EINVAL);
124         }
125
126         CDEBUG(D_IOCTL, "device name %s\n", name);
127         dev = class_name2dev(name);
128         if (dev == -1) {
129                 CDEBUG(D_IOCTL, "No device for name %s!\n", name);
130                 GOTO(out, rc = -EINVAL);
131         }
132
133         CDEBUG(D_IOCTL, "device name %s, dev %d\n", name, dev);
134         rc = dev;
135
136 out:
137         RETURN(rc);
138 }
139
140 int class_handle_ioctl(unsigned int cmd, unsigned long arg)
141 {
142         char *buf = NULL;
143         struct obd_ioctl_data *data;
144         struct libcfs_debug_ioctl_data *debug_data;
145         struct obd_device *obd = NULL;
146         int err = 0, len = 0;
147         ENTRY;
148
149         /* only for debugging */
150         if (cmd == LIBCFS_IOC_DEBUG_MASK) {
151                 debug_data = (struct libcfs_debug_ioctl_data*)arg;
152                 libcfs_subsystem_debug = debug_data->subs;
153                 libcfs_debug = debug_data->debug;
154                 return 0;
155         }
156
157         CDEBUG(D_IOCTL, "cmd = %x\n", cmd);
158         if (obd_ioctl_getdata(&buf, &len, (void *)arg)) {
159                 CERROR("OBD ioctl: data error\n");
160                 GOTO(out, err = -EINVAL);
161         }
162         data = (struct obd_ioctl_data *)buf;
163
164         switch (cmd) {
165         case OBD_IOC_PROCESS_CFG: {
166                 struct lustre_cfg *lcfg;
167
168                 if (!data->ioc_plen1 || !data->ioc_pbuf1) {
169                         CERROR("No config buffer passed!\n");
170                         GOTO(out, err = -EINVAL);
171                 }
172                 OBD_ALLOC(lcfg, data->ioc_plen1);
173                 if (lcfg == NULL)
174                         GOTO(out, err = -ENOMEM);
175                 err = copy_from_user(lcfg, data->ioc_pbuf1, data->ioc_plen1);
176                 if (!err)
177                         err = lustre_cfg_sanity_check(lcfg, data->ioc_plen1);
178                 if (!err)
179                         err = class_process_config(lcfg);
180                 OBD_FREE(lcfg, data->ioc_plen1);
181                 GOTO(out, err);
182         }
183
184         case OBD_GET_VERSION:
185                 if (!data->ioc_inlbuf1) {
186                         CERROR("No buffer passed in ioctl\n");
187                         GOTO(out, err = -EINVAL);
188                 }
189
190                 if (strlen(BUILD_VERSION) + 1 > data->ioc_inllen1) {
191                         CERROR("ioctl buffer too small to hold version\n");
192                         GOTO(out, err = -EINVAL);
193                 }
194
195                 memcpy(data->ioc_bulk, BUILD_VERSION,
196                        strlen(BUILD_VERSION) + 1);
197
198                 err = obd_ioctl_popdata((void *)arg, data, len);
199                 if (err)
200                         err = -EFAULT;
201                 GOTO(out, err);
202
203         case OBD_IOC_NAME2DEV: {
204                 /* Resolve a device name.  This does not change the
205                  * currently selected device.
206                  */
207                 int dev;
208
209                 dev = class_resolve_dev_name(data->ioc_inllen1,
210                                              data->ioc_inlbuf1);
211                 data->ioc_dev = dev;
212                 if (dev < 0)
213                         GOTO(out, err = -EINVAL);
214
215                 err = obd_ioctl_popdata((void *)arg, data, sizeof(*data));
216                 if (err)
217                         err = -EFAULT;
218                 GOTO(out, err);
219         }
220
221         case OBD_IOC_UUID2DEV: {
222                 /* Resolve a device uuid.  This does not change the
223                  * currently selected device.
224                  */
225                 int dev;
226                 struct obd_uuid uuid;
227
228                 if (!data->ioc_inllen1 || !data->ioc_inlbuf1) {
229                         CERROR("No UUID passed!\n");
230                         GOTO(out, err = -EINVAL);
231                 }
232                 if (data->ioc_inlbuf1[data->ioc_inllen1 - 1] != 0) {
233                         CERROR("UUID not NUL terminated!\n");
234                         GOTO(out, err = -EINVAL);
235                 }
236
237                 CDEBUG(D_IOCTL, "device name %s\n", data->ioc_inlbuf1);
238                 obd_str2uuid(&uuid, data->ioc_inlbuf1);
239                 dev = class_uuid2dev(&uuid);
240                 data->ioc_dev = dev;
241                 if (dev == -1) {
242                         CDEBUG(D_IOCTL, "No device for UUID %s!\n",
243                                data->ioc_inlbuf1);
244                         GOTO(out, err = -EINVAL);
245                 }
246
247                 CDEBUG(D_IOCTL, "device name %s, dev %d\n", data->ioc_inlbuf1,
248                        dev);
249                 err = obd_ioctl_popdata((void *)arg, data, sizeof(*data));
250                 if (err)
251                         err = -EFAULT;
252                 GOTO(out, err);
253         }
254
255         case OBD_IOC_CLOSE_UUID: {
256                 CDEBUG(D_IOCTL, "closing all connections to uuid %s (NOOP)\n",
257                        data->ioc_inlbuf1);
258                 GOTO(out, err = 0);
259         }
260
261         case OBD_IOC_GETDEVICE: {
262                 int     index = data->ioc_count;
263                 char    *status, *str;
264
265                 if (!data->ioc_inlbuf1) {
266                         CERROR("No buffer passed in ioctl\n");
267                         GOTO(out, err = -EINVAL);
268                 } 
269                 if (data->ioc_inllen1 < 128) {
270                         CERROR("ioctl buffer too small to hold version\n");
271                         GOTO(out, err = -EINVAL);
272                 }
273                                 
274                 obd = class_num2obd(index);
275                 if (!obd)
276                         GOTO(out, err = -ENOENT);
277                 
278                 if (obd->obd_stopping)
279                         status = "ST";
280                 else if (obd->obd_set_up)
281                         status = "UP";
282                 else if (obd->obd_attached)
283                         status = "AT";
284                 else
285                         status = "--"; 
286                 str = (char *)data->ioc_bulk;
287                 snprintf(str, len - sizeof(*data), "%3d %s %s %s %s %d",
288                          (int)index, status, obd->obd_type->typ_name,
289                          obd->obd_name, obd->obd_uuid.uuid,
290                          atomic_read(&obd->obd_refcount));
291                 err = obd_ioctl_popdata((void *)arg, data, len);
292
293                 GOTO(out, err = 0);
294         }
295
296         }
297
298         if (data->ioc_dev >= class_devno_max()) {
299                 CERROR("OBD ioctl: No device\n");
300                 GOTO(out, err = -EINVAL);
301         }
302
303         obd = class_num2obd(data->ioc_dev);
304         if (obd == NULL) {
305                 CERROR("OBD ioctl : No Device %d\n", data->ioc_dev);
306                 GOTO(out, err = -EINVAL);
307         }
308         LASSERT(obd->obd_magic == OBD_DEVICE_MAGIC);
309
310         if (!obd->obd_set_up || obd->obd_stopping) {
311                 CERROR("OBD ioctl: device not setup %d \n", data->ioc_dev);
312                 GOTO(out, err = -EINVAL);
313         }
314
315         switch(cmd) {
316         case OBD_IOC_NO_TRANSNO: {
317                 if (!obd->obd_attached) {
318                         CERROR("Device %d not attached\n", obd->obd_minor);
319                         GOTO(out, err = -ENODEV);
320                 }
321                 CDEBUG(D_HA, "%s: disabling committed-transno notification\n",
322                        obd->obd_name);
323                 obd->obd_no_transno = 1;
324                 GOTO(out, err = 0);
325         }
326
327         default: {
328                 err = obd_iocontrol(cmd, obd->obd_self_export, len, data, NULL);
329                 if (err)
330                         GOTO(out, err);
331
332                 err = obd_ioctl_popdata((void *)arg, data, len);
333                 if (err)
334                         err = -EFAULT;
335                 GOTO(out, err);
336         }
337         }
338
339  out:
340         if (buf)
341                 obd_ioctl_freedata(buf, len);
342         RETURN(err);
343 } /* class_handle_ioctl */
344
345
346
347 #define OBD_MINOR 241
348 #ifdef __KERNEL__
349 /* to control /dev/obd */
350 static int obd_class_ioctl (struct cfs_psdev_file *pfile, unsigned long cmd,
351                             void *arg)
352 {
353         return class_handle_ioctl(cmd, (unsigned long)arg);
354 }
355
356 /* declare character device */
357 struct cfs_psdev_ops obd_psdev_ops = {
358         /* .p_open    = */ obd_class_open,      /* open */
359         /* .p_close   = */ obd_class_release,   /* release */
360         /* .p_read    = */ NULL,
361         /* .p_write   = */ NULL,
362         /* .p_ioctl   = */ obd_class_ioctl     /* ioctl */
363 };
364
365 extern cfs_psdev_t obd_psdev;
366 #else
367 void *obd_psdev = NULL;
368 #endif
369
370 EXPORT_SYMBOL(obd_devs);
371 EXPORT_SYMBOL(obd_print_fail_loc);
372 EXPORT_SYMBOL(obd_race_waitq);
373 EXPORT_SYMBOL(obd_race_state);
374 EXPORT_SYMBOL(obd_debug_peer_on_timeout);
375 EXPORT_SYMBOL(obd_dump_on_timeout);
376 EXPORT_SYMBOL(obd_dump_on_eviction);
377 EXPORT_SYMBOL(obd_timeout);
378 EXPORT_SYMBOL(ldlm_timeout);
379 EXPORT_SYMBOL(obd_max_dirty_pages);
380 EXPORT_SYMBOL(obd_dirty_pages);
381 EXPORT_SYMBOL(ptlrpc_put_connection_superhack);
382
383 EXPORT_SYMBOL(proc_lustre_root);
384
385 EXPORT_SYMBOL(class_register_type);
386 EXPORT_SYMBOL(class_unregister_type);
387 EXPORT_SYMBOL(class_get_type);
388 EXPORT_SYMBOL(class_put_type);
389 EXPORT_SYMBOL(class_name2dev);
390 EXPORT_SYMBOL(class_name2obd);
391 EXPORT_SYMBOL(class_uuid2dev);
392 EXPORT_SYMBOL(class_uuid2obd);
393 EXPORT_SYMBOL(class_find_client_obd);
394 EXPORT_SYMBOL(class_find_client_notype);
395 EXPORT_SYMBOL(class_devices_in_group);
396 EXPORT_SYMBOL(class_conn2export);
397 EXPORT_SYMBOL(class_exp2obd);
398 EXPORT_SYMBOL(class_conn2obd);
399 EXPORT_SYMBOL(class_exp2cliimp);
400 EXPORT_SYMBOL(class_conn2cliimp);
401 EXPORT_SYMBOL(class_disconnect);
402 EXPORT_SYMBOL(class_num2obd);
403
404 /* uuid.c */
405 EXPORT_SYMBOL(class_uuid_unparse);
406 EXPORT_SYMBOL(lustre_uuid_to_peer);
407
408 EXPORT_SYMBOL(class_handle_hash);
409 EXPORT_SYMBOL(class_handle_unhash);
410 EXPORT_SYMBOL(class_handle2object);
411 EXPORT_SYMBOL(class_handle_free_cb);
412
413 /* obd_config.c */
414 EXPORT_SYMBOL(class_incref);
415 EXPORT_SYMBOL(class_decref);
416 EXPORT_SYMBOL(class_get_profile);
417 EXPORT_SYMBOL(class_del_profile);
418 EXPORT_SYMBOL(class_del_profiles);
419 EXPORT_SYMBOL(class_process_config);
420 EXPORT_SYMBOL(class_process_proc_param);
421 EXPORT_SYMBOL(class_config_parse_llog);
422 EXPORT_SYMBOL(class_config_dump_llog);
423 EXPORT_SYMBOL(class_attach);
424 EXPORT_SYMBOL(class_setup);
425 EXPORT_SYMBOL(class_cleanup);
426 EXPORT_SYMBOL(class_detach);
427 EXPORT_SYMBOL(class_manual_cleanup);
428
429 #define OBD_INIT_CHECK
430 #ifdef OBD_INIT_CHECK
431 int obd_init_checks(void)
432 {
433         __u64 u64val, div64val;
434         char buf[64];
435         int len, ret = 0;
436
437         CDEBUG(D_INFO, "LPU64=%s, LPD64=%s, LPX64=%s, LPSZ=%s, LPSSZ=%s\n",
438                LPU64, LPD64, LPX64, LPSZ, LPSSZ);
439
440         CDEBUG(D_INFO, "OBD_OBJECT_EOF = "LPX64"\n", (__u64)OBD_OBJECT_EOF);
441
442         u64val = OBD_OBJECT_EOF;
443         CDEBUG(D_INFO, "u64val OBD_OBJECT_EOF = "LPX64"\n", u64val);
444         if (u64val != OBD_OBJECT_EOF) {
445                 CERROR("__u64 "LPX64"(%d) != 0xffffffffffffffff\n",
446                        u64val, (int)sizeof(u64val));
447                 ret = -EINVAL;
448         }
449         len = snprintf(buf, sizeof(buf), LPX64, u64val);
450         if (len != 18) {
451                 CWARN("LPX64 wrong length! strlen(%s)=%d != 18\n", buf, len);
452                 ret = -EINVAL;
453         }
454
455         div64val = OBD_OBJECT_EOF;
456         CDEBUG(D_INFO, "u64val OBD_OBJECT_EOF = "LPX64"\n", u64val);
457         if (u64val != OBD_OBJECT_EOF) {
458                 CERROR("__u64 "LPX64"(%d) != 0xffffffffffffffff\n",
459                        u64val, (int)sizeof(u64val));
460                 ret = -EOVERFLOW;
461         }
462         if (u64val >> 8 != OBD_OBJECT_EOF >> 8) {
463                 CERROR("__u64 "LPX64"(%d) != 0xffffffffffffffff\n",
464                        u64val, (int)sizeof(u64val));
465                 return -EOVERFLOW;
466         }
467         if (do_div(div64val, 256) != (u64val & 255)) {
468                 CERROR("do_div("LPX64",256) != "LPU64"\n", u64val, u64val &255);
469                 return -EOVERFLOW;
470         }
471         if (u64val >> 8 != div64val) {
472                 CERROR("do_div("LPX64",256) "LPU64" != "LPU64"\n",
473                        u64val, div64val, u64val >> 8);
474                 return -EOVERFLOW;
475         }
476         len = snprintf(buf, sizeof(buf), LPX64, u64val);
477         if (len != 18) {
478                 CWARN("LPX64 wrong length! strlen(%s)=%d != 18\n", buf, len);
479                 ret = -EINVAL;
480         }
481         len = snprintf(buf, sizeof(buf), LPU64, u64val);
482         if (len != 20) {
483                 CWARN("LPU64 wrong length! strlen(%s)=%d != 20\n", buf, len);
484                 ret = -EINVAL;
485         }
486         len = snprintf(buf, sizeof(buf), LPD64, u64val);
487         if (len != 2) {
488                 CWARN("LPD64 wrong length! strlen(%s)=%d != 2\n", buf, len);
489                 ret = -EINVAL;
490         }
491         if ((u64val & ~CFS_PAGE_MASK) >= CFS_PAGE_SIZE) {
492                 CWARN("mask failed: u64val "LPU64" >= %lu\n", u64val, 
493                       CFS_PAGE_SIZE);
494                 ret = -EINVAL;
495         }
496
497         return ret;
498 }
499 #else
500 #define obd_init_checks() do {} while(0)
501 #endif
502
503 extern spinlock_t obd_types_lock;
504 extern int class_procfs_init(void);
505 extern int class_procfs_clean(void);
506
507 #ifdef __KERNEL__
508 static int __init init_obdclass(void)
509 #else
510 int init_obdclass(void)
511 #endif
512 {
513         int i, err;
514 #ifdef __KERNEL__
515         int lustre_register_fs(void);
516
517         printk(KERN_INFO "Lustre: OBD class driver, info@clusterfs.com\n");
518         printk(KERN_INFO "        Lustre Version: "LUSTRE_VERSION_STRING"\n");
519         printk(KERN_INFO "        Build Version: "BUILD_VERSION"\n");
520 #else
521         CDEBUG(D_INFO, "Lustre: OBD class driver, info@clusterfs.com\n");
522         CDEBUG(D_INFO, "        Lustre Version: "LUSTRE_VERSION_STRING"\n");
523         CDEBUG(D_INFO, "        Build Version: "BUILD_VERSION"\n");
524 #endif
525
526         spin_lock_init(&obd_types_lock);
527         cfs_waitq_init(&obd_race_waitq);
528         obd_zombie_impexp_init();
529 #ifdef LPROCFS
530         obd_memory = lprocfs_alloc_stats(OBD_STATS_NUM, 
531                                          LPROCFS_STATS_FLAG_PERCPU);
532         if (obd_memory == NULL) {
533                 CERROR("kmalloc of 'obd_memory' failed\n");
534                 RETURN(-ENOMEM);
535         }
536
537         lprocfs_counter_init(obd_memory, OBD_MEMORY_STAT,
538                              LPROCFS_CNTR_AVGMINMAX, 
539                              "memused", "bytes");
540         lprocfs_counter_init(obd_memory, OBD_MEMORY_PAGES_STAT,
541                              LPROCFS_CNTR_AVGMINMAX, 
542                              "pagesused", "pages");
543 #endif
544         err = obd_init_checks();
545         if (err == -EOVERFLOW)
546                 return err;
547
548         class_init_uuidlist();
549         err = class_handle_init();
550         if (err)
551                 return err;
552
553         spin_lock_init(&obd_dev_lock);
554         CFS_INIT_LIST_HEAD(&obd_types);
555
556         err = cfs_psdev_register(&obd_psdev);
557         if (err) {
558                 CERROR("cannot register %d err %d\n", OBD_MINOR, err);
559                 return err;
560         }
561
562         /* This struct is already zerod for us (static global) */
563         for (i = 0; i < class_devno_max(); i++)
564                 obd_devs[i] = NULL;
565
566         /* Default the dirty page cache cap to 1/2 of system memory */
567         obd_max_dirty_pages = num_physpages / 2;
568
569         err = obd_init_caches();
570         if (err)
571                 return err;
572 #ifdef __KERNEL__
573         err = class_procfs_init();
574         if (err)
575                 return err;
576         err = lustre_register_fs();
577 #endif
578
579         return err;
580 }
581
582 /* liblustre doesn't call cleanup_obdclass, apparently.  we carry on in this
583  * ifdef to the end of the file to cover module and versioning goo.*/
584 #ifdef __KERNEL__
585 static void cleanup_obdclass(void)
586 {
587         int i;
588         __u64 memory_leaked, pages_leaked;
589         __u64 memory_max, pages_max;
590         int lustre_unregister_fs(void);
591         ENTRY;
592
593         lustre_unregister_fs();
594
595         cfs_psdev_deregister(&obd_psdev);
596         for (i = 0; i < class_devno_max(); i++) {
597                 struct obd_device *obd = class_num2obd(i);
598                 if (obd && obd->obd_set_up &&
599                     OBT(obd) && OBP(obd, detach)) {
600                         /* XXX should this call generic detach otherwise? */
601                         LASSERT(obd->obd_magic == OBD_DEVICE_MAGIC);
602                         OBP(obd, detach)(obd);
603                 }
604         }
605
606         obd_cleanup_caches();
607         obd_sysctl_clean();
608
609         class_procfs_clean();
610
611         class_handle_cleanup();
612         class_exit_uuidlist();
613
614         memory_leaked = obd_memory_sum();
615         pages_leaked = obd_pages_sum();
616
617         memory_max = obd_memory_max();
618         pages_max = obd_pages_max();
619
620         lprocfs_free_stats(&obd_memory);
621         CDEBUG((memory_leaked | pages_leaked) ? D_ERROR : D_INFO,
622                "obd_memory max: "LPU64", leaked: "LPU64" "
623                "obd_memory_pages max: "LPU64", leaked: "LPU64"\n",
624                memory_max, memory_leaked, 
625                pages_max, pages_leaked);
626
627         EXIT;
628 }
629
630 MODULE_AUTHOR("Cluster File Systems, Inc. <info@clusterfs.com>");
631 MODULE_DESCRIPTION("Lustre Class Driver Build Version: " BUILD_VERSION);
632 MODULE_LICENSE("GPL");
633
634 cfs_module(obdclass, LUSTRE_VERSION_STRING, init_obdclass, cleanup_obdclass);
635 #endif