#undef LIST_HEAD
#include <portals/api-support.h> /* needed for ptpctl.h */
-#include <portals/ptlctl.h> /* needed for parse_dump */
+#include <portals/ptlctl.h> /* needed for parse_dump */
#include <procbridge.h>
#include "llite_lib.h"
}
}
- return (0);
+ return (0);
}
int lib_ioctl(int dev_id, int opc, void * ptr)
{
int rc;
- if (dev_id == OBD_DEV_ID) {
+ if (dev_id == OBD_DEV_ID) {
struct obd_ioctl_data *ioc = ptr;
//XXX hack!!!
if (rc)
return rc;
- }
- return (0);
+ }
+ return (0);
}
int lllib_init(char *dumpfile)
CERROR("class_config_parse_llog failed: rc = %d\n", rc);
}
- err = obd_disconnect(exp, 0);
+ err = obd_disconnect(exp);
out_cleanup:
LCFG_INIT(lcfg, LCFG_CLEANUP, name);
char *root_path = "/";
unsigned mntflgs = 0;
- int err;
+ int err;
/* consider tha case of starting multiple liblustre instances
* at a same time on single node.
signal(SIGUSR1, sighandler_USR1);
- lustre_path = getenv(ENV_LUSTRE_MNTPNT);
- if (!lustre_path) {
+ lustre_path = getenv(ENV_LUSTRE_MNTPNT);
+ if (!lustre_path) {
lustre_path = "/mnt/lustre";
- }
+ }
target = getenv(ENV_LUSTRE_MNTTGT);
if (!target) {
obd_timeout);
}
- if (_sysio_init() != 0) {
- perror("init sysio");
- exit(1);
- }
+ if (_sysio_init() != 0) {
+ perror("init sysio");
+ exit(1);
+ }
/* cygwin don't need native driver */
#ifndef __CYGWIN__
_sysio_native_init();
#endif
- err = _sysio_mount_root(root_path, root_driver, mntflgs, NULL);
- if (err) {
- perror(root_driver);
- exit(1);
- }
+ err = _sysio_mount_root(root_path, root_driver, mntflgs, NULL);
+ if (err) {
+ perror(root_driver);
+ exit(1);
+ }
#if 1
- portal_debug = 0;
- portal_subsystem_debug = 0;
+ portal_debug = 0;
+ portal_subsystem_debug = 0;
#endif
- err = lllib_init(dumpfile);
- if (err) {
- perror("init llite driver");
- exit(1);
- }
+ err = lllib_init(dumpfile);
+ if (err) {
+ perror("init llite driver");
+ exit(1);
+ }
err = mount("/", lustre_path, lustre_driver, mntflgs, NULL);
- if (err) {
- errno = -err;
- perror(lustre_driver);
- exit(1);
- }
+ if (err) {
+ errno = -err;
+ perror(lustre_driver);
+ exit(1);
+ }
#if 0
__sysio_hook_sys_enter = llu_check_request;
void __liblustre_cleanup_(void)
{
- _sysio_shutdown();
+ _sysio_shutdown();
PtlFini();
}