X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fliblustre%2Ftests%2Fecho_test.c;h=b2fab3c3f9d1a1693455c67f2282edef987710da;hp=6e609b4e02073f3902b2bcc45a6187bed8356320;hb=fc75c4b4f597f095fc16d6119427f17f0d8e2a85;hpb=0f8dca08a4f68cba82c2c822998ecc309d3b7aaf diff --git a/lustre/liblustre/tests/echo_test.c b/lustre/liblustre/tests/echo_test.c index 6e609b4..b2fab3c 100644 --- a/lustre/liblustre/tests/echo_test.c +++ b/lustre/liblustre/tests/echo_test.c @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -41,42 +39,12 @@ #include #include #include -#include #define LIBLUSTRE_TEST 1 #include "../utils/lctl.c" #include "../lutil.h" - -#ifdef CRAY_XT3 -int _sysio_lustre_init(void) -{ - /* - * This is an aweful HACK. Basically the problem is on - * Catamount, the build system links in liblustre.a to - * all the test executables, and at this point its not - * clear how to modify the build system to prevent this - * from happening. So providing our own call to - * _sysio_lustre_init() that does nothing, prevents - * liblustre.a from initializing. - * - * Why is liblustre.a initializing a problem anyway. Well - * this main() in this module calls init_obdclass(), as - * well as the llite_lib.c's _sysio_lustre_init(). Two - * calls to init_obdclass() cause an assertion. Secondly - * it doesn't even logically make sense, this is module - * does not need lustre file system functionality, it's - * just the echo_tester. - * - */ - /*lprintf("--> THIS OVERRIDES liblustre.a INITIALIZATION <--\n");*/ - return 0; -} -#endif - - - extern int class_handle_ioctl(unsigned int cmd, unsigned long arg); static int liblustre_ioctl(int dev_id, unsigned int opc, void *ptr)