- fixes in llog_test.c and tests/run-llog.sh. By now sanity.sh test_60 passes.
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*
- * Copyright (C) 2003 Cluster File Systems, Inc.
+ * Copyright (C) 2002, 2003, 2004 Cluster File Systems, Inc.
*
- * This code is issued under the GNU General Public License.
- * See the file COPYING in this distribution
+ * This file is part of Lustre, http://www.lustre.org.
+ *
+ * Lustre is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * Lustre is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Lustre; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef CM_INTERNAL_H
static struct lprocfs_vars lprocfs_module_vars[] = { {0} };
static struct lprocfs_vars lprocfs_obd_vars[] = { {0} };
#else
-
static struct lprocfs_vars lprocfs_module_vars[] = { {0} };
static struct lprocfs_vars lprocfs_obd_vars[] = { {0} };
-
#endif /* LPROCFS */
-
LPROCFS_INIT_VARS(cmobd, lprocfs_module_vars, lprocfs_obd_vars)
mds = id_group(&rpid);
}
lmv_put_obj(obj);
- }
+ }
#endif
} else {
CDEBUG(D_OTHER, "INTENT getattr for %*s on "DLID4"\n",
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ *
+ * Copyright (C) 2002, 2003, 2004 Cluster File Systems, Inc.
+ *
+ * This file is part of Lustre, http://www.lustre.org.
+ *
+ * Lustre is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * Lustre is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Lustre; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
#ifndef _LMV_INTERNAL_H_
#define _LMV_INTERNAL_H_
{
struct lprocfs_static_vars lvars;
- lprocfs_init_vars(ost, &lvars);
+ lprocfs_init_vars(llog_test, &lvars);
return lprocfs_obd_attach(dev, lvars.obd_vars);
}
struct lprocfs_static_vars lvars;
lprocfs_init_vars(llog_test, &lvars);
- return class_register_type(&llog_obd_ops, NULL, lvars.module_vars,
+
+ return class_register_type(&llog_obd_ops, NULL,
+ lvars.module_vars,
"llog_test");
}
PATH=`dirname $0`:`dirname $0`/../utils:$PATH
TMP=${TMP:-/tmp}
-MDS=`ls /proc/fs/lustre/mds | grep -v num_refs | head -n 1`
+MDS=`find /proc/fs/lustre/mds/* -type d | head -n1 | sed 's/.*\///'`
[ -z "$MDS" ] && echo "no MDS available, skipping llog test" && exit 0
insmod ../obdclass/llog_test.o || exit 1
lctl modules > $TMP/ogdb-`hostname`
+
+# take care of UML developers
+[ -f /r/$TMP/ogdb-`hostname` ] &&
+ cp -f $TMP/ogdb-`hostname` /r/$TMP/ogdb-`hostname`
echo "NOW reload debugging syms.."
RC=0