From 96d4568fb4bc723aad76ac08cd15ab43254a3ae0 Mon Sep 17 00:00:00 2001 From: ericm Date: Mon, 28 Jul 2003 16:34:14 +0000 Subject: [PATCH] merge b_devel to b_eq: 20030728 (4) mgmt obdclass obdfilter obdecho --- lustre/mgmt/mgmt_cli.c | 12 ++++-------- lustre/mgmt/mgmt_svc.c | 6 ++++-- lustre/obdclass/simple.c | 3 ++- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/lustre/mgmt/mgmt_cli.c b/lustre/mgmt/mgmt_cli.c index 5ee9421..1ba8805 100644 --- a/lustre/mgmt/mgmt_cli.c +++ b/lustre/mgmt/mgmt_cli.c @@ -22,14 +22,10 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#define EXPORT_SYMTAB - -/* - * go back to your file and define S_MGMT to be S_FILTER - * and then thank me for saving you four hours - */ - -#define DEBUG_SUBSYSTEM S_FILTER /* S_MGMT */ +#ifndef EXPORT_SYMTAB +# define EXPORT_SYMTAB +#endif +#define DEBUG_SUBSYSTEM S_MGMT #include #include diff --git a/lustre/mgmt/mgmt_svc.c b/lustre/mgmt/mgmt_svc.c index 5b1046f..c638dfa 100644 --- a/lustre/mgmt/mgmt_svc.c +++ b/lustre/mgmt/mgmt_svc.c @@ -22,8 +22,10 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#define EXPORT_SYMTAB -#define DEBUG_SUBSYSTEM S_FILTER +#ifndef EXPORT_SYMTAB +# define EXPORT_SYMTAB +#endif +#define DEBUG_SUBSYSTEM S_MGMT #include #include diff --git a/lustre/obdclass/simple.c b/lustre/obdclass/simple.c index 36ce7ba..a285fb7 100644 --- a/lustre/obdclass/simple.c +++ b/lustre/obdclass/simple.c @@ -33,6 +33,7 @@ #include #include +#include /* Debugging check only needed during development */ #ifdef OBD_CTXT_DEBUG @@ -179,7 +180,7 @@ struct dentry *simple_mknod(struct dentry *dir, char *name, int mode) GOTO(out_up, dchild); } - err = vfs_create(dir->d_inode, dchild, (mode & ~S_IFMT) | S_IFREG); + err = ll_vfs_create(dir->d_inode, dchild, (mode & ~S_IFMT) | S_IFREG, NULL); if (err) GOTO(out_err, err); -- 1.8.3.1